curl --request POST \
--url https://api.bitbybit.studio/customer/open/v1/products \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"variants": [
{
"title": "<string>",
"price": 1,
"sku": "<string>"
}
],
"description": "<string>",
"tags": [
"<string>"
]
}
'{
"data": {
"id": "<string>",
"productId": "<string>",
"name": "<string>",
"description": "<string>",
"media": "<string>",
"medias": [
"<string>"
],
"status": "<string>",
"variants": [
{
"id": "<string>",
"key": "<string>",
"price": 123,
"compareAtPrice": 123,
"inventorySku": "<string>",
"media": "<string>"
}
],
"options": [
{
"id": "<string>",
"name": "<string>",
"values": [
"<string>"
]
}
],
"tags": [
"<string>"
],
"types": [
"<string>"
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}Create a new product with variants.
curl --request POST \
--url https://api.bitbybit.studio/customer/open/v1/products \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"variants": [
{
"title": "<string>",
"price": 1,
"sku": "<string>"
}
],
"description": "<string>",
"tags": [
"<string>"
]
}
'{
"data": {
"id": "<string>",
"productId": "<string>",
"name": "<string>",
"description": "<string>",
"media": "<string>",
"medias": [
"<string>"
],
"status": "<string>",
"variants": [
{
"id": "<string>",
"key": "<string>",
"price": 123,
"compareAtPrice": 123,
"inventorySku": "<string>",
"media": "<string>"
}
],
"options": [
{
"id": "<string>",
"name": "<string>",
"values": [
"<string>"
]
}
],
"tags": [
"<string>"
],
"types": [
"<string>"
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}API key for authentication. Create one in Settings > Developer.
Product created
Show child attributes