Credit Card Subscription

Credit Card Subscription Query API

Query subscription status for credit card.

Request URL

URL: ${ROOT_URL}/cc/v1/sub/querysub

HTTPMethod: POST

EndpointUrl: /cc/v1/sub/querysub

Subscription Query Request Parameters

Data Signing Rules

Field NameTypeValueRequired
Content-TypeString(30)Fixed value "application/json;charset=utf-8"Yes
X-TIMESTAMPString(29)Current time, format 2022-09-16T16:58:47.964+07:00Yes
X-SIGNATUREString(64)Signature. For details see Data Signing RulesYes
X-PARTNER-IDString(20)Merchant IDYes
X-REQUEST-IDString(64)Unique ID for each requestYes

Body

ParameterTypeRequiredRemarks
requestIdString(64)YesUnique identifier on every request
merchantIdString(20)YesUnique ID provided by payment gateway to merchant
storeIdString(30)NoIf merchant has branches and wants to create order using branch ID
paymentTypeString(20)YesPayment type
agreementIdString(32)YesAgreement ID, obtained via subscription order query

Subscription Query Response Parameters

Header

Data Signing Rules

Field NameTypeValueRequired
Content-TypeString(30)Fixed value "application/json;charset=utf-8"Yes
X-TIMESTAMPString(29)Current time, format 2022-09-16T16:58:47.964+07:00Yes
X-SIGNATUREString(64)Signature. For details see Data Signing RulesYes
X-PARTNER-IDString(20)Merchant IDYes
X-REQUEST-IDString(64)Unique ID for each requestYes

Body

Error Code

ParameterTypeRequiredRemarks
requestIdString(64)YesUnique ID for each request
errCodeString(32)No0 means success, otherwise see Error Code
errCodeDesString(128)NoError description
merchantIdString(20)YesUnique ID provided by payment gateway to merchant
storeIdString(30)NoIf using branch ID
paymentTypeString(20)YesPayment type
requestAmountDecimal(12,2)NoAmount at request
amountdecimal(12,2)YesAmount in IDR, with 2 decimals
agreementIdString(32)YesAgreement ID
createTimeString(16)NoyyyyMMddHHmmss
statusString(32)NoINIT: request created, ACTIVE: subscription active, FAILED: request failed
expiredDateString(10)YesExpiry date yyyy-MM-dd
notifyUrlString(200)NoURL for reminder/cancel/complete notification
returnUrlString(200)NoFrontend return URL for initial subscription
subTitleString(128)YesSubscription title
subMessageString(256)NoSubscription description
+ subIntervalObjectYesDAILY/WEEKLY/MONTHLY
- typeString(10)YesDAILY: Day, WEEKLY: Week, MONTHLY: Month
- valueNumber(2)YesInterval value, 1-99
+ productInfoObjectYesRecurring product/service details
- idString(10)YesProduct ID
- nameString(32)YesProduct Name
- pricedecimal(12,2)YesAmount in IDR, supports two decimals
- typeString(20)YesProduct Type
- urlString(200)NoProduct URL
- quantityNumber(4)YesProduct Quantity
+ paymentInfoArray<Object>NoSubscription transaction history
- successTimeString(16)NoyyyyMMddHHmmss
- platformTradeNoString(32)NoPaylabs platform order number
- amountDecimal(12,2)NoAmount in IDR, 2 decimals
- statusString(32)No01 PENDING 09 FAILED 02 SUCCEEDED
- transFeeRateDecimal(6,6)NoTransaction fee rate
- transFeeAmountDecimal(12,2)NoFee, two decimals
- totalTransFeeDecimal(12,2)NoTotal fee (excl. VAT)
- vatFeeDecimal(12,2)NoVAT fee