DocumentationRecipesAPI ReferenceChangelog
Documentation

Direct Debit Payment Cancel

POST/snap/v{version}/debit/cancel

Use this API to cancel the payment

  • if the payment status is not returned after a long time.

Structure

A message consists of a header and body. The following sections are focused on the body structure. For the header structure, see:


Request Parameters

originalPartnerReferenceNo String Required

Original invoice number that will was used during payment.


partnerReferenceNo String Required

Unique invoice number to identify the order cancellation on the merchant side


merchantId String Required

Unique merchant ID that is registered with 2C2P



Response Parameters

responseCode String Required

Response code.

Possible values are listed in the response codes table on this page.


responseMessage String Required

Response message that explains the response code.

additionalInfo Object

Show Child Parameters

explanation String

Note: This field is returned when additionalInfo is returned.

Version String

API Version used

transactionDateTime String

Process transaction datetime

Note: Datetime format yyyyMMddHHmmss

processType String

"V"

latestTransactionStatus String

Transaction Status

  • SUCCESS = "00"
  • PENDING = "03"
  • REFUNDED = "04"
  • CANCELED = "05"
  • FAILED = "06"
  • NOT_FOUND = "07"
  • EXPIRY = "08"
  • REJECTED = "09"