Skip to main content

Remove Subscription

POSTdana/recurring/subscription/removeSubscription.htm

This API is used to remove the user’s subscription

API Type
DANA Open API
Expected Timeout
3 second
SNAP Service Code
-
Accept
application/json
Content Type
application/json

version
string
1 - 8 charactersRequired
API version. As per the respective API reference
function
string
1 - 128 charactersRequired
According to specifications defined by each business domain; Value: dana.recurring.openapi.subscription.removeSubscription
clientId
string
1 - 36 charactersRequired
Client identifier which provided by DANA and used to identify partner and application system
clientSecret
string
1 - 64 charactersRequired
As a secret key of client. Assigned client secret during registration
reqTime
string
25 charactersRequired
Request time, in format YYYY-MM-DDTHH:mm:ss+07:00. Time must be in GMT+7 (Jakarta time)
reqMsgId
string
1 - 64 charactersRequired
Identify an unique system request. Each request will be assigned with a unique identifier (UUID)
accessToken
string
1 - 512 charactersRequired
Contains customer token, which has been obtained from binding process
reserve
string
1 - 256 characters
Reserved for future implementation (Key/Value)

subscriptionId
string
1 - 64 charactersRequired
Subscription identifier
merchantId
string
21 charactersConditional
Merchant identifier that is unique per each merchant
Conditional Info
Y:= Using merchantId client oAuth result
subMerchantId
string
1 - 64 charactersConditional
Sub merchant identifier, known as externalDivisionId must be registered in the DANA system before use. To register a new externalDivisionId, use the Create Division API
Conditional Info
Y:= Used for sub merchant level
envInfo
json object
Required
Environment information. The envInfo include the parameter of:
  • sourcePlatform: The value must be IPG
  • terminalType: The value must be APP
needNotify
string
Flag to indicate DANA notification to merchant. Has values always: false
{
"request":{
"head":{
"version":"1.0",
"function":"dana.recurring.openapi.subscription.removeSubscription",
"clientId":"2014000014442",
"clientSecret":"2014000014442",
"reqTime":"2001-07-04T12:08:56+07:00",
"reqMsgId":"1234567asdfasdf1123fda",
"accessToken":"xxxxx",
"reserve":"{}"
},
"body":{
"subscriptionId":"4215125121412",
"merchantId":"216620000000464757705",
"subMerchantId":"216650000000464829701",
"envInfo":{
"sourcePlatform":"IPG",
"terminalType":"APP"
},
"needNotify":"false"
},
"signature":"signature string"
}
}

version
string
1 - 8 charactersRequired
API version. As per the respective API reference
function
string
1 - 128 charactersRequired
According to specifications defined by each business domain; Value: dana.recurring.openapi.subscription.removeSubscription
clientId
string
1 - 36 charactersRequired
Client identifier which provided by DANA and used to identify partner and application system
clientSecret
string
1 - 64 charactersRequired
As a secret key of client. Assigned client secret during registration
respTime
string
25 charactersRequired
Response time, in format YYYY-MM-DDTHH:mm:ss+07:00. Time must be in GMT+7 (Jakarta time)
reqMsgId
string
1 - 64 charactersRequired
Identify an unique system request. Each request will be assigned with a unique identifier (UUID)
accessToken
string
1 - 512 charactersRequired
Contains customer token, which has been obtained from binding process
reserve
string
1 - 256 characters
Reserved for future implementation (Key/Value)

resultInfo
json object
Required
Define the detail of result information
resultStatus
string
1 charactersRequired
Result status, refer to result code list ResultStatus. The status of the request can be:
  • S: Success
  • F: Failure
  • U: Unknown
Can be added if these 3 statuses are insufficient for business requirements
resultCodeId
string
1 - 16 charactersRequired
Result code identifier, refer to result code list ResultCodeId
resultCode
string
1 - 64 charactersRequired
Result code string, refer to ResultCode
resultMsg
string
1 - 256 characters
Result message, refer to result code list ResultMsg
{
"response":{
"head":{
"version":"1.0",
"function":"dana.recurring.openapi.subscription.removeSubscription",
"clientId":"211020000000000000044",
"clientSecret":"2014000014442",
"respTime":"2001-07-04T12:08:56+07:00",
"reqMsgId":"1234567asdfasdf1123fda",
"accessToken":"xxxxx",
"reserve":"{}"
},
"body":{
"resultInfo":{
"resultStatus":"S",
"resultCodeId":"00000000",
"resultCode":"SUCCESS",
"resultMsg":"success"
}
}
},
"signature":"signature string"
}

ResultStatusResultCodeIdResultCodeResultMessageSolution
S 00000000SUCCESSsuccess
Mark Remove Subscription process as Success
F 00000004PARAM_ILLEGALparameter illegal
Mark Remove Subscription process as Failed. Retry request with proper parameter
U 00000900SYSTEM_ERRORsystem error
Mark Remove Subscription process as Failed. Retry request periodically. If error is raising, can contact to DANA to check the process
F AE15113158004866SCHEDULE_SUBSCRIPTION_NOT_EXISTschedule subscription is not exist
Mark Remove Subscription process as Failed. Remove subscription on merchant side
F AE15113158004013ILLEGAL_STATUSillegal subscription schedule status
Mark Remove Subscription process as Failed. Waiting from pending payment process
ask AIAI Assistant
Need help with our documentation?
Start from our frequently asked questions or feel free to ask anything else.

AI generated responses may contain mistakes.