Skip to content

CancelItems cancels items in an order.

You call thisScope not enforced

POST
/v2/storefront/orders/cancel
curl --request POST \
--url https://api.zentail.com/v2/storefront/orders/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "channelOrderId": "example", "cancelQuantities": { "additionalProperty": "example" } }'

CancelItemsRequest is the request to cancel items in an order.

Media typeapplication/json

CancelItemsRequest is the request to cancel items in an order.

object
channelOrderId
The order ID used by your channel when creating the order
string
cancelQuantities
A map of line item IDs to quantities to cancel
object
key
additional properties
string format: int64
Examplegenerated
{
"channelOrderId": "example",
"cancelQuantities": {
"additionalProperty": "example"
}
}

A successful response.

Media typeapplication/json

CancelItemsResponse is the response to a CancelItems request.

object
Examplegenerated
{}

An unexpected error response.

Media typeapplication/json
object
code
integer format: int32
message
string
details
Array<object>
object
@type
string
key
additional properties
Examplegenerated
{
"code": 1,
"message": "example",
"details": [
{
"@type": "example"
}
]
}

Sourceapi-proto@afdb30cc via [email protected]

Built0c509dd3

This page describes the source document as deployed: the version sales-orders pinned in its release r2026.09.24. A change merged upstream shows up here once it has deployed and the pins are next refreshed.

API changelog