Product
Module endpoints
DELETE /products/:id
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 /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 /products
GET
https://api.slyk.io/products
Returns a paginated list of products
.
Name | Type | Example |
available |
|
|
categoryId |
|
|
description |
|
|
featured |
|
|
id |
|
|
name |
|
|
order |
|
|
requiresIdentity |
|
|
typeCode |
|
|
visible |
|
|
GET /products/:id
GET /products/:id
GET
https://api.slyk.io/products/:id
Gets the product details of the given id
.
PATCH /products/:id
PATCH /products/:id
PATCH
https://api.slyk.io/products/:id
Patches the product
details of the given id
.
Field | Type | Required | Description |
allowChoosingQuantity |
|
| Product choosing quantity allow indicator. |
assetCode |
|
| Asset code related to the product. |
available |
|
| Product availability indicator. |
bonus |
|
| Product bonus value. |
buttonLabel |
|
| Product button label. |
categoryId |
|
| Associated category identifier. Format: |
customData |
|
| Can store any additional information about the product. |
description |
|
| Product description. |
featured |
|
| Product featuring indicator. |
image |
|
| Product image. |
listLabel |
|
| Product list label. |
name |
|
| Product name. |
order |
|
| Product order value. |
price |
|
| Product price value. |
requiresIdentity |
|
| Identity required indicator. |
taxRateId |
|
| Associated tax rate identifier. Format: |
thumbnail |
|
| Product thumbnail. |
url |
|
| Product URL. |
visible |
|
| Product visibility indicator. |
POST /products
POST /products
POST
https://api.slyk.io/products
Creates a new product
.
Field | Type | Required | Description |
allowChoosingQuantity |
|
| Product choosing quantity allow indicator. |
assetCode |
|
| Asset code related to the product. |
available |
|
| Product availability indicator. |
bonus |
|
| Product bonus value. |
buttonLabel |
|
| Product button label. |
categoryId |
|
| Associated category identifier. Format: |
customData |
|
| Can store any additional information about the product. |
description |
|
| Product description. |
featured |
|
| Product featuring indicator. |
image |
|
| Product image. |
listLabel |
|
| Product list label. |
name |
|
| Product name. |
order |
|
| Product order value. |
price |
|
| Product price value. |
requiresIdentity |
|
| Identity required indicator. |
taxRateId |
|
| Associated tax rate identifier. Format: |
thumbnail |
|
| Product thumbnail. |
url |
|
| Product URL. |
visible |
|
| Product visibility indicator. |
POST /products/:id/questions
POST /products/:id/questions
POST
http://api.slyk.io/products/:id/questions
Creates a new product question
.
Field | Type | Required | Description |
questionId |
|
| Associated question identifier. Format: |
POST /products/:id/reorder
POST /products/:id/reorder
POST
http://api.slyk.io/products/:id/reorder
Reorders the product
with the given id
.
Field | Type | Required | Description |
subsequentId |
|
| Subsequent product identifier. |
POST /products/:productId/questions/:id/reorder
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
.
Field | Type | Required | Description |
subsequentId |
|
| Subsequent product question identifier. |
Last updated