Product

Module endpoints

DELETE /products/:id

DELETE http://api.slyk.io/products/:id

Deletes the product with given id.

204 No Content

DELETE /products/:productId/questions/:id

DELETE http://api.slyk.io/products/:productId/questions/:id

Deletes the product question with given id and productId.

204 No Content

GET /products

GET https://api.slyk.io/products

Returns a paginated list of products.

GET /products/:id

GET https://api.slyk.io/products/:id

Gets the product details of the given id.

{
  "data": {
      "allowChoosingQuantity": true,
      "assetCode": "eur",
      "available": true,
      "bonus": "1.34000000",
      "buttonLabel": "biz",
      "categoryId": "fc78d28f-a8dd-49de-a22f-722fe3bd26c5",
      "createdAt": "2020-08-10T10:00:00.000Z",
      "customData": {},
      "description": "Pop music t-shirt",
      "featured": false,
      "id": "fc78d28f-a8dd-49de-a22f-722fe3bd26c8",
      "imageUrl": "http://slyk.io/tshirt.png",
      "listLabel": "bar",
      "metadata": {},
      "name": "Music t-shirt",
      "price": "2.50000000",
      "priceWithTax": "2.80000000",
      "requiresIdentity": false,
      "taxAmount": "0.30000000",
      "taxRateId": "fc78d28f-a8dd-49de-a22f-722fe3bd26c4",
      "thumbnailUrl": "http://slyk.io/tshirt-thumbnail.png",
      "updatedAt": "2020-08-10T10:00:00.000Z",
      "url": "http://tshirts.com",
      "visible": true
    }
}

PATCH /products/:id

PATCH https://api.slyk.io/products/:id

Patches the product details of the given id.

POST /products

POST https://api.slyk.io/products

Creates a new product.

POST /products/:id/questions

POST http://api.slyk.io/products/:id/questions

Creates a new product question.

POST /products/:id/reorder

POST http://api.slyk.io/products/:id/reorder

Reorders the product with the given id.

POST /products/:productId/questions/:id/reorder

POST http://api.slyk.io/products/:productId/questions/:id/reorder

Reorders the product question with the given id and productId.

Last updated