rectangle-historyProduct

This page contains the documentation for the product endpoints.

The product endpoints allow you to get the list of products available and the details. You can also get the picture of the product. If your account has administrative rights, you can modify and delete a product.

Get Product list

get
/products

This endpoint allows you get the list of available products. It shows all available product.

Responses
chevron-right
200

Successful response. Returns a list of product.

application/json
get
/products

Get a Product Image

get
/products/{filename}

This endpoint allows you get the image of the product. The image is in the .webp format.

Path parameters
filenamestringRequired

The product image filename to use. Use the GET Product list endpoint to view all products and their image filenames.

Example: 1700110836527.webp
Responses
chevron-right
200

Successful response. Returns the image of the product.

image/webp
Responsestring · binary
get
/products/{filename}

Edit a Product

put
/products/{filename}

This endpoint allows you to edit a product.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Provide your API key.

Path parameters
filenamestringRequired

The product image filename to use. Use the GET Product list endpoint to view all products and their image filenames.

Example: 1700110836527.webp
Body
namestringOptional

The new name of the product.

Example: sample_item
imagestring · binaryOptional

The new filename of the product's image.

pricenumber · floatOptional

The new price of the product.

Example: 50
descriptionstringOptional

The new description of the product.

Example: sample description
soldCountintegerOptional

The new total number of units sold.

Example: 35
Responses
chevron-right
200

Successful response. Returns the new information of the product.

application/json
put
/products/{filename}

Delete a Product

delete
/products/{filename}

This endpoint allows you get delete a product.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Provide your API key.

Path parameters
filenamestringRequired

The product image filename to use. Use the GET Product list endpoint to view all products and their image filenames.

Example: 1701082686603.webp
Responses
chevron-right
200

Successful response. Returns the status of the operation.

application/json
delete
/products/{filename}

Get Product Details

get
/products/details/{filename}

This endpoint allows you get the details of a product.

Path parameters
filenamestring · min: 1Required

The product image filename to use. Use the GET Product list endpoint to view all products and their image filenames.

Responses
chevron-right
200

Successful response. Returns the information of the product

application/json
get
/products/details/{filename}

Upload a Product

post
/products/upload

This endpoint allows you to upload a product.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Provide your API key.

Body
namestringOptional

The name of the product.

Example: sample item
imagestring · binaryOptional

The filename of the product's image.

pricenumber · floatOptional

The price of the product.

Example: 50
descriptionstringOptional

The description of the product.

Example: sample description
soldCountintegerOptional

The total number of units sold.

Example: 35
Responses
chevron-right
200

Successful response. Returns the status of the operation.

application/json
post
/products/upload
200

Successful response. Returns the status of the operation.

Last updated