POST
/
v2
/
products
/
{productId}
/
children
curl --request POST \
  --url https://api.production.orderprotection.com/v2/products/{productId}/children \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "productId": "123456",
  "status": "ACTIVE",
  "variantId": "123456",
  "name": "123456",
  "description": "This product is super awesome and will solve all of your problems",
  "sku": "123456",
  "price": 22.22,
  "tax": "123456",
  "inventoryType": "FULL",
  "inventoryQuantity": "123456",
  "productImage": "https://somedomain.com/image.png",
  "productType": "This is the type of product. Can be SIMPLE or GROUPED",
  "inStock": true,
  "bundleProductIds": [
    "product-id-1",
    "product-id-2"
  ]
}'
{
  "status": "ok"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

productId
string
required

Body

application/json

Response

201
application/json

The variant passes validation and has been successfully created.

The response is of type object.