Update order
curl --request PATCH \
--url https://api.chift.eu/consumers/{consumer_id}/pos/orders/{order_id} \
--header 'Content-Type: application/json' \
--data '
{
"customer_id": "<pos-customer-id>"
}
'import requests
url = "https://api.chift.eu/consumers/{consumer_id}/pos/orders/{order_id}"
payload = { "customer_id": "<pos-customer-id>" }
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({customer_id: '<pos-customer-id>'})
};
fetch('https://api.chift.eu/consumers/{consumer_id}/pos/orders/{order_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.chift.eu/consumers/{consumer_id}/pos/orders/{order_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'customer_id' => '<pos-customer-id>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.chift.eu/consumers/{consumer_id}/pos/orders/{order_id}"
payload := strings.NewReader("{\n \"customer_id\": \"<pos-customer-id>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.chift.eu/consumers/{consumer_id}/pos/orders/{order_id}")
.header("Content-Type", "application/json")
.body("{\n \"customer_id\": \"<pos-customer-id>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.chift.eu/consumers/{consumer_id}/pos/orders/{order_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"customer_id\": \"<pos-customer-id>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<this-order-id>",
"creation_date": "2025-01-01T00:00:00Z",
"total": 11,
"tax_amount": 1,
"payments": [
{
"total": 11,
"id": "<this-payment-id>",
"payment_method_id": "<pos-payment-method-id>",
"payment_method_name": "Cash",
"tip": 1,
"status": "Completed",
"currency": "EUR",
"date": "2025-01-01T00:00:00Z",
"invoice_ref": "<pos-invoice-id>",
"order_id": "<pos-order-id>"
}
],
"items": [
{
"id": "<this-order-line-id>",
"quantity": 1,
"unit_price": 10,
"total": 11,
"tax_amount": 1,
"type": "product",
"menu_id": "<pos-menu-id>",
"tax_rate": 10,
"tax_id": "<pos-tax-id>",
"description": "Pizza",
"discounts": [],
"product_id": "<pos-product-id>",
"accounting_category_id": "<pos-accounting-category-id>",
"modifiers": [],
"prepayment_method_id": "giftVoucher"
}
],
"order_number": "1",
"closing_date": "2025-01-01T00:00:00Z",
"service_date": "2025-01-01T00:00:00Z",
"device_id": "<pos-device-id>",
"total_discount": 10,
"total_refund": 5,
"total_tip": 1,
"delivery_fee": 1,
"mode": "eat_in",
"source": "web",
"currency": "EUR",
"country": "FR",
"loyalty": 100,
"customer_id": "<pos-customer-id>",
"location_id": "<pos-location-id>",
"taxes": [],
"guests": 1,
"invoice_id": "<pos-invoice-id>"
}{
"message": "Error while trying to perform your request",
"status": "error"
}{
"message": "The resource {Method} - {Resource} is not supported by {ConnectorName}",
"status": "error"
}{
"message": "Validation error",
"status": "error",
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"message": "Error while trying to authenticate to {ConnectorName}",
"status": "error"
}Orders
Update order
Updates a specific order in the POS system with the provided fields and returns the updated record.
PATCH
/
consumers
/
{consumer_id}
/
pos
/
orders
/
{order_id}
Update order
curl --request PATCH \
--url https://api.chift.eu/consumers/{consumer_id}/pos/orders/{order_id} \
--header 'Content-Type: application/json' \
--data '
{
"customer_id": "<pos-customer-id>"
}
'import requests
url = "https://api.chift.eu/consumers/{consumer_id}/pos/orders/{order_id}"
payload = { "customer_id": "<pos-customer-id>" }
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({customer_id: '<pos-customer-id>'})
};
fetch('https://api.chift.eu/consumers/{consumer_id}/pos/orders/{order_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.chift.eu/consumers/{consumer_id}/pos/orders/{order_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'customer_id' => '<pos-customer-id>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.chift.eu/consumers/{consumer_id}/pos/orders/{order_id}"
payload := strings.NewReader("{\n \"customer_id\": \"<pos-customer-id>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.chift.eu/consumers/{consumer_id}/pos/orders/{order_id}")
.header("Content-Type", "application/json")
.body("{\n \"customer_id\": \"<pos-customer-id>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.chift.eu/consumers/{consumer_id}/pos/orders/{order_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"customer_id\": \"<pos-customer-id>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<this-order-id>",
"creation_date": "2025-01-01T00:00:00Z",
"total": 11,
"tax_amount": 1,
"payments": [
{
"total": 11,
"id": "<this-payment-id>",
"payment_method_id": "<pos-payment-method-id>",
"payment_method_name": "Cash",
"tip": 1,
"status": "Completed",
"currency": "EUR",
"date": "2025-01-01T00:00:00Z",
"invoice_ref": "<pos-invoice-id>",
"order_id": "<pos-order-id>"
}
],
"items": [
{
"id": "<this-order-line-id>",
"quantity": 1,
"unit_price": 10,
"total": 11,
"tax_amount": 1,
"type": "product",
"menu_id": "<pos-menu-id>",
"tax_rate": 10,
"tax_id": "<pos-tax-id>",
"description": "Pizza",
"discounts": [],
"product_id": "<pos-product-id>",
"accounting_category_id": "<pos-accounting-category-id>",
"modifiers": [],
"prepayment_method_id": "giftVoucher"
}
],
"order_number": "1",
"closing_date": "2025-01-01T00:00:00Z",
"service_date": "2025-01-01T00:00:00Z",
"device_id": "<pos-device-id>",
"total_discount": 10,
"total_refund": 5,
"total_tip": 1,
"delivery_fee": 1,
"mode": "eat_in",
"source": "web",
"currency": "EUR",
"country": "FR",
"loyalty": 100,
"customer_id": "<pos-customer-id>",
"location_id": "<pos-location-id>",
"taxes": [],
"guests": 1,
"invoice_id": "<pos-invoice-id>"
}{
"message": "Error while trying to perform your request",
"status": "error"
}{
"message": "The resource {Method} - {Resource} is not supported by {ConnectorName}",
"status": "error"
}{
"message": "Validation error",
"status": "error",
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"message": "Error while trying to authenticate to {ConnectorName}",
"status": "error"
}Learn more:
Body
application/json
Response
Successful Response