Path parameters
-
The id of the point of sale
Body Required
-
active boolean
-
external_id string(nullable)
-
labels array[object]
-
descriptions array[object]
-
hours array[object]
-
pos_type integer(int32)
Values are
1
,2
,3
,4
,5
,6
,7
, or8
. -
phone string(nullable)
-
email string(nullable)
-
external_url string(nullable)
PATCH /manager/points-of-sale/{id}
curl \
-X PATCH https://domain.tld/api/v2/manager/points-of-sale/{id} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"active":true,"external_id":"string","labels":[{"lang":"en_GB","content":"Hello"}],"descriptions":[{"lang":"en_GB","content":"Hello"}],"hours":[{"lang":"en_GB","content":"Hello"}],"pos_type":1,"phone":"string","email":"string","external_url":"string"}'
Request examples
{
"active": true,
"external_id": "string",
"labels": [
{
"lang": "en_GB",
"content": "Hello"
}
],
"descriptions": [
{
"lang": "en_GB",
"content": "Hello"
}
],
"hours": [
{
"lang": "en_GB",
"content": "Hello"
}
],
"pos_type": 1,
"phone": "string",
"email": "string",
"external_url": "string"
}
Response examples (200)
{
"id_point_of_sale": 42,
"date_insert": "string",
"date_update": "string",
"active": true,
"external_id": "string",
"pos_type": 42,
"phone": "string",
"email": "string",
"external_url": "string",
"members": [
{
"id_ambassador": 42,
"image": "string",
"firstname": "string",
"lastname": "string",
"username": "string",
"email": "string",
"email_tmp": "string",
"active": 42,
"status": 42,
"online": true,
"last_action_date": "2024-05-04T09:42:00+00:00",
"customer_id": "string",
"anonymized": true
}
],
"address_geocode": {
"date_insert": "2024-05-04T09:42:00+00:00",
"date_update": "2024-05-04T09:42:00+00:00",
"latitude": "48.856614",
"longitude": "2.3522219",
"city": "Paris",
"country": "France",
"postcode": "75001",
"street": "Rue de Rivoli",
"street2": "Place de la Concorde"
},
"labels": [
{
"id_i18n_content": 42,
"lang": "en_GB",
"content": "Hello"
}
],
"descriptions": [
{
"id_i18n_content": 42,
"lang": "en_GB",
"content": "Hello"
}
],
"hours": [
{
"id_i18n_content": 42,
"lang": "en_GB",
"content": "Hello"
}
]
}
Response examples (401)
{
"message": "Unauthorized."
}
Response examples (422)
{
"message": "field is required! (and 3 more error)",
"errors": {
"field": [
"Error message details here"
],
"additionalProperty1": [
"Error message details here"
],
"additionalProperty2": [
"Error message details here"
]
}
}