Order Cancel Request

This request is a forward flow that stores the reason behind an order cancellation.

Response: Query/Header Param Missing

{ "code": "4015", "errorCodeDesc": "Invalid query/header params", "message": "Invalid/missing storeId in the request"
}
{ "code": "4015", "errorCodeDesc": "Invalid query/header params", "message": "Invalid/missing tenantId in the request"
}

Response: Invalid JSON Request Passed as Input

{ "errorCode": "4079", "errorCodeDesc": "Invalid JSON request", "message": "Unable to parse cancellation string into JSON"
}

Response: Mandatory Fields Missing

{ "errorCode": "4067", "errorCodeDesc": "Mandatory fields are missing/invalid", "message": "cancel orderId is null or empty which is mandatory"
}
{ "errorCode": "4067", "errorCodeDesc": "Mandatory fields are missing/invalid", "message": "cancel reason is null which is mandatory"
}
{ "errorCode": "4067", "errorCodeDesc": "Mandatory fields are missing/invalid", "message": "order source is null or empty which is mandatory"
}
Path Params
string
required
Defaults to 2328273

Specifies the value representing the order for a particular customer order identifier.

Example

2328273

Body Params

Request order cancellation

order
object
required
Headers
string

Specifies the consumer identifier provided by tenants for accessing requests and webhooks.

Walmart Supply Chain as a Service (WSCaaS) will stamp the client identifier based on the consumer identifier.

Example

2d6cf199-9b07-4350-bb2b9-0db3c2

string
required

Specifies the external identifier of the client store.

Example

9221

string

Specifies an optional parameter to get the delivery node number for Hub & Spoke (H&S) or Remote Click and Collect (RCNC) orders.

Example

S465-94

string
required

Specifies the literal and value for Bearer <authenticationToken>.

Example

Bearer eyJraWQiOiI1N…yLTQ4MjctOGUz

string
required

Specifies the literal application/json.

Example

application/json

string

Specifies an optional parameter to indicate the order mode.

A sample value of TRAINING indicates the order belongs to Training Mode.
See Training Mode Features.
If this header is not present, the order will be treated as a production order.

Example

TRAINING

Responses
202

A tenant can subscribe to FAAS_ORDER_CANCEL_ACK to track the status

400

Bad Request

Language
Response
Click Try It! to start a request and see the response here!