Products
Create Product
Create a new product
POST
/
v2
/
products
curl --request POST \
--url https://api.production.orderprotection.com/v2/products \
--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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
201
application/json
The product passes validation and has been successfully created.
The response is of type object
.
curl --request POST \
--url https://api.production.orderprotection.com/v2/products \
--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"
}
Assistant
Responses are generated using AI and may contain mistakes.