- Developer guide
- New to our DevPortal 🤔
- Authentication
- Webhook
- Overview
- Invoice Webhooks
- Orders Webhooks
- Menu Webhooks
- Loyalty Webhooks
- Customer webhook
- Error webhook
- Orders
- Menu
- Branches
- Devices
- Order type
- Price Lists
- Payment Methods
- Order Charges
- Taxes
- Customers
Single Product
GET
https://{serviceID}.retm.sa/api/v2/products/{ID}
Type | Meaning |
---|---|
1 | Normal Product |
2 | With Modifiers |
3 | UNDER PROGRESS |
4 | With Variations |
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
ID
string
required
Responses
🟢200Products
application/json
Body
id
string
required
name
object
required
en
string
required
ar
string
required
description
object
required
en
string
required
ar
string
required
image
string
required
price
string
required
calories
string
required
estimated_time
string
required
type
integer
required
over_stock
integer
required
variations
array [object {5}]
required
id
string
required
sku
string
required
name
object
required
price
string
required
image
null
required
modifiers
array [object {5}]
required
name
object
optional
multiple
integer
optional
min_selection
integer
optional
max_selection
null
optional
items
array [object {3}]
optional
category
object
required
id
string
required
title
object
required
taxes
array [object {5}]
required
id
string
optional
name
object
optional
value
string
optional
type
integer
optional
from_final_total
integer
optional
Example
{
"id": "01GZK6C7J03PQP7KGRAQ3F197Y",
"name": {
"en": "coffee day",
"ar": "قهوة اليوم"
},
"description": {
"en": "coffee day",
"ar": "قهوة اليوم"
},
"image": "https://cdn.retm.sa/items/IN6yn7QGo.jpg",
"price": "7.000",
"calories": "9.00",
"estimated_time": "14.00",
"type": 4,
"over_stock": 1,
"variations": [
{
"id": "01j82mx3m4376mp9rw5a9rxkbx",
"sku": "185950419",
"name": {
"ar": "كبير",
"en": "large"
},
"price": "11.000",
"image": null
},
{
"id": "01j82mx3mh145fy0jcbzc2ry0r",
"sku": "937363666",
"name": {
"ar": "صغير",
"en": "small"
},
"price": "9.000",
"image": null
}
],
"modifiers": [
{
"name": {
"ar": "المشروب",
"en": "Drink"
},
"multiple": 1,
"min_selection": 0,
"max_selection": null,
"items": [
{
"id": "01hpkd1wj0k9bfermyc8cy0agk",
"name": {
"ar": "بيبسي",
"en": "Pepsi"
},
"extra_price": "12.000"
},
{
"id": "01hpkd1wj290dfcbvxxdj89pzs",
"name": {
"ar": "كوكاكولا",
"en": "Cocacole"
},
"extra_price": "10.000"
},
{
"id": "01hzkgmq8sd98ya14p0wa4aqry",
"name": {
"ar": "عرض المشروب هدية",
"en": "عرض المشروب هدية"
},
"extra_price": "-10.000"
}
]
}
],
"category": {
"id": "01hjnnt6d2hyasgjepb87z8gev",
"title": {
"ar": "المقطرة",
"en": "Drip coffee"
}
},
"taxes": [
{
"id": "01j9t4g36v6vgz798bd3nj3ezh",
"name": {
"en": "VAT",
"ar": "ضريبة القيمة المضافة"
},
"value": "15.000",
"type": 2,
"from_final_total": 0
}
]
}
Modified at 2024-11-05 07:17:59