curl --request POST \
--url https://api.pricenow.dev/api/orders/{orderId}/cancel \
--header 'Content-Type: application/json' \
--header 'accept-language: <accept-language>' \
--header 'pratiq-channel-uuid: <pratiq-channel-uuid>' \
--data '
{
"orderItemIds": [
123
],
"reason": "<string>"
}
'{
"data": {
"id": 123,
"accountId": 123,
"purchasedAt": "2023-11-07T05:31:56Z",
"lastUpdateAt": "2023-11-07T05:31:56Z",
"status": "PAID",
"referenceNumber": "<string>",
"currency": "<string>",
"listPriceGross": 123,
"listPriceNet": 123,
"promoCodeDiscount": 123,
"autoDiscountAmount": 123,
"totalDiscountGross": 123,
"totalDiscountNet": 123,
"totalGross": 123,
"totalNet": 123,
"metadata": {
"weatherGuarantee": {}
}
}
}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 'accept-language: <accept-language>' \
--header 'pratiq-channel-uuid: <pratiq-channel-uuid>' \
--data '
{
"orderItemIds": [
123
],
"reason": "<string>"
}
'{
"data": {
"id": 123,
"accountId": 123,
"purchasedAt": "2023-11-07T05:31:56Z",
"lastUpdateAt": "2023-11-07T05:31:56Z",
"status": "PAID",
"referenceNumber": "<string>",
"currency": "<string>",
"listPriceGross": 123,
"listPriceNet": 123,
"promoCodeDiscount": 123,
"autoDiscountAmount": 123,
"totalDiscountGross": 123,
"totalDiscountNet": 123,
"totalGross": 123,
"totalNet": 123,
"metadata": {
"weatherGuarantee": {}
}
}
}Language of the response
en, de, fr, it UUID of the sales channel
Successful response
Show child attributes