Adds a new item to the specified cart, allowing the user to configure and check out a product.
POST
/2025-3/cart-items
curl \
--request POST 'https://api.pace.cloud/cart/2025-3/cart-items' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"cartId": "3682ea8c-4ca4-45d2-bc1e-e6e4dc597ffb",
"productId": "439436d5-3079-47b5-8803-f781c61dbad8"
}'
Request examples
{
"cartId": "3682ea8c-4ca4-45d2-bc1e-e6e4dc597ffb",
"productId": "439436d5-3079-47b5-8803-f781c61dbad8"
}
Response examples (201)
{
"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"
}
}