- Start Here 🚀
- Overview to Zid Apps
- Authorization
- Responses
- Webhooks
- Rate Limiting
- APIs
- Orders
- Reverse Orders
- Carts
- Products
- Inventories
- Shipping
- Marketing
- Gift Cards
- Coupons
- Bundle Offers
- Loyalty Program
- Loyalty Program Points per OrderGET
- Store Loyalty StatusGET
- Info PageGET
- Loyalty Program ActivationPOST
- Loyalty StatusGET
- Set Points ExpirationPOST
- Cashback Rule Method UpdatePOST
- Cashback Rule Method Update StatusPUT
- Add Points Redemption MethodPOST
- Update Points Redemption MethodPOST
- Delete Points Redemption MethodPOST
- Toggle Redemption Method StatusPUT
- Show Loyalty Points Info for Specific CustomerGET
- Customer ProfileGET
- List DataGET
- Customer Points HistoryGET
- Info Page - ManagersGET
- Update Info PagePUT
- Adjust Customer PointsPOST
- Gift Cards
- Customers
- Store Settings
- Countries and Cities
- Webhook
- Orders
- Store Events
Create a new product
POST
https://api.zid.sa/v1/products/
Products
Creating variants of a product#
populate the
variants
array as shown in the request body below.Alternatively, you can use the Add Product Variants endpoint.
🔑Scopes
products.read_write
- Products Read & WriteRequest
Header Params
Authorization
stringÂ
required
Example:
Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxMTciLCJqdGkiOiJhMTg5ZTg3MmYxMzhkMWVhYjU5MjVkMDkyMGE5NmI0YjliNjg0Y2E2ZTdmM2M2MjljZWYxNmQ4NDJjMmJlYmVhMjI4YTdmMTA0ZWQ4NWE5NCIsImlhdCI6MTY3OTU3Njk5OS41NjY4NzcsIm5iZiI6MTY3OTU3Njk5OS41NjY4OCwiZXhwIjoxNzExMTk5Mzk5LjQ4NjE1Mywic3ViIjoiMTgyNDc1Iiwic2NvcGVzIjpbInRoaXJkLXBhcnRpZXMtYXBpcyJdfQ.i07ef09nVNXGZF-g-QXpNoS2vlFQK_zntAqAMS4Az2XD2EyMLhxLZZRL-QlR11zUPqMmXjMAl_4ooKa3M3zkfZQ6Ga6qStvamk8RnC_39VUx0lfN2A4k65ERZpqwrMy6-t3dE99zay3aicIdNvbgi0zeuMSE5Tn99u-2AtSRa8ffbfAcYPPXacHrhdmlYzdiZS_x_skovFEow1E-nDjdL1WHqO92XdZ7RfNLkiYFTjZlZmM_UruvioaR3q6TXJbqRK_ZrziivezL8ohIQ2SBosUp58I29rlKzvlw_R2j0rKKYZbdxYDaxAHOISmOFKAlO66k7dNevAHI3s4uGIjoGA6ZXHknccWPLLLiaAQ0r64HV8GowW5dg2rhZNurJGDTnLlBQ6F-ql42ptHzSAfzzi576CEoN3gMVpgXcbntUY3reETkFsTBPUjeSuMpANMioXAA0GRp3Ut-84fTnrWxqsCW1WVUIx33HvmfCGPXIdkaCCWoA6G6KXo04MtFbKXQmXkK9esQWI-rqdVnMD3zSR3g3yFHZSL1U-mZeNja03706Rav1ordsRNOtRwtLuoRRbk9KasbUpEwqq4Ao9lqZZwRIjdEw-pQtnUT8V53fhmuuRIefCLFO7eGEtGUnh9o6Uh_pgi6AB6uSlnN9GEMGgI1alqvMmTjxvC-HHt0V-Y
X-Manager-Token
stringÂ
required
X-Manager-Token
should be included in the header of API requests that require store-related information.Example:
eyJpdiI6Imh3L2dGbmJmRnVCOUY4WW5WQ2s3RFE9PSIsInZhbHVlIjoiZklpRnJyVGV1OWcrZUJBNk44bVp5SjZzSS92V3czcTJjbnJ2dFYvenZ3SFBtWHNSMFU3ZEMzZ0ZJNnpucVE4Ui9rNFdicUduOGpKUlg1VXdGOFFIaVUzZjZyUUZybWx3R0tNY3orUmxoUUUxQ29wSkEyVDZTVnVYb2dlUXJSVzBYVkdESjBpS0xiN05Hbndzc2wzV2N0YitGM1NEdkk4ckZZOTZsTFdEL1ZQRlJJTE5FQmttZng2elpwL1RCeXFRdUd1U3JTc0FHV1kySS80RFJaWlIyZ3gwM2FsQVRFbkt3VWtFOUQyKzdGOD0iLCJtYWMiOiJmZDQ0YzM4ODE0OWQxOWRhYWU0NDhhYmIzYzQ1MDAxMDAzODZjZGM3ZGM4NGJhMGNkMDEyYWZlM2UzYjAxMTI4IiwidGFnIjoiIn0=
Store-Id
numberÂ
required
Example:
37213
Accept-Language
enum<string>Â
optional
en
if not specified.Allowed values:
enar
Example:
en
Role
enum<string>Â
required
Allowed value:
Manager
Example:
Manager
Body Params application/json
is_draft
booleanÂ
optional
Default:
false
name
objectÂ
optional
ar
stringÂ
optional
Example:
منتج جديد
en
stringÂ
optional
Example:
New Product
badge
objectÂ
optional
value
stringÂ
optional
body
objectÂ
optional
seo
objectÂ
optional
title
objectÂ
optional
description
objectÂ
optional
sku
stringÂ
required
Example:
Z.987654.1234567890
barcode
stringÂ
optional
short_description
objectÂ
optional
ar
stringÂ
optional
en
stringÂ
optional
description
objectÂ
optional
ar
stringÂ
optional
en
stringÂ
optional
purchase_restrictions
objectÂ
optional
min_quantity_per_cart
nullÂ
optional
max_quantity_per_cart
nullÂ
optional
sale_price_period_start
stringÂ
optional
.sssZ) and determines when the discounted sale price becomes effective.
Example:
2024-09-18T21:00:00.000000
sale_price_period_end
stringÂ
optional
Example:
2024-09-19T20:59:59.000000Z
price
integerÂ
optional
Example:
142.44
sale_price
integerÂ
optional
is_published
booleanÂ
optional
Default:
true
is_taxable
booleanÂ
optional
requires_shipping
booleanÂ
optional
Default:
true
categories
array [object]Â
optional
cost
integerÂ
optional
Example:
10
keywords
array[string]
optional
slug
stringÂ
optional
weight
objectÂ
optional
value
integer  | nullÂ
optional
Example:
100
unit
stringÂ
optional
Example:
kg
custom_option_fields
array [object]Â
optional
custom_user_input_fields
array [object]Â
optional
product_class
stringÂ
optional
group_products
array [object {2}]Â
optional
item_id
stringÂ
optional
item_quantity
integerÂ
optional
Example:
3
stocks
array [object {3}]Â
optional
available_quantity
integer  | nullÂ
optional
Example:
1
is_infinite
booleanÂ
optional
Default:
false
location
stringÂ
optional
stringÂ
optional
Example
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl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manager-Token: eyJpdiI6Imh3L2dGbmJmRnVCOUY4WW5WQ2s3RFE9PSIsInZhbHVlIjoiZklpRnJyVGV1OWcrZUJBNk44bVp5SjZzSS92V3czcTJjbnJ2dFYvenZ3SFBtWHNSMFU3ZEMzZ0ZJNnpucVE4Ui9rNFdicUduOGpKUlg1VXdGOFFIaVUzZjZyUUZybWx3R0tNY3orUmxoUUUxQ29wSkEyVDZTVnVYb2dlUXJSVzBYVkdESjBpS0xiN05Hbndzc2wzV2N0YitGM1NEdkk4ckZZOTZsTFdEL1ZQRlJJTE5FQmttZng2elpwL1RCeXFRdUd1U3JTc0FHV1kySS80RFJaWlIyZ3gwM2FsQVRFbkt3VWtFOUQyKzdGOD0iLCJtYWMiOiJmZDQ0YzM4ODE0OWQxOWRhYWU0NDhhYmIzYzQ1MDAxMDAzODZjZGM3ZGM4NGJhMGNkMDEyYWZlM2UzYjAxMTI4IiwidGFnIjoiIn0=' \
--header 'Store-Id;' \
--header 'Accept-Language;' \
--header 'Role;' \
--header 'Content-Type: application/json' \
--data-raw ''
Responses
🟢201The response will include the newly created product data, including the "group_products" field for grouped products.
application/json
Body
is_external_product
booleanÂ
optional
Default:
false
id
nullÂ
optional
parent_id
nullÂ
optional
product_class
stringÂ
optional
sku
stringÂ
optional
barcode
stringÂ
optional
name
objectÂ
optional
ar
stringÂ
optional
en
stringÂ
optional
slug
stringÂ
optional
price
integerÂ
optional
short_description
nullÂ
optional
sale_price
integerÂ
optional
Example:
50
formatted_price
stringÂ
optional
Example:
10$
formatted_sale_price
stringÂ
optional
Example:
8$
currency
stringÂ
optional
currency_symbol
stringÂ
optional
attributes
array [object]Â
optional
categories
array [object]Â
optional
display_order
nullÂ
optional
has_options
booleanÂ
optional
Default:
false
has_fields
booleanÂ
optional
images
array [object]Â
optional
is_draft
booleanÂ
optional
quantity
nullÂ
optional
is_infinite
booleanÂ
optional
html_url
stringÂ
optional
weight
objectÂ
optional
value
integer  | nullÂ
optional
Example:
100
unit
stringÂ
optional
Example:
kg
keywords
array [object]Â
optional
requires_shipping
booleanÂ
optional
is_taxable
booleanÂ
optional
Default:
false
structure
stringÂ
optional
seo
objectÂ
optional
title
objectÂ
optional
description
objectÂ
optional
rating
objectÂ
optional
average
integerÂ
optional
Example:
3.9
total_count
integerÂ
optional
Example:
400
1_ratings
objectÂ
optional
2_ratings
objectÂ
optional
3_ratings
objectÂ
optional
4_ratings
objectÂ
optional
5_ratings
objectÂ
optional
store_id
integerÂ
optional
purchase_restrictions
objectÂ
optional
min_quantity_per_cart
nullÂ
optional
max_quantity_per_cart
nullÂ
optional
availability_period_start
nullÂ
optional
availability_period_end
nullÂ
optional
sale_price_period_start
stringÂ
optional
.sssZ) and determines when the discounted sale price becomes effective.
Example:
2024-09-18T21:00:00.000000Z
sale_price_period_end
stringÂ
optional
Example:
2024-09-19T20:59:59.000000Z
metafields
nullÂ
optional
meta
objectÂ
optional
badge
objectÂ
optional
body
objectÂ
optional
icon
objectÂ
optional
related_products_settings
stringÂ
optional
related_products_title
nullÂ
optional
variants
array [object]Â
optional
options
array [object]Â
optional
cost
integerÂ
optional
is_published
booleanÂ
optional
waiting_customers_count
nullÂ
optional
description
objectÂ
optional
custom_user_input_fields
array [object]Â
optional
custom_option_fields
array [object]Â
optional
related_products
array [object]Â
optional
next_product
nullÂ
optional
previous_product
nullÂ
optional
group_products
array [object {6}]Â
optional
id
stringÂ
optional
Example:
143
item
objectÂ
optional
origin_product_id
stringÂ
optional
item_id
stringÂ
optional
item_quantity
integerÂ
optional
in_stock
booleanÂ
optional
stocks
array [object {4}]Â
optional
id
stringÂ
optional
location
objectÂ
optional
available_quantity
nullÂ
optional
is_infinite
booleanÂ
optional
sold_products_count
nullÂ
optional
created_at
stringÂ
optional
updated_at
stringÂ
optional
Example
{
"is_external_product": false,
"id": null,
"parent_id": null,
"product_class": "string",
"sku": "string",
"barcode": "string",
"name": {
"ar": "string",
"en": "string"
},
"slug": "string",
"price": 0,
"short_description": null,
"sale_price": 50,
"formatted_price": "10$",
"formatted_sale_price": "8$",
"currency": "string",
"currency_symbol": "string",
"attributes": [
{}
],
"categories": [
{}
],
"display_order": null,
"has_options": false,
"has_fields": true,
"images": [
{}
],
"is_draft": true,
"quantity": null,
"is_infinite": true,
"html_url": "string",
"weight": {
"value": 100,
"unit": "kg"
},
"keywords": [
{}
],
"requires_shipping": true,
"is_taxable": false,
"structure": "string",
"seo": {
"title": {
"ar": "string",
"en": "string"
},
"description": {}
},
"rating": {
"average": 3.9,
"total_count": 400,
"1_ratings": {
"percentage": 0,
"count": 0
},
"2_ratings": {
"percentage": 0,
"count": 0
},
"3_ratings": {
"percentage": 0,
"count": 0
},
"4_ratings": {
"percentage": 0,
"count": 0
},
"5_ratings": {
"percentage": 0,
"count": 0
}
},
"store_id": 0,
"purchase_restrictions": {
"min_quantity_per_cart": null,
"max_quantity_per_cart": null,
"availability_period_start": null,
"availability_period_end": null,
"sale_price_period_start": "2024-09-18T21:00:00.000000Z",
"sale_price_period_end": "2024-09-19T20:59:59.000000Z"
},
"metafields": null,
"meta": {},
"badge": {
"body": {
"ar": "string",
"en": "string"
},
"icon": {
"code": "string"
}
},
"related_products_settings": "string",
"related_products_title": null,
"variants": [
{}
],
"options": [
{}
],
"cost": 0,
"is_published": true,
"waiting_customers_count": null,
"description": {},
"custom_user_input_fields": [
{}
],
"custom_option_fields": [
{}
],
"related_products": [
{}
],
"next_product": null,
"previous_product": null,
"group_products": [
{
"id": "143",
"item": {
"id": "string",
"product_class": null,
"sku": "string",
"barcode": "string",
"parent_id": null,
"name": {
"ar": "string",
"en": "string"
},
"slug": "string",
"price": 0,
"short_description": null,
"sale_price": null,
"formatted_price": "string",
"formatted_sale_price": null,
"currency": "string",
"currency_symbol": "string",
"attributes": [
{}
],
"categories": [
{}
],
"display_order": null,
"has_options": true,
"has_fields": true,
"images": [
{}
],
"is_draft": true,
"quantity": null,
"is_infinite": true,
"html_url": "string",
"weight": {
"value": null,
"unit": "string"
},
"keywords": [
{}
],
"requires_shipping": true,
"is_taxable": true,
"structure": "string",
"seo": {
"title": {
"ar": "string",
"en": "string"
},
"description": {}
},
"rating": {
"average": 4.1,
"total_count": 50,
"1_ratings": {
"percentage": 0,
"count": 0
},
"2_ratings": {
"percentage": 0,
"count": 0
},
"3_ratings": {
"percentage": 0,
"count": 0
},
"4_ratings": {
"percentage": 0,
"count": 0
},
"5_ratings": {
"percentage": 0,
"count": 0
}
},
"store_id": 0,
"purchase_restrictions": {
"min_quantity_per_cart": null,
"max_quantity_per_cart": null,
"availability_period_start": null,
"availability_period_end": null
},
"metafields": null,
"meta": null,
"badge": null,
"related_products_settings": "string",
"related_products_title": null,
"created_at": "string",
"updated_at": "string",
"options": [
{}
],
"group_products": null,
"stocks": [
{
"id": "string",
"location": {
"id": "string",
"name": {
"ar": "string"
},
"type": "string"
},
"available_quantity": null,
"is_infinite": false
}
]
},
"origin_product_id": "string",
"item_id": "string",
"item_quantity": 0,
"in_stock": true
}
],
"stocks": [
{
"id": "string",
"location": {
"id": "string",
"name": {
"ar": "string"
},
"type": "string"
},
"available_quantity": null,
"is_infinite": true
}
],
"sold_products_count": null,
"created_at": "string",
"updated_at": "string"
}
Modified at 2025-01-15 08:08:49