Add a new Product

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
AttributeTypeDescriptionRequired
referenceNumberStringThis is the reference number that's associated with the productfalse
logoImageUrlStringThis is the image URL of the product image.false
nameStringThis is the name of the producttrue
weightIntegerThis 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"
}