POST
Query subscription details
Use this endpoint to retrieve one subscription contract by
contractId, including customer, product, billing-cycle, lifecycle status, and subscription token information.Request
merchantNoMerchant number assigned by Onerway. See Setup for how to obtain it.
Example:
replace_with_merchant_nocontractIdSubscription contract number used to query one subscription detail. This endpoint supports querying details by
contractId; it does not return a subscription list or aggregate summary.Example:
sub_contract_demo_202606210001signRequest signature string. See Request signing for how to generate it.
curl -X POST 'https://sandbox-acq.onerway.com/v1/txn/sub/detail' \
-H 'Content-Type: application/json' \
--data-raw '{
"contractId": "sub_contract_demo_202606210001",
"merchantNo": "replace_with_merchant_no",
"sign": "{{SIGN}}"
}'Response
respCode20000 means the query request was processed successfully. Other values are error codes. See Response codes.respMsgHuman-readable message for the response code.
data{ contractId, merchantNo, ... }Subscription query result object containing contract, customer, product, billing-cycle, status, and token information.
Response example
Example code is unavailable.
No error responses are documented for this endpoint.