Skip to main content

Subscribe Request

Request

API URL: /merchant/v2.1/{GUID}/subscribe

Note

{GUID} Obtained from the merchant backend (API Docking -> GUID)

✅ Required ⭕ Optional ❌ Not used

HeaderContentDescription
Content-Typetext/plain
X-Transaction-Signature{transaction_signature}Please refer to Transaction Signature
ParamTypeRequiredSignatureDescription
user_idStringMerchant identification
order_idStringSubscribe order Id of merchant system. The order id should be unique.
amountStringTransaction amount (Support up to 6 decimal places)
currencyStringPlease refer to Support Channel
channelStringPlease refer to Support Channel
card_numberStringCredit card number
card_exp_monthStringCredit card expiration month
card_exp_yearStringCredit card expiration year
card_cvcStringCredit card CVC
first_nameStringClient's first name, cannot contain numbers.
middle_nameStringClient's middle name, cannot contain numbers.
last_nameStringClient's last name, cannot contain numbers.
timestampIntegerRequest timestamp (10 digits), If the time difference is allowed to be 5 seconds, it will fail.
detailsDetailsDetails object depends on channel
callback_urlURLThe url to receive callback request from PTS when transaction complete.
remarkStringRemark
signStringSignature string. Please refer to Data Signature and Verification

Response

There are three types of subscribe response methods.

tip

You should notify PTS customer service to configure this for you to match actual usage situation.

ParamTypeRequiredSignDescription
user_idStringMerchant identification
order_idStringSubscribe order Id of merchant system. The order id should be unique.
transaction_idStringPTS transaction id
channelStringPlease refer to Support Channel
submit_currencyStringSubmit currency
submit_amountFloatSubmit amount (Support up to 6 decimal places)
accept_currencyStringThe currency real paid
accept_amountFloatPaid amount of accept currency (Support up to 6 decimal places)
exchange_rateFloatExchange rate
verification_urlURLThe webpage for verification
signStringSignature string. Please refer to Data Signature and Verification

Response Example