Cancel Order Lines
POST/api/walmart/:integrationInstance/orders/:order/cancel-lines
Cancel order lines on Walmart (seller-initiated cancellation).
Authentication: Requires Bearer token.
Fields:
- lines (optional, array): Lines to cancel. When omitted, every line still in a cancellable status (Created or Acknowledged) is cancelled.
- lines[].lineNumber (required with lines, string): Walmart order line number.
- lines[].amount (required with lines, integer): Quantity to cancel on that line.
Requires the sales_orders.cancel permission.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Content-Type
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden
Response Headers
Content-Type
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Entity
Response Headers
Content-Type
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.