Skip to main content
POST
/
order
/
pickup_delivery_times
Pickup / delivery times
curl --request POST \
  --url https://app.xmenu.it/api/order/pickup_delivery_times \
  --header 'Content-Type: application/json' \
  --header 'X-Client-Id: <api-key>' \
  --header 'X-Client-Secret: <api-key>' \
  --data '
{
  "dmethod": "<string>",
  "subrestaurant_uid": "<string>",
  "place_id": "<string>",
  "language": "<string>"
}
'
{
"success": true,
"error": "<string>",
"message": "<string>",
"data": {
"pickup_times": [
{
"date": "2023-11-07T05:31:56Z",
"formatted": "<string>"
}
],
"delivery_times": [
{
"date": "2023-11-07T05:31:56Z",
"formatted": "<string>"
}
]
}
}
write:orders

Authorizations

X-Client-Id
string
header
required

Client ID for API Client authentication (must be used together with Client Secret)

X-Client-Secret
string
header
required

Client Secret for API Client authentication (must be used together with Client ID)

Body

application/json
dmethod
string
required

Delivery method:

  • 0 = pickup at location
  • 1 = home delivery
  • 0t = at table
  • 20 = pickup at pickup point
  • 0e-{id} = event (where {id} is the event ID)
  • dcf-{id} = custom method (where {id} is the method ID)
subrestaurant_uid
string

Location identifier. Required for multi-location restaurants

place_id
string

Address identifier (obtained from address validation). Required if dmethod = 1 (home delivery)

language
string

ISO 639-1 language code; defaults to restaurant settings

Response

Available times response

success
boolean
required

Operation result: true if successful, false if failed

error
string

Error code if the operation failed. Possible values:

  • SUBRESTAURANT_NOT_FOUND = location not found
  • INVALID_ADDRESS = invalid address

See Error codes for general error codes that may occur.

message
string

Human-readable error description if the operation failed

data
object

Available times data (present only if success = true)