Create Product
app_install_bearerscope: products:writeidempotent
Parameters
| Field | Type | Required | Description |
|---|
Idempotency-Keyheader | string | required | Unique key used to make this mutation retry-safe for the replay window. |
Request body · application/json
| Field | Type | Required | Description |
|---|
brand_id | string | optional | |
category_id | string | optional | |
compare_at_price | number | string | optional | |
continue_selling_when_out_of_stock | boolean | optional | |
description | string | optional | |
description_html | string | optional | |
google_product_category_id | string | optional | |
image_alt_text | string | optional | |
image_url | string | optional | |
is_active | boolean | optional | Deprecated compatibility input. Use status instead. |
low_stock_threshold | integer | optional | |
media_id | string | optional | |
name | string | required | |
price | number | string | optional | |
publishing_channels | ProductPublishingChannels | optional | Per-channel visibility. Active does not publish a channel automatically. |
requires_shipping | boolean | optional | |
short_description | string | optional | |
sku | string | required | |
slug | string | optional | |
sort_order | integer | optional | |
standard_category_code | string | optional | |
standard_category_id | string | optional | |
standard_category_name | string | optional | |
status | ProductWriteStatus | optional | Product lifecycle status. 'published' is a deprecated input alias for active plus published channels. |
stock_quantity | integer | optional | |
tax_code | string | optional | |
taxable | boolean | optional | |
track_inventory | boolean | optional | |
type | string | optional | |
weight | number | string | optional | |
weight_unit | string | optional | |
Returns · 200
| Field | Type | Required | Description |
|---|
data | ProductObject | required | |
data.brand_id | string | optional | |
data.brand_name | string | optional | |
data.category_id | string | optional | |
data.category_name | string | optional | |
data.compare_at_price | string | optional | |
data.continue_selling_when_out_of_stock | boolean | optional | |
data.created_at | string | optional | |
data.description | string | optional |
Errors 400401403404409422429500
curl https://api.getmeonline.io/v1/products \
-X POST \
-H "Authorization: Bearer $GETME_API_KEY" \
-H "Idempotency-Key: idem_1234567890abcdef" \
-H "Content-Type: application/json" \
-d '{
"brand_id": "brand_id",
"category_id": "category_id",
"compare_at_price": "compare_at_price",
"continue_selling_when_out_of_stock": true,
"description": "description",
"description_html": "description_html"
}'