Warehouse API

Cancel/Refund Order in Cart

This will attempt to cancel/refund orders with the originating order source/cart by specifying Shipment and Line items to cancel/refund. The cart's response will be returned. Not all carts support this functionality.

You may also find the Cancel/Refund Order Logs API endpoint useful to lookup previous cancellation requests. <br/><br/> Note: This call may take longer than others because CartRover will reach out to the shopping cart in real time and wait for a response. <br/> <br/> Note: API calls are limited to 10 orders per API Call.

Request

Array Request Fields

Field NameData TypeLengthRequired?Description
cust_refString16YUnique Order Number
cancel_orderBooleanYSet TRUE to cancel order
refund_noteStringReasons to refund order
cancel_noteStringReasons to cancel order
merchant_pkIntYCartRover merchant ID. See List Merchants
shipmentArrayYArray that contains shipment refund information
itemsArrayArray that contains detailed order items refund/cancellation

Shipment Array Fields

Field NameData TypeLengthRequired?Description
full_shipping_refundBooleanYSet TRUE to refund all shipping/handling fees
refund_amountFloatRequired if full_shipping_refund is set to FALSESpecify shipment refund amount. Refund_amount cannot exceed total shipping/handling fees.

Items Array Fields

Field NameData TypeLengthRequired?Description
skuStringYUnique sku that represents a product in an order
cancel_quantityIntYQty of the product to be refunded/cancelled

Response

Array Response Fields

Field NameData TypeLengthDescription
OrdersArraydetailed API response of each order

Orders Array Fields

Field NameData TypeLengthDescription
cust_refStringUnique Order Number
order_cancel_successBooleanOrder cancellation/refund status. TRUE represent success.
server_responseStringDetailed API response message. Normally contains error messages if Carts API request failed.
post/v1/wms/orders/cart_cancel

Request

Headers

Content-Typestring

Request body */*

string required

Example request

"\"[\\n  {\\n    \\\"cust_ref\\\" : \\\"TEST01\\\",\\n    \\\"merchant_pk\\\" : 2319,\\n    \\\"cancel_order\\\" : true,\\n    \\\"shipment\\\" : {\\n      \\\"full_shipping_refund\\\": true\\n    }\\n  },\\n  {\\n    \\\"cust_ref\\\" : \\\"TEST99\\\",\\n    \\\"merchant_pk\\\" : 2319,\\n    \\\"cancel_order\\\" : true,\\n    \\\"shipment\\\" : {\\n      \\\"full_shipping_refund\\\": true\\n    }\\n  }\\n]\""

Response

OK

object required

Changes

No recorded changes to this operation across all 1 revision of this API.