Skip to content

Cancel Payment

The Cancel Payment feature allows merchants to cancel a payment. If the transaction has not been paid yet, the payment will be marked as canceled. If the payment has already been completed, the transaction will be voided.

Feature cancel payment only applicable to E-Wallet DANA.

NameAPI Direct Debit Cancel Payment
Service Code57
Path/v1.0/debit/cancel
Version1.0
HTTP MethodPOST
Type FormatJSON

Request Body

Details
KeyValueMandatoryLengthDescription
originalpartnerReferenceNoStringM64Transaction identifier on service consumer system
originalReferenceNoStringM64Original transaction identifier on service provider system
reasonStringO256Cancellation reason.
additionalInfoObjectOAdditional information

Example request body

Details
sh
POST .../v1.0/debit/cancel HTTP/1.2
Content-type: application/json
X-TIMESTAMP: 2020-12-23T07:44:11+07:00
X-SIGNATURE: 85be817c55b2c135157c7e89f52499bf0c25ad6eeebe04a986e8c862561b19a5
ORIGIN: www.hostname.com
X-PARTNER-ID: 82150823919040624621823174737537
X-EXTERNAL-ID: 41807553358950093184162180797837
CHANNEL-ID: 95221

{
   "originalPartnerReferenceNo":"2020102900000000000001",
   "originalReferenceNo":"2020102977770000000009",
   "reason":"Barang tidak tersedia",
   "additionalInfo":{
   }
}

Response Body

Details
ParameterData TypeMandatoryLengthDescription
responseCodeStringM7Response code
responseMessageStringM150Response description
originalPartnerReferenceNoStringM64Original transaction identifier on service consumer system
originalReferenceNoStringM64Original transaction identifier on service provider system
cancelTimeStringC25Cancel time ISO-8601. Must be filled if cancelled transaction success
additionalInfoObjectOAdditional information

Example Response

Details
sh
Content-type: application/json
X-TIMESTAMP: 2020-12-23T07:44:16+07:00

{
   "responseCode":"2005700",
   "responseMessage":"Request has been processed successfully",
   "originalPartnerReferenceNo":"2020102900000000000001",
   "originalReferenceNo":"2020102977770000000009",
   "cancelTime":"2020-12-21T17:07:25+07:00",
   "additionalInfo":{
   }
}

iFortepay API Documentation