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
ParamTypeRequiredSignDescription
user_idString✅✅Merchant identification
order_idString✅✅Payment order Id of merchant system. The order id should be unique.
amountString✅✅Transaction amount (Support up to 6 decimal places)
currencyString✅✅Please refer to Support Channel
channelString✅✅Please refer to Support Channel
card_numberString✅✅Credit card number
card_exp_monthString✅✅Credit card expiration month
card_exp_yearString✅✅Credit card expiration year
card_cvcString✅✅Credit card CVC
first_nameString✅✅Client's first name, cannot contain numbers.
middle_nameString⭕❌Client's middle name, cannot contain numbers.
last_nameString✅✅Client's last name, cannot contain numbers.
period_countInteger✅✅Payment cycle (count). Only 1-12 can be filled in.
period_unitInteger✅✅Payment cycle (unit).
1 = Week.
2 = Month.
3 = Year.
timestampInteger✅✅Request timestamp (10 digits), If the time difference is allowed to be 5 seconds, it will fail.
detailsDetails⭕❌Details object depends on channel
callback_urlURL⭕❌The url to receive callback request from PTS when transaction complete.
remarkString⭕❌Remark
signString✅❌Signature string. Please refer to Data Signature and Verification

Response​

There are three types of subscribe response methods.

tip

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

ParamTypeRequiredSignDescription
user_idString✅✅Merchant identification
order_idString✅✅Payment order Id of merchant system. The order id should be unique.
transaction_idString✅✅FTIPH transaction id
channelString✅✅Please refer to Support Channel
submit_currencyString✅✅Submit currency
submit_amountFloat✅✅Submit amount (Support up to 6 decimal places)
accept_currencyString✅✅The currency real paid
accept_amountFloat✅✅Paid amount of accept currency (Support up to 6 decimal places)
exchange_rateFloat✅✅Exchange rate
period_countInteger✅✅Payment cycle (count). Only 1-12 can be filled in.
period_unitInteger✅✅Payment cycle (unit).
1 = Week.
2 = Month.
3 = Year.
verification_urlURL⭕❌The webpage for verification
signString✅❌Signature string. Please refer to Data Signature and Verification

Response Example​

{
"code": "1000",
"message": "Accepted",
"data": {
"user_id": "1",
"order_id": "TP20250110091712",
"transaction_id": "1062299068027506688",
"channel": "MAYA",
"submit_currency": "PHP",
"submit_amount": 125,
"accept_currency": "PHP",
"accept_amount": 125,
"exchange_rate": 1,
"verification_url": "https://......",
"sign": "hdFe+P0Qzjo4zcKqWiUeytWDB28Pc2x....."
}
}