Headers
Global Webshop Client Id
UUID of the sales channel
Path Parameters
Response
200 - application/json
Successful response
curl --request POST \
--url https://api.pricenow.dev/api/orders/{orderId}/cancel \
--header 'Content-Type: application/json' \
--header 'pratiq-client-id: <pratiq-client-id>' \
--data '
{
"orderItemIds": [
123
],
"reason": "<string>"
}
'{
"data": {
"id": 123,
"purchasedAt": "2023-11-07T05:31:56Z",
"lastUpdateAt": "2023-11-07T05:31:56Z",
"status": "EXPIRED",
"referenceNumber": "<string>",
"currency": "<string>",
"listPriceGross": 123,
"listPriceNet": 123,
"promoCodeDiscount": 123,
"autoDiscountAmount": 123,
"totalDiscountGross": 123,
"totalDiscountNet": 123,
"totalGross": 123,
"totalNet": 123
}
}Cancel an order. Only works for Order Items which have a “flex” insurance.
curl --request POST \
--url https://api.pricenow.dev/api/orders/{orderId}/cancel \
--header 'Content-Type: application/json' \
--header 'pratiq-client-id: <pratiq-client-id>' \
--data '
{
"orderItemIds": [
123
],
"reason": "<string>"
}
'{
"data": {
"id": 123,
"purchasedAt": "2023-11-07T05:31:56Z",
"lastUpdateAt": "2023-11-07T05:31:56Z",
"status": "EXPIRED",
"referenceNumber": "<string>",
"currency": "<string>",
"listPriceGross": 123,
"listPriceNet": 123,
"promoCodeDiscount": 123,
"autoDiscountAmount": 123,
"totalDiscountGross": 123,
"totalDiscountNet": 123,
"totalGross": 123,
"totalNet": 123
}
}Global Webshop Client Id
UUID of the sales channel
Successful response
Show child attributes