Accept order
const url = 'https://prod.store-management.glovo.alb.app.onlineservice.io/api/v3/order-lifecycle/integrations/orders/example/accept/example';const options = { method: 'PUT', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '"{\"committedPreparationTime\": \"2024-02-02T19:20:30Z\"}\n"'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://prod.store-management.glovo.alb.app.onlineservice.io/api/v3/order-lifecycle/integrations/orders/example/accept/example \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '"{\"committedPreparationTime\": \"2024-02-02T19:20:30Z\"}\n"'Confirms the order was taken into the POS and, optionally, states when it will be ready.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Unique identifier of the order.
Unique identifier of the store.
Request Bodyrequired
Section titled “Request Bodyrequired”object
CommittedPreparationTime
string
The field must is in UTC format complying to ISO 8601 standard and should contain complete date as well as hours, minutes and seconds as follows:
YYYY-MM-DDThh:mm:ssZ (Example: 2024-02-02T19:20:30Z)
If the validation of this field fails, the order will still be accepted with a response containing validation result, but the committed preparation time will not be registered. Important: Committed preparation time can only be increased up to 10 minutes.
Response example if any problem appears { “invalid-params”: [ { “name”: “committedPreparationTime”, “reason”: “Committed preparation time is missing.” } ], “title”: “Your request parameters are not valid.” }
Example
{"committedPreparationTime": "2024-02-02T19:20:30Z"}Responses
Section titled “Responses”Accept order result
Error
Examplegenerated
example