Cancel Items
Cancel items from a transaction.
Last updated
Cancel items from a transaction.
Last updated
POST
https://apis.sandbox.flexshopper.com/v3/transactions/{transactionId}/cancel
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
A successful request returns the HTTP 200 OK
status code and a JSON response body that shows the lease info
If the items field is not provided in the request, all items in the transaction will be canceled.
If an item is present in the items array with no quantity, all of that item will be canceled.
transactionId
string
The transaction ID provided at lease generation.
Authorization
string
Authorization token
items
array
The list of items to be canceled.
items.sku
string
The SKU to cancel.
items.quantity
string
The quantity to cancel; defaults to the number ordered if not present.
For example, if a customer ordered three of an item and wanted to cancel just two, quantity
would be set to 2
, because leaving it unset would cancel all three of the item.
Key
Type
Description
canceled
Array
The list of successfully canceled items.
canceled.sku
String
The SKU canceled.
items.quantity
Number
The quantity to canceled.
failed
Array
The list of faled cancels.
failed.sku
String
The SKU that failed to be canceled.
failed.quantity
Number
The quantity of cancels failed for sku.