Onerway
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

merchantNo
Merchant number assigned by Onerway. See Setup for how to obtain it.
Example:
contractId
Subscription 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:
sign
Request signature string. See Request signing for how to generate it.

Request example

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

respCode
20000 means the query request was processed successfully. Other values are error codes. See Response codes.
respMsg
Human-readable message for the response code.
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.