How to create a product

Configure the API to create a product in the system.
Written by Beeping Fulfilment
Updated 10 months ago

This method allows you to create a product. To access this step, you must first perform the basic authentication. If you need to update a product, check this article: How to update a product.

The data you need to know are:

Method: POST

Uri: api/product

Endpoint: http://app.gobeeping.com/api/product

Curl Example

curl --location --request POST 'http://app.gobeeping.com/api/product' \
--header 'Authorization: Basic XXXXXXXXXX’ \
--header 'Content-Type: application/json' \
--data-raw '{
    "data" : {
        "name": "Product test 1",
        "code": "4395456691489",
        "hs_code": "301",
        "description": "Product description",
        "image": "https://dailytrust.com/wp-content/uploads/2022/12/334Q7G2-preview.jpg"
    }    
}'

In order to perform the post method, you need to identify the Basic Auth:

  • 'Authorization: Basic XXXXXXXXXXXXXX' : here you must place the Basic Auth obtained in the previous step: how to login.

In addition, you will find other elements inside data, which refer to the product information, and you can identify the following: 

  • name: Product name.
  • code: Product code/Barcode. It is not mandatory, if you do not add it, an automatic one will be created.
  • hs_code: Customs code. It is optional.
  • description: Product description.
  • image: Product image. If you do not have a URL and you only have the image file, you can upload it once you create the product in the system.

Supported parameters are:

PARAMETER

DESCRIPTION

data

Json with the product data

“name” = “required|string”
“code” = “required|string”
“image” = “required|string”

If you need to know how to list products, we explain it in this other article.

Did this answer your question?