curl --request PATCH \
--url https://app.eat-now.io/api/partner/v1/customers/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tags": [
"VIP",
"Wine club"
],
"newsletter_consent": false
}
'import requests
url = "https://app.eat-now.io/api/partner/v1/customers/{id}"
payload = {
"tags": ["VIP", "Wine club"],
"newsletter_consent": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({tags: ['VIP', 'Wine club'], newsletter_consent: false})
};
fetch('https://app.eat-now.io/api/partner/v1/customers/{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://app.eat-now.io/api/partner/v1/customers/{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([
'tags' => [
'VIP',
'Wine club'
],
'newsletter_consent' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://app.eat-now.io/api/partner/v1/customers/{id}"
payload := strings.NewReader("{\n \"tags\": [\n \"VIP\",\n \"Wine club\"\n ],\n \"newsletter_consent\": false\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://app.eat-now.io/api/partner/v1/customers/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tags\": [\n \"VIP\",\n \"Wine club\"\n ],\n \"newsletter_consent\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.eat-now.io/api/partner/v1/customers/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tags\": [\n \"VIP\",\n \"Wine club\"\n ],\n \"newsletter_consent\": false\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"external_id": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"phone_number": "<string>",
"country_code": "<string>",
"lang": "FR",
"tags": [
"<string>"
],
"note": "<string>",
"custom_fields": {},
"newsletter_consent": true,
"marketing_opt_outs": [
"EMAIL"
],
"blacklisted": true,
"stats": {
"reservation_count": 123,
"confirmed_count": 123,
"no_show_count": 123,
"feedback_count": 123,
"average_feedback_score": 123,
"total_amount_paid": 123,
"average_basket": 123,
"last_reservation_date": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}Update a customer
Partial update: only the provided fields change, null clears a field. tags replaces the whole list; custom_fields only changes the given fields. The customer is shared by all their reservations. Requires CUSTOMERS_WRITE and CUSTOMERS_READ.
curl --request PATCH \
--url https://app.eat-now.io/api/partner/v1/customers/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tags": [
"VIP",
"Wine club"
],
"newsletter_consent": false
}
'import requests
url = "https://app.eat-now.io/api/partner/v1/customers/{id}"
payload = {
"tags": ["VIP", "Wine club"],
"newsletter_consent": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({tags: ['VIP', 'Wine club'], newsletter_consent: false})
};
fetch('https://app.eat-now.io/api/partner/v1/customers/{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://app.eat-now.io/api/partner/v1/customers/{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([
'tags' => [
'VIP',
'Wine club'
],
'newsletter_consent' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://app.eat-now.io/api/partner/v1/customers/{id}"
payload := strings.NewReader("{\n \"tags\": [\n \"VIP\",\n \"Wine club\"\n ],\n \"newsletter_consent\": false\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://app.eat-now.io/api/partner/v1/customers/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tags\": [\n \"VIP\",\n \"Wine club\"\n ],\n \"newsletter_consent\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.eat-now.io/api/partner/v1/customers/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tags\": [\n \"VIP\",\n \"Wine club\"\n ],\n \"newsletter_consent\": false\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"external_id": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"phone_number": "<string>",
"country_code": "<string>",
"lang": "FR",
"tags": [
"<string>"
],
"note": "<string>",
"custom_fields": {},
"newsletter_consent": true,
"marketing_opt_outs": [
"EMAIL"
],
"blacklisted": true,
"stats": {
"reservation_count": 123,
"confirmed_count": 123,
"no_show_count": 123,
"feedback_count": 123,
"average_feedback_score": 123,
"total_amount_paid": 123,
"average_basket": 123,
"last_reservation_date": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}Authorizations
Restaurant-scoped partner API token passed as Authorization: Bearer <token>.
Path Parameters
EatNow customer identifier.
1Body
Partial customer update. Include only the fields that should change; null clears a field.
1 - 200E.164 (+33612345678) recommended. A national number is read with the restaurant's country.
3 - 40FR, EN, IT, ES, DE, PT Partner-side identifier of the customer.
1 - 255Replaces all the customer's tags.
1001 - 100Internal staff note.
10000Custom field values keyed by field id (see GET /api/partner/v1/customer-fields). Only the given fields change; null clears one. The value must fit the field type: TEXT → string, NUMBER → number within min/max, DATE → YYYY-MM-DD, BOOLEAN → boolean, SELECT → one option value, MULTI_SELECT → an array of distinct option values (at most max_items).
Show child attributes
Show child attributes
Newsletter consent. false withdraws it; channel opt-outs (marketing_opt_outs) are managed by EatNow.
Response
Updated customer
Show child attributes
Show child attributes
