Cancels a specific item in the cart, marking it as no longer needed.
Responses
-
The cart item has been successfully cancelled.
Hide response attribute Show response attribute object
-
The cart item that has been cancelled.
Hide data attributes Show data attributes object
-
The authorization details for the cart item.
-
The date and time when the cart item was cancelled.
-
The unique identifier for the cart to which this item belongs.
-
The checkout details for the cart item.
Hide checkout attributes Show checkout attributes object
-
The currency of the checkout.
-
The total price of the cart item, excluding VAT.
Minimum value is
0. -
The total price of the cart item, including VAT.
Minimum value is
0. -
The price per unit of the cart item, Excluding VAT.
Minimum value is
0. -
The price per unit of the cart item, including VAT.
Minimum value is
0. -
The consumed quantity of the cart item.
-
The status of the cart item regarding the checkout process.
Values are
PENDING,PROCESSING,COMPLETED,FAILED, orCANCELLED. -
The unit of measurement for the cart item quantity.
-
The total amount of VAT applied to the cart item.
Minimum value is
0. -
The vat rate applied to the cart item.
Minimum value is
0.
-
-
The configurations applied to the cart item.
One of: Hide attributes Show attributes
-
The localized label for the configuration item.
-
The name of the configuration item.
- option
object Required The selected option for this configuration.
One of: Hide attributes Show attributes
Hide attributes Show attributes
-
The currency in which the configuration option is priced.
-
An optional description for the configuration option.
-
The localized label for the configuration option.
-
The price per unit of the configuration option excluding VAT.
Minimum value is
0. -
The price per unit of the configuration option including VAT.
Minimum value is
0. -
The type of the configuration option.
-
The unit of measurement for the configuration option.
-
The technical identifier for the configuration option.
-
The VAT rate applied to the configuration option.
Minimum value is
0.
-
-
The type of the configuration item.
Hide attributes Show attributes
-
The localized label for the configuration item.
-
The name of the configuration item.
-
The selected option for this configuration.
One of: Hide attributes Show attributes
Hide attributes Show attributes
-
The currency in which the configuration option is priced.
-
An optional description for the configuration option.
-
The localized label for the configuration option.
-
The price per unit of the configuration option excluding VAT.
Minimum value is
0. -
The price per unit of the configuration option including VAT.
Minimum value is
0. -
The type of the configuration option.
-
The unit of measurement for the configuration option.
-
The technical identifier for the configuration option.
-
The VAT rate applied to the configuration option.
Minimum value is
0.
-
-
The type of the configuration item.
Hide attributes Show attributes
-
The localized label for the configuration item.
-
The latitude for the location.
-
The longitude for the location.
-
The name of the configuration item.
-
The type of the configuration item.
-
-
The date and time when the cart item was configured.
-
The date and time when the cart item was created.
-
The unique identifier for the cart item.
-
Optional metadata associated with the cart item. This may vary depending on the product and provider.
Additional properties are allowed.
- next
object Required The next configuration that needs to be applied to the cart item.
One of: Hide attributes Show attributes
-
The localized label for the next configuration item.
-
The unique identifier of the next configuration item.
-
The available options for the next configuration item.
One of: Hide attributes Show attributes
-
An optional description for the configuration option.
-
Indicates whether the configuration option is disabled for selection.
-
The localized label for the configuration option.
-
The type of the configuration option.
-
The technical identifier for the configuration option.
Hide attributes Show attributes
-
The currency in which the configuration option is priced.
-
An optional description for the configuration option.
-
Indicates whether the configuration option is disabled for selection.
-
The localized label for the configuration option.
-
The price per unit of the configuration option excluding VAT.
Minimum value is
0. -
The price per unit of the configuration option including VAT.
Minimum value is
0. -
The type of the configuration option.
-
The unit of measurement for the configuration option.
-
The technical identifier for the configuration option.
-
The VAT rate applied to the configuration option.
Minimum value is
0.
-
Hide attributes Show attributes
-
The localized label for the next configuration item.
-
The unique identifier of the next configuration item.
-
The available options for the next configuration item.
One of: Hide attributes Show attributes
-
An optional description for the configuration option.
-
Indicates whether the configuration option is disabled for selection.
-
The localized label for the configuration option.
-
The type of the configuration option.
-
The technical identifier for the configuration option.
Hide attributes Show attributes
-
The currency in which the configuration option is priced.
-
An optional description for the configuration option.
-
Indicates whether the configuration option is disabled for selection.
-
The localized label for the configuration option.
-
The price per unit of the configuration option excluding VAT.
Minimum value is
0. -
The price per unit of the configuration option including VAT.
Minimum value is
0. -
The type of the configuration option.
-
The unit of measurement for the configuration option.
-
The technical identifier for the configuration option.
-
The VAT rate applied to the configuration option.
Minimum value is
0.
-
-
-
The product details associated with the cart item.
-
The current status of the cart item.
Values are
CONFIGURING,CONFIGURED, orCANCELLED. -
The date and time when the cart item was last updated.
-
-
-
Client authentication failed.
-
Missing one or more required scopes.
-
The specified cart item was not found.
-
An unexpected error occurred.
curl \
--request POST 'https://api.sandbox.pace.cloud/cart/2025-3/cart-items/8576a377-5a1b-4d04-8051-36cb996e9f6e/cancel' \
--header "Authorization: Bearer $ACCESS_TOKEN"
{
"data": {
"authorization": {
"amount": "120",
"currency": "EUR"
},
"cancelledAt": "2025-03-15T12:00:00.000Z",
"cartId": "71597ea2-e7e7-4eb5-b5c5-01eec9c1d81b",
"checkout": {
"currency": "EUR",
"priceExcludingVAT": "61.26",
"priceIncludingVAT": "72.90",
"pricePerUnitExcludingVAT": "1.419",
"pricePerUnitIncludingVAT": "1.689",
"quantity": "43.17",
"status": "PENDING",
"unit": "LITER",
"vatAmount": "8.23",
"vatRate": "0.19"
},
"configurations": [
{
"label": "Pump Number",
"name": "PUMP_NUMBER",
"type": "INPUT",
"value": "100"
}
],
"configuredAt": "2025-03-15T12:00:00.000Z",
"createdAt": "2025-03-15T12:00:00.000Z",
"id": "c7b3d2af-4046-4711-8fbf-36ce1b5f31d3",
"metadata": {},
"next": {
"label": "Pump Number",
"name": "PUMP_NUMBER",
"pattern": "string",
"type": "INPUT"
},
"product": {
"id": "88dd01e3-c300-44af-83e6-86b362c8fa39",
"label": "PACE Connected Fueling",
"type": "FUELING"
},
"status": "CONFIGURING",
"updatedAt": "2025-03-16T12:00:00.000Z"
}
}