On This Page
PAN and Authorization Code
You can cancel an installment plan with the authorization code from the initial
authorization. The authorization code is included in the cancellation request with the
processorInformation.approvalCode
field value. Cancelling an
installment plan with an authorization code also requires you to have already included
the authorization code in the select an installment plan request. IMPORTANT
It is required to cancel an installment plan after the
initial authorization is either refunded or reversed after a select installment plan
request has been sent. This ensures the customer does not receive any future installment
plan charges.
PAN Information
To include the customer's PAN in the request, set the
paymentInformation.card.number
field to the customer's card
number.Endpoint
Production
: POST
https://api.cybersource.com
/fin/v1/plan-acceptance/cancel/Test
: POST
https://apitest.cybersource.com
/fin/v1/plan-acceptance/cancel/Required Fields for Cancelling with an Authorization Code and a PAN
Include these fields when you are using an authorization code to cancel the installment
plan.
- Set to the authorization code shown in the initial authorization response as theprocessorInformation.approvalCodefield.
- Set toVisa.
Required Field for a Partial Refund
For a partial refund, include this required field in addition to the other required
fields.
- Include this field for a partial refund. The amount of the refund must be less than the total order amount. The value should include a decimal with two places, for example,60.01.
Optional Fields for Cancel Installment Plan
These fields are optional when cancelling an installment plan.
REST API Example: Cancel an Installment Plan using an Authorization Code
REST API
Example: Cancel an Installment Plan using an Authorization CodeRequest
{ "processingInformation": { "installmentServiceProvider": "Visa", "authorizationOptions": { "authorizationCode": "888888", "authorizationDateTime": "2020-09-02T16:40:45.827Z" } }, "orderInformation": { "amountDetails": { "totalAmount": "500", "currency": "USD" } }, "paymentInformation": { "card": { "number": "4622943127019793" } } }
Response
{ "id": "6892602156176450603955", "submitTimeUtc": "2023-07-13T14:56:55Z", "status": "ACCEPTED", "processorInformation": { "responseCode": "200" }, "paymentInformation": { "paymentAccountReference": { "id": "V0010013020261601352183794986" } }, "installmentInformation": { "id": "e9a14fc4-bc73-e711-bbc0-112debc39d02", "planId": "1cc80cb6-866d-0a3e-7c52-18f6aced3201" } }