Cancel Order Lines

To cancel one or more order lines, you must include the purchaseOrderId in your request. After a successful cancellation, the response will show the order with the canceled line items.

Cancellation Reason Codes Table

MarketCancellation Reason
CA ( Canada)CUSTOMER_REQUESTED_SELLER_TO_CANCEL
CANCEL_BY_SELLER
CL ( Chile )ERROR_DE_PRECIO
AGOTADO
RECHAZAR
MX ( Mexico )MIRAKL_REFUND_45
MIRAKL_REFUND_15
SELLER_REJECTION
US ( USA )1. Do not use CUSTOMER_REQUESTED_SELLER_TO_CANCEL for non-intent to cancel orders.
2. Do not use SELLER_CANCEL_FRAUD_STOP_SHIPMENT for non-fraudulent orders. If you suspect fraud, contact the Walmart Risk Prevention Team at( [email protected] ) with PO details and your reason. The team will respond in 2-4 hours. If fraud is confirmed, Walmart will cancel the order and notify you.
3. If you use SELLER_CANCEL_OUT_OF_STOCK, Walmart will mark the item as out of stock in the selected warehouse. To make the item available for sale again, replenish its inventory.


Market availability: Global

Path Params
string
required

purchaseOrderId.
Market availability: Global

Body Params

Container for the cancellation details

orderCancellation
object
Headers
string
required

A unique ID which identifies each API call and used to track and debug issues; use a random generated GUID for this ID.
Market availability: Global

string
enum
required

WALMART MARKETS.
Market availability: Global

Allowed:
string
required

Walmart Service Name.
Market availability: Global

string

A unique ID to track the consumer request by channel. Use the Consumer Channel Type received during onboarding.
Market availability: Global

string
required

The access token retrieved in the Token API call.
Market availability: Global

string
enum
required

GLOBAL VERSION DEFAULT AS 3.1.
Market availability: Global

Allowed:
string
enum

Include this header to access the Marketplace dynamic sandbox environment.
Market availability: US

Allowed:
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json