Skip to main content
POST
/
api
/
orders
/
{orderId}
/
cancel
cURL
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
  }
}

Headers

pratiq-client-id
required

Global Webshop Client Id

pratiq-channel-uuid
string

UUID of the sales channel

Path Parameters

orderId
number
required

Body

application/json
orderItemIds
number[]
required
reason
string

Response

200 - application/json

Successful response

data
object
required