On This Page
PAR 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.
PAR Information
Include the customer's PAR in the service request with the
paymentInformation.paymentAccountReference.id
field.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 PAR
Include these required fields to cancel a plan with an authorization code and a
PAR.
- 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.
Related Information
REST API Example: Cancelling with an Authorization Code and a PAR
REST API
Example: Cancelling with an Authorization Code and a PARRequest
{ "processingInformation": { "installmentServiceProvider": "Visa", "authorizationOptions": { "authorizationCode": "888881", "authorizationDateTime": "2023-07-24T16:42:52Z" } }, "orderInformation": { "amountDetails": { "totalAmount": "500", "currency": "USD" } }, "paymentInformation": { "paymentAccountReference": { "id": "V0010013020261601352183794986" } } }
Response
{ "id": "6902173767896334503954", "submitTimeUtc": "2023-07-24T16:49:36Z", "status": "ACCEPTED", "processorInformation": { "responseCode": "200" }, "paymentInformation": { "paymentAccountReference": { "id": "V0010013020261601352183794986" } }, "installmentInformation": { "id": "6b6f6ddf-4619-b9ca-2469-16a49db52e02", "planId": "1cc80cb6-866d-0a3e-7c52-18f6aced3201" } }