Products api
In these docs, you will find information about the products API.
POST
: Creating a product#
#
Example requestPOST /api/productsContent-Type: application/json
{ "ean": "example", "name": "example", "price": "example", "special_price": "example", "company_id": "example", "image_url": "example", "url": "example", "brand": "example", "mpn": "example", "special_price_from": "example", "special_price_to": "example", "cost_price": "example", "crawl_frequency": "1d", "repricer_min": "example", "repricer_max": "example",}
crawl_frequency can be "1d", "2d", "3d", "4d", "5d", "6d", "7d", "14d", "28d"
#
Example responseHTTP/1.1 200 OKContent-Type: application/json
{ProductModel}
GET
: Getting a product#
#
Example requestGET /api/products/{ean}
#
Example responseHTTP/1.1 200 OKContent-Type: application/json
{ProductModel}
DELETE
: Deleting a product#
#
Example requestDELETE /api/products/{ean}
#
Example responseHTTP/1.1 200 OKContent-Type: application/json
{ "message": "Product deleted"}
PATCH
: Updating a product#
#
Example requestPATCH /api/products/{ean}
{ "ean": "example", "name": "example", "price": "example", "special_price": "example", "company_id": "example"}
#
Example responseHTTP/1.1 200 OKContent-Type: application/json
{ProductModel}