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

ApiKey
API key for the merchant account. Send it in the ApiKey request header. See Authentication.
Example:
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:

Request example

curl -X POST 'https://sandbox-payment-api.onerway.com/v1/txn/sub/detail' \
  -H 'ApiKey: replace_with_api_key' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "contractId": "sub_contract_demo_202606210001",
  "merchantNo": "replace_with_merchant_no"
}'

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.