curl --request POST \
--url https://api.chift.eu/consumers/{consumer_id}/invoicing/products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"unit_price": 123,
"tax_id": "<string>",
"code": "<string>",
"unit": "<string>",
"category": "<string>",
"currency": "<string>",
"description": "<string>",
"cost": 123
}'
{
"id": "<string>",
"source_ref": {
"id": "<string>",
"model": "<string>"
},
"name": "<string>",
"unit_price": 123,
"tax_id": "<string>",
"code": "<string>",
"unit": "<string>",
"category": "<string>",
"currency": "<string>",
"description": "<string>",
"cost": 123,
"available_quantity": 123
}
Create a new product.
curl --request POST \
--url https://api.chift.eu/consumers/{consumer_id}/invoicing/products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"unit_price": 123,
"tax_id": "<string>",
"code": "<string>",
"unit": "<string>",
"category": "<string>",
"currency": "<string>",
"description": "<string>",
"cost": 123
}'
{
"id": "<string>",
"source_ref": {
"id": "<string>",
"model": "<string>"
},
"name": "<string>",
"unit_price": 123,
"tax_id": "<string>",
"code": "<string>",
"unit": "<string>",
"category": "<string>",
"currency": "<string>",
"description": "<string>",
"cost": 123,
"available_quantity": 123
}
This access token needs to be included in each of your request to the Chift API.
Successful Response
The response is of type object
.