MenuDigital API
Web service center for the digital menu system. Learn how to submit orders, accept them and take payments from your own application.
Get started
Welcome to the MenuDigital WebService Center. This system is for training and for learning how to work with the digital menu web services.
API endpoint
BASE
https://api.menudigital.ir/[v1, v2, v3]/To use this API you need an API key. Please contact us at developer@menudigital.ir to get your own key.
Set order for a place
To set an order for a place, make a POST call to the following URL:
POST
https://api.menudigital.ir/v2/setorderQuery parameters
| Field | Type | Description |
|---|---|---|
secret_key | String | Your API key |
userid | String | Hash string used to get the user's data |
options | String | [TableID] OR Delivery=0 |
sum | String | Order summary. Maximum characters: 200 |
orders | String (Array) | Array('FoodMenuID','Count',...) |
# Here is a curl example
curl \
-X POST https://api.menudigital.ir/v2/setorder \
-F 'secret_key=your_api_key' \
-F 'userid=[]' \
-F 'sum=[]' \
-F 'options=[]' \
-F 'orders=[]'
Accept an order
To accept an order for a place, make a POST call to the following URL:
POST
https://api.menudigital.ir/v2/aceptorderQuery parameters
| Field | Type | Description |
|---|---|---|
secret_key | String | Your API key |
id | Integer | Order ID |
Time | Integer | Order finish time, in timestamp format |
# Here is a curl example
curl \
-X POST https://api.menudigital.ir/v2/aceptorder \
-F 'secret_key=your_api_key' \
-F 'id=[]' \
-F 'Time=[]'
Pay an order
To pay an order, make a POST call to the following URL:
POST
https://api.menudigital.ir/v2/payQuery parameters
| Field | Type | Description |
|---|---|---|
secret_key | String | Your API key |
id | Integer | Order ID |
gateway | String | SEP.shaparak.ir, BPM.shaparak.ir or ... |
# Here is a curl example
curl \
-X POST https://api.menudigital.ir/v2/pay \
-F 'secret_key=your_api_key' \
-F 'id=[]' \
-F 'gateway=[]'
Errors
The MenuDigital API uses the following error codes:
| Error code | Meaning |
|---|---|
X000 | Some parameters are missing. This error appears when you don't pass every mandatory parameter. |
X001 | Unknown or invalid secret_key. This error appears if you use an unknown API key or if your API key has expired. |
X002 | Invalid secret_key for this domain. This error appears if you use an API key that is not specified for your domain. Developer or Universal API keys don't have a domain check. |
X003 | Unknown or invalid user token. This error appears if you use an unknown user token or if the user token has expired. |