Get started
API Endpoint: https://api.menudigital.ir/[v1,v2,v3]/
Welcome to API MenuDigital WebService Center, this system is for training and how to work with digital menu system web services.
To use this API, you need an API key. Please contact us at developer@menudigital.ir to get your own API key.
Set Order for a place
# Here is a curl example
curl \
-X POST https://api.menudigital.ir.com/v2/setorder \
-F 'secret_key=your_api_key' \
-F 'userid=[]' \
-F 'sum=[]' \
-F 'options=[]' \
-F 'orders=[]'
To set order for a place you need to make a POST call to the following url :
https://api.menudigital.ir.com/v2/setorder
QUERY PARAMETERS
Field | Type | Description |
---|---|---|
userid | String | send Hash String for GET User data |
options | String | [TableID] OR Delivery=0 |
sum | String | Order summary , Maximum characters: 200 |
orders | String(Array) | Array('FoodMenuID','Count',...) |
Accept an Order
# Here is a curl example
curl \
-X POST https://api.menudigital.ir.com/v2/aceptorder \
-F 'secret_key=your_api_key' \
-F 'id=[]' \
-F 'Time=[]'
To accept an order for a place you need to make a POST call to the following url :
https://api.menudigital.ir/v2/aceptorder
QUERY PARAMETERS
Field | Type | Description |
---|---|---|
id | Integer | ORDER ID |
Time | Integer | Finish order time in timestamps format |
Pay an Order
# Here is a curl example
curl \
-X POST https://api.menudigital.ir.com/v2/pay \
-F 'secret_key=your_api_key' \
-F 'id=[]' \
-F 'gateway=[]'
To pay an order you need to make a POST call to the following url :
https://api.menudigital.ir/v2/pay
QUERY PARAMETERS
Field | Type | Description |
---|---|---|
id | Integer | ORDER ID |
gateway | String | SEP.shaparak.ir,BPM.shaparak.ir or ... |
Errors
The Westeros API uses the following error codes:
Error Code | Meaning |
---|---|
X000 | Some parameters are missing. This error appears when you don't pass every mandatory parameters. |
X001 |
Unknown or unvalid secret_key . This error appears if you use an unknow API key or if your API key expired.
|
X002 |
Unvalid secret_key for this domain. This error appears if you use an API key non specified for your domain. Developper or Universal API keys doesn't have domain checker.
|
X003 |
Unknown or unvalid user token . This error appears if you use an unknow user token or if the user token expired.
|