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" ]}'
Copy
Ask AI
{ "status": "ok"}
Products
Add Product Child
Create a new product variant
POST
/
v2
/
products
/
{productId}
/
children
Create product variant
Copy
Ask AI
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" ]}'