Skip to main content
POST
/
products
Create a product
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"
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication. Create one in Settings > Developer.

Body

application/json
name
string
required
variants
object[]
required
Minimum array length: 1
description
string
tags
string[]

Response

201 - application/json

Product created

data
object