Query Subscription Transaction
POST/dana/recurring/subscription/querySubscriptionTransaction.htm
This API is used to obtain information of payment/transaction regarding subscription
API Type
DANA Open API
Expected Timeout
3 second
SNAP Service Code
00
Accept
application/json
Content Type
application/json
version
string
1 - 8 charactersRequiredAPI version. As per the respective API reference
function
string
1 - 128 charactersRequiredAccording to specifications defined by each business domain
Value:
Value:
dana.recurring.openapi.subscription.querySubscriptionTransactionclientId
string
1 - 36 charactersRequiredClient identifier which provided by DANA and used to identify partner and application system
clientSecret
string
1 - 64 charactersRequiredAs a secret key of client. Assigned client secret during registration
reqTime
string
25 charactersRequiredRequest time, in format YYYY-MM-DDTHH:mm:ss+07:00. Time must be in GMT+7 (Jakarta time)
reqMsgId
string
1 - 64 charactersRequiredIdentify an unique system request. Each request will be assigned with a unique identifier (UUID)
reserve
string
1 - 256 charactersReserved for future implementation (Key/Value)
subscriptionId
string
1 - 64 charactersRequiredSubscription identifier
status
array of string
1 - 7 charactersStatus of payment/transaction. The possible values are:
INITmeans payment is processingSUCCESSmeans payment is successfulFAILEDmeans payment is failed;
Note
If the status is empty, the response will return all record with all statuses
pageNum
integer
RequiredNumber of page. The value must be not null and greater than zero
pageSize
integer
RequiredRecord size per page. The value must be not null and greater than zero
envInfo
json object
RequiredEnvironment information. The envInfo include the parameter of:
- sourcePlatform: The value must be
IPG - terminalType: The value must be
APP
{
"request":{
"head":{
"version":"1.0",
"function":"dana.recurring.openapi.subscription.querySubscriptionTransaction",
"clientId":"2014000014442",
"clientSecret":"2014000014442",
"reqTime":"2001-07-04T12:08:56+07:00",
"reqMsgId":"1234567asdfasdf1123fda",
"reserve":"{}"
},
"body":{
"subscriptionId":"20200630111315800000DANAW3ID565600012305",
"status":[
"SUCCESS",
"FAILED"
],
"pageNum":1,
"pageSize":10,
"envInfo":{
"sourcePlatform":"IPG",
"terminalType":"APP"
}
}
},
"signature":"signature string"
}
version
string
1 - 8 charactersRequiredAPI version. As per the respective API reference
function
string
1 - 128 charactersRequiredAccording to specifications defined by each business domain
Value:
Value:
dana.recurring.openapi.subscription.querySubscriptionTransactionclientId
string
1 - 36 charactersRequiredClient identifier which provided by DANA and used to identify partner and application system
clientSecret
string
1 - 64 charactersRequiredAs a secret key of client. Assigned client secret during registration
respTime
string
25 charactersRequiredResponse time, in format YYYY-MM-DDTHH:mm:ss+07:00. Time must be in GMT+7 (Jakarta time)
reqMsgId
string
1 - 64 charactersRequiredIdentify an unique system request. Each request will be assigned with a unique identifier (UUID)
reserve
string
1 - 256 charactersReserved for future implementation (Key/Value)
resultInfo
json object
RequiredDefine the detail of result information
resultStatus
string
1 charactersRequiredResult status, refer to result code list ResultStatusThe status of the request can be:
S: SuccessF: FailureU: Unknown
resultCodeId
string
1 - 16 charactersRequiredResult code identifier, refer to result code list ResultCodeId
resultCode
string
1 - 64 charactersRequiredResult code string, refer to ResultCode
resultMsg
string
1 - 256 charactersResult message, refer to result code list ResultMsg
bizOrderInfoList
array of json object
RequiredDefine the detail of subscription biz order (payment/transaction) information.
Note
- If no records found, the response will return an empty list
- Records are already sorted by the latest
subscriptionId
string
1 - 64 charactersRequiredSubscription identifier
trxId
string
1 - 64 charactersRequiredTransaction identifier
externalTrxId
string
1 - 64 charactersConditionalAcquiring transaction identifier
Conditional Info
Y:= status is
SUCCESS or FAILEDgoodsType
string
17 charactersRequiredGeneral goods type for merchant which determined by DANA. The value must be filled with
EXTERNAL_MERCHANTtrxAmount
money
ConditionalTransaction amount. Contains two sub-fields:
- Amount: Transaction amount, including the cents
- Currency: Currency code based on ISO
Conditional Info
Y:= status is
SUCCESSvalue
string
1 - 19 charactersRequiredValue of amount. Following ISO-4217, for IDR the value includes 2 decimal digits separated with point
e.g., IDR 10.000,- will be placed with 10000.00
e.g., IDR 10.000,- will be placed with 10000.00
currency
string
1 - 3 charactersRequiredCurrency
trxStatus
string
1 - 7 charactersRequiredStatus of payment/transaction. The possible values are:
INITmeans payment is processingSUCCESSmeans payment is successfulFAILEDmeans payment is failed
extInfo
json object
ConditionalDefine the detail of extended information.
Conditional Info
Y:= status is
SUCCESS or FAILEDBIZ_ORDER_ID
string
1 - 64 charactersBiz order identifier
BIZ_DATE
string
10 charactersTransaction date, in format YYYY-MM-DD
PAYMENT_AMOUNT
money
Total amount which need to be paid. Contains two sub-fields:
- Amount: Transaction amount, including the cents
- Currency: Currency code based on ISO
value
string
1 - 19 charactersRequiredValue of amount. Following ISO-4217, for IDR the value includes 2 decimal digits separated with point
e.g., IDR 10.000,- will be placed with 10000.00
e.g., IDR 10.000,- will be placed with 10000.00
currency
string
1 - 3 charactersRequiredCurrency
ACTUAL_PAYMENT_AMOUNT
money
Total actual amount which have been paid (after deduct from promo or others). Contains two sub-fields:
- Amount: Transaction amount, including the cents
- Currency: Currency code based on ISO
value
string
1 - 19 charactersRequiredValue of amount. Following ISO-4217, for IDR the value includes 2 decimal digits separated with point
e.g., IDR 10.000,- will be placed with 10000.00
e.g., IDR 10.000,- will be placed with 10000.00
currency
string
1 - 3 charactersRequiredCurrency
MERCHANT_TRANS_ID
string
1 - 64 charactersTransaction identifier by merchant
DEDUCT_FAILED_REASON
string
1 - 64 charactersReason of deduct failed
paginator
json object
RequiredDefine the detail of pagination information.
pageNum
integer
1 - 2 charactersCurrent page number
pageSize
integer
1 - 2 charactersMaximum number of transaction returned in one pagination
totalCount
integer
1 - 4 charactersCount total
totalPage
integer
1 - 4 charactersTotal of page
{
"response":{
"head":{
"version":"1.0",
"function":"dana.recurring.openapi.subscription.querySubscriptionTransaction",
"clientId":"2014000014442",
"clientSecret":"2014000014442",
"respTime":"2001-07-04T12:08:56+07:00",
"reqMsgId":"1234567asdfasdf1123fda",
"reserve":"{}"
},
"body":{
"resultInfo":{
"resultStatus":"S",
"resultCodeId":"00000000",
"resultCode":"SUCCESS",
"resultMsg":"success"
},
"bizOrderInfoList":[
{
"subscriptionId":"20200630111315800000DANAW3ID565600012305",
"trxId":"20200630111315800000DANAW3ID565600044405",
"externalTrxId":"20200630111315800000DANAW3ID565600044405",
"goodsType":"EXTERNAL_MERCHANT",
"trxAmount":"{\"amount\":\"120000\",\"currency\":\"IDR\"}",
"trxStatus":"SUCCESS",
"extInfo":{
"BIZ_ORDER_ID":"289832387634534",
"BIZ_DATE":"2020-10-10",
"PAYMENT_AMOUNT":"{\"amount\":\"120000\",\"currency\":\"IDR\"}",
"ACTUAL_PAYMENT_AMOUNT":"{\"amount\":\"120000\",\"currency\":\"IDR\"}",
"MERCHANT_TRANS_ID":"20200630111315",
"DEDUCT_FAILED_REASON":"Sample of reason"
}
},
{
"subscriptionId":"20200630111315800000DANAW3ID565600012305",
"trxId":"20200630111315800000DANAW3ID56560003335",
"externalTrxId":"20200630111315800000DANAW3ID565600033305",
"goodsType":"EXTERNAL_MERCHANT",
"trxAmount":"{\"amount\":\"120000\",\"currency\":\"IDR\"}",
"trxStatus":"FAILED",
"extInfo":{
"BIZ_ORDER_ID":"289832387634534",
"BIZ_DATE":"2020-10-10",
"PAYMENT_AMOUNT":"{\"amount\":\"120000\",\"currency\":\"IDR\"}",
"ACTUAL_PAYMENT_AMOUNT":"{\"amount\":\"120000\",\"currency\":\"IDR\"}",
"MERCHANT_TRANS_ID":"20200630111315",
"DEDUCT_FAILED_REASON":"Sample of reason"
}
}
],
"paginator":{
"pageNum":1,
"pageSize":10,
"totalCount":2,
"totalPage":1
}
}
},
"signature":"signature string"
}
| ResultStatus | ResultCodeId | ResultCode | ResultMessage | Solution |
|---|---|---|---|---|
| S | 00000000 | SUCCESS | success | Mark Query Subscription Transaction process as Success |
| F | 00000004 | PARAM_ILLEGAL | parameter illegal | Mark Query Subscription Transaction process as Failed. Retry request with proper parameter |
| U | 00000900 | SYSTEM_ERROR | system error | Mark Query Subscription Transaction process as Failed. Retry request periodically. If error is raising, can contact to DANA to check the process |