PATCH
/
consumers
/
{consumer_id}
/
pos
/
orders
/
{order_id}
curl --request PATCH \
  --url https://api.chift.eu/consumers/{consumer_id}/pos/orders/{order_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customer_id": "371ca583-d218-4900-b236-397532cf0e52"
}'
{
  "id": "371ca583-d218-4900-b236-397532cf0e52",
  "order_number": "1",
  "creation_date": "2025-01-01T00:00:00Z",
  "closing_date": "2025-01-01T00:00:00Z",
  "service_date": "2025-01-01T00:00:00Z",
  "device_id": "device-123",
  "total": 11,
  "tax_amount": 1,
  "total_discount": 10,
  "total_refund": 5,
  "total_tip": 1,
  "delivery_fee": 1,
  "currency": "EUR",
  "country": "FR",
  "loyalty": 100,
  "customer_id": "customer-123",
  "location_id": "location-123",
  "taxes": [],
  "guests": 1,
  "payments": [
    {
      "id": "payment-123",
      "payment_method_id": "payment-method-123",
      "payment_method_name": "Cash",
      "total": 11,
      "tip": 1,
      "status": "Completed",
      "currency": "EUR",
      "date": "2025-01-01T00:00:00Z"
    }
  ],
  "items": [
    {
      "id": "123",
      "type": "product",
      "menu_id": "456",
      "quantity": 1,
      "unit_price": 10,
      "total": 11,
      "tax_amount": 1,
      "tax_rate": 10,
      "description": "Pizza",
      "discounts": [],
      "product_id": "789",
      "accounting_category_id": "123"
    }
  ]
}

Authorizations

Authorization
string
header
required

This access token needs to be included in each of your request to the Chift API.

Path Parameters

consumer_id
string
required
order_id
string
required

Body

application/json
customer_id
string

Unique identifier of the customer

Example:

"371ca583-d218-4900-b236-397532cf0e52"

Response

200
application/json
Successful Response
id
string
required

Unique identifier of the order

Example:

"371ca583-d218-4900-b236-397532cf0e52"

creation_date
string
required

Creation date of the order

Example:

"2025-01-01T00:00:00Z"

total
number
required

Total amount including tax of the order

Example:

11

tax_amount
number
required

Total amount of the taxes of the order

Example:

1

payments
object[]
required

List of payments made for the order

items
object[]
required

List of item lines in the order

order_number
string

Order number (often unique reference during the day)

Example:

"1"

closing_date
string

Closing date of the order

Example:

"2025-01-01T00:00:00Z"

service_date
string

Indicates the date of the service to which the order belongs (can be used to group orders by closure date)

Example:

"2025-01-01T00:00:00Z"

device_id
string

ID of device that created the order

Example:

"device-123"

total_discount
number
default:0

Total amount of the discounts of the order

Example:

10

total_refund
number
default:0

Total amount of the refunds of the order

Example:

5

total_tip
number
default:0

Total amount of the tips of the order. Tips are not part of the total of the order

Example:

1

delivery_fee
number
default:0

Total amount of the delivery fees of the order

Example:

1

currency
string

Currency of the order

Example:

"EUR"

country
string

Country of the order, format: ISO 3166-1 codes.

Example:

"FR"

loyalty
integer

Loyalty points of the order

Example:

100

customer_id
string

Unique identifier of the customer

Example:

"customer-123"

location_id
string

Unique identifier of the location

Example:

"location-123"

taxes
object[]

List of taxes of the order

guests
integer

Number of guests linked to the order

Example:

1