On This Page
Token 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.Token Information
Include the token information in the service request with one of these token
identifier fields:
- Flex API transient token:tokenInformation.transientTokenJwt
- TMScustomer token:paymentInformation.customer.id
- TMSinstrument identifier token:paymentInformation.instrumentIdentifier.id
- TMSpayment instrument token:paymentInformation.paymentInstrument.id
- TMStransient token:tokenInformation.jti
For more information about token types, see the Token Types section in the .
Token Management Service
Developer GuideEndpoint
https://api.cybersource.com
/fin/v1/plan-acceptance/cancel/Required Fields for Cancelling with an Authorization Code and a Token
Include these fields if you are using an authorization code to cancel the installment
plan.
- Only include this field if theprocessorInformation.approvalCoderesponse field is present in the authorization response.
- Set toVisa.
Required Token Fields
Include only one of these token identifier fields:
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.
REST API Example: Cancel an Installment Plan using an Authorization Code
and a Token
REST API
Example: Cancel an Installment Plan using an Authorization Code
and a TokenRequest
{ "processingInformation": { "installmentServiceProvider": "Visa", "authorizationOptions": { "authorizationCode": "888884", "authorizationDateTime": "2020-09-02T16:40:45.827Z" } }, "orderInformation": { "amountDetails": { "totalAmount": "500", "currency": "USD" } }, "paymentInformation": { "instrumentIdentifier": { "id": "7030000000012249793" } } }
Response
{ "id": "6903070348706958703955", "submitTimeUtc": "2023-07-25T17:43:54Z", "status": "ACCEPTED", "processorInformation": { "responseCode": "200" }, "paymentInformation": { "paymentAccountReference": { "id": "V0010013020261601352183794986" } }, "installmentInformation": { "id": "2af69dac-670d-b035-44d6-162559d0a302", "planId": "1cc80cb6-866d-0a3e-7c52-18f6aced3201" } }