This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves an order.
You can only call this method when authenticated as a Wix app or Wix user identity.
ID of the order to retrieve.
Set of fields to retrieve.
Fields that aren't included in fieldmaks.paths
are ignored.
See the article about field masks
for more details.
Retrieved order.
curl -X GET\
'https://www.wixapis.com/restaurants/v3/orders/64783425355' \
-H 'Authorization: <AUTH>' \
-d '{
"fieldMask": {
"paths" : [
"id",
"customer"
]
}
}'
{
"order": {
"id": "64783425355",
"createdDate": null,
"updatedDate": null,
"comment": null,
"currency": null,
"status": "UNSPECIFIED_ORDER_STATUS",
"lineItems": [],
"discounts": [],
"payments": [],
"fulfillment": null,
"customer": {
"firstName": "John",
"lastName": "Smith",
"phone": "2075556300",
"email": "john@example.com",
"contactId": "8046df3c-7575-4098-a5ab-c91ad8f33c47"
},
"totals": null,
"activities": [],
"channelInfo": null,
"coupon": null,
"loyaltyInfo": null
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.