curl --request POST \
--url https://base_url/api/v1/products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "SunShield Pro UV-Blocking Sunglasses",
"tax_code": "TPP",
"sku": "PT-1035",
"description": "<string>",
"corporation_id": "b6d009b0-d174-463f-b030-94643c28e209"
}'
{
"data": {
"id": "2535af08-a139-4d0c-9827-1651e46dfbcf",
"name": "SunShield Pro UV-Blocking Sunglasses",
"tax_code": "TPP",
"sku": "PT-1035",
"description": "<string>",
"corporation_id": "b6d009b0-d174-463f-b030-94643c28e209"
},
"message": "Successfully created product."
}
Create a new product for a corporation.
curl --request POST \
--url https://base_url/api/v1/products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "SunShield Pro UV-Blocking Sunglasses",
"tax_code": "TPP",
"sku": "PT-1035",
"description": "<string>",
"corporation_id": "b6d009b0-d174-463f-b030-94643c28e209"
}'
{
"data": {
"id": "2535af08-a139-4d0c-9827-1651e46dfbcf",
"name": "SunShield Pro UV-Blocking Sunglasses",
"tax_code": "TPP",
"sku": "PT-1035",
"description": "<string>",
"corporation_id": "b6d009b0-d174-463f-b030-94643c28e209"
},
"message": "Successfully created product."
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Create product response.
The response is of type object
.