Cancel a Direct Debit
You can cancel a direct debit payment when it is in the pending status.
Cancelling a direct debit requires the request ID from the sale response.
Endpoints
Set the
apCancelService_run
field to
true
, and send the request to one of these
endpoints:Production:
https://ics2ws.ic3.com/commerce/1.x/transactionProcessor
Test:
https://ics2wstest.ic3.com/commerce/1.x/transactionProcessor
Response Statuses
This table describes the possible statuses that you can receive in a cancel response
message. The status is found in the
apCancelReply_status
field.Cybersource Status | Description | Response Time |
---|---|---|
Cancelled | The cancellation request
was processed successfully. The direct debit was cancelled while it
was in the Pending status. | Immediate in API
response. |
Failed | The cancellation request
was not accepted. The time period for cancellation might be
expired. | Immediate in API
response. |
The cancel service also responds with a reason code in the
apCancelReply_reasonCode
field. For more information about reason
codes, see the Reason Codes for SEPA Direct Debits for the Simple Order API.