Create Product
POST/commerce/products
Create product for a specified user and credential set
Request
Query Parameters
The ID of the credential.
Header Parameters
Default value: bearer YOUR_API_KEY
- application/json
Body
Array [
Array [
]
]
A string used to retrieve products with a specific product name.
A string used to retrieve products with a specific description.
Possible values: [DRAFT
, ACTIVE
, INACTIVE
, UNLISTED
]
A string used to retrieve products with a specific product status.
An array of tags associated with the product.
A string used to retrieve products from a specific vendor.
variants
object[]
required
An array of product variants, you should add at least 1 variant for a product
The title of the product variant (read only)
The price of the product variant
The SKU (stock-keeping unit) of the variant.
weight
object
An object containing the weight value and unit of measure for the variant.
optionValues
object[]
An array of objects containing the option name and value for the variant.
An object containing custom fields for the model. The keys are the names of the fields of the corresponding resource in the connected app, and the values can be strings, numbers, arrays or objects.
An object containing remote fields that are not supported by the common model. The keys are the names of the fields of the corresponding resource in the remote app, and the values can be strings, numbers, arrays or objects.
Responses
- 200
- 400
200
- application/json
- Schema
- Result
Schema
any
{
"product": {
"remoteId": "1234567890123",
"remoteCreatedAt": "2023-11-19T17:00:17.000Z",
"remoteUpdatedAt": "2023-11-19T17:00:17.000Z",
"remoteDeleted": false,
"createdAt": "2024-02-22T11:17:53.264Z",
"updatedAt": "2024-02-22T13:54:03.445Z"
"productType": "Apparel",
"productName": "Example Shirt",
"description": "A stylish shirt for all occasions.",
"images": [],
"productStatus": "ACTIVE",
"tags": ["Fashion", "Comfort"],
"vendor": "Example Vendor",
"productUrl": "https://example.com/products/example-shirt",
"id": "00112233-4455-6677-8899-aabbccddeeff",
"variants": [
{
"remoteId": "200100200100",
"productId": "00112233-4455-6677-8899-aabbccddeeff",
"remoteCreatedAt": "2023-11-19T17:00:17.000Z",
"remoteUpdatedAt": "2023-11-19T17:00:17.000Z",
"remoteDeleted": false,
"createdAt": "2024-02-22T11:17:53.264Z",
"updatedAt": "2024-02-22T13:54:03.445Z"
"title": "Medium",
"price": "25.00",
"sku": "SHIRT-M",
"optionValues": [
{
"name": "Size",
"value": "Medium"
}
],
"inventory": {"totalCount": 50},
"weight": [
{
"value": 9.525451098148434,
"unit": "kg"
},
{
"value": 9525.451098148435,
"unit": "g"
},
{
"value": 336.00076203608785,
"unit": "oz"
},
{
"value": 20.999999999999996,
"unit": "lb"
}
],
"id": "11001100-1122-3344-5566-77889900aabb"
}
]
}
}
400
- application/json
- Schema
- Example (from schema)
- Result
Schema
{}
{}