You can process full or partial cancellations after a transaction is pending but before it’s settled. The cancellation can also be associated with specific line items. If the cancellation amount and line items are not specified, all items and the entire transaction amount will be cancelled.

:tx-idIdentifier of the transaction to be retrievedYesRequest Parameter
type"cancel" should be the value of the type provided in the request bodyYesRequest Body
lineItemsArray of line item types you want to associate with the authorizationNoRequest Body
amountThe amount to cancel, which must be less than or equal to the original amountNoRequest Body
  "type": "cancel",
  "amount": 3200, //optional
  "lineItems": [{ //optional
    "sku": "product-sku-1",
    "quantity": 1
    "sku": "product-sku-2",
    "quantity": 2
curl -u <api-key>:<secret-key> -X POST -H 'Content-Type: application/json' \ \
    -d '{"type":"cancel", "amount":3200}'