Request
POST https://backend.net0.com/v1/products
This endpoint allows you to create a single product/SKU.
curl --location --request POST 'https://backend.net0.com/v1/products' \
--header 'x-api-key: <API_KEY>' \
--header 'Content-Type: application/json' \
--data-raw '{
"referenceNumber": "wrwje-wenwfefw-cscsns",
"logoImageUrl": "https://aws.amazonserveivce.net",
"name": "Test Opemipo",
"weight": 20
}'
Field Parameters
Attribute | Type | Description | Required |
---|---|---|---|
referenceNumber | String | This is the reference number that's associated with the product | false |
logoImageUrl | String | This is the image URL of the product image. | false |
name | String | This is the name of the product | true |
weight | Integer | This is the weight of the product in kilograms. | false |
Response
The response is a JSON response of the created product.
{
"referenceNumber": "wrwje-wenwfefw-cscsns",
"logoImageUrl": "https://aws.amazonserveivce.net",
"name": "Test Opemipo",
"weight": 20,
"companyId": 2,
"emissionKindId": "b3a6bba1-fb25-4797-9e4a-17154a946868",
"totalEmission": null,
"id": 2,
"createdAt": "2021-11-24T12:39:37.775Z",
"updatedAt": "2021-11-24T12:39:37.775Z"
}