api-docs v5.116.0
API Docs
Table of contents
Inventory_Variant
Variant - Delete
Delete a inventory-product's details
DELETE /inventory-variants/:id
Headers - Header
Name | Type | Description |
---|---|---|
Authorization | string |
key to place the API token to using the grant 'Bearer' |
Header examples
Authorization-Example
{
"Authorization": "Bearer <your-api-token>"
}
Parameters - Parameter
Name | Type | Description |
---|---|---|
id | string |
id of inventory-product |
Examples
Example usage:
curl "https://yourdomain.com/inventory-variants/<inventory-variants-id>" \
-X DELETE \
-H "Authorization: Bearer <your-api-token>"
Success response
Success response - Success 200
Name | Type | Description |
---|---|---|
sku | string |
variant id |
createdAt | number |
|
createdBy | string |
|
warehouse | string |
|
product | string |
|
productName | string |
|
productType | string |
|
name | string |
|
attributes | VariantAttribute[] |
|
branches | string[] |
|
sellable | boolean |
|
taxable | boolean |
|
quantityThreshold | number |
|
expirationThreshold | number |
|
supplier | string |
|
reorderLevel | number |
|
isMedicine | boolean |
|
isMedicineDangerous | boolean |
|
medicine | string |
|
unitCost | number |
|
initialCost | number |
|
unitPrice | number |
|
initialPrice | number |
|
images | string[] |
|
picURL | string |
|
description | string |
|
supplierCode | string |
|
hsCode | string |
|
barcode | string |
Success response example
Success response example - Success-Response:
HTTP/1.1 200 OK
{
"id": "service-id",
"warehouse": "facility-id",
"name": "Variant 1"
}
Variant - Find
Get array of inventory-products
GET /inventory-variants
Headers - Header
Name | Type | Description |
---|---|---|
Authorization | string |
key to place the API token to using the grant 'Bearer' |
Header examples
Authorization-Example
{
"Authorization": "Bearer <your-api-token>"
}
Examples
Example usage:
curl "https://yourdomain.com/inventory-variants" \
-X GET \
-H "Authorization: Bearer <your-api-token>"
Success response
Success response - Success 200
Name | Type | Description |
---|---|---|
inventoryVariants | Object[] |
array of inventory variant |
inventoryVariants.sku | string |
variant id |
inventoryVariants.createdAt | number |
|
inventoryVariants.createdBy | string |
|
inventoryVariants.warehouse | string |
|
inventoryVariants.product | string |
|
inventoryVariants.productName | string |
|
inventoryVariants.productType | string |
|
inventoryVariants.name | string |
|
inventoryVariants.attributes | VariantAttribute[] |
|
inventoryVariants.branches | string[] |
|
inventoryVariants.sellable | boolean |
|
inventoryVariants.taxable | boolean |
|
inventoryVariants.quantityThreshold | number |
|
inventoryVariants.expirationThreshold | number |
|
inventoryVariants.supplier | string |
|
inventoryVariants.reorderLevel | number |
|
inventoryVariants.isMedicine | boolean |
|
inventoryVariants.isMedicineDangerous | boolean |
|
inventoryVariants.medicine | string |
|
inventoryVariants.unitCost | number |
|
inventoryVariants.initialCost | number |
|
inventoryVariants.unitPrice | number |
|
inventoryVariants.initialPrice | number |
|
inventoryVariants.images | string[] |
|
inventoryVariants.picURL | string |
|
inventoryVariants.description | string |
|
inventoryVariants.supplierCode | string |
|
inventoryVariants.hsCode | string |
|
inventoryVariants.barcode | string |
Success response example
Success response example - Success-Response:
HTTP/1.1 200 OK
[
{
"id": "service-id",
"warehouse": "facility-id",
"name": "Variant 1"
},
{
"id": "service-id",
"warehouse": "facility-id",
"name": "Variant 1"
}
]
Variant - Get
Get a inventory-product's details
GET /inventory-variants/:id
Headers - Header
Name | Type | Description |
---|---|---|
Authorization | string |
key to place the API token to using the grant 'Bearer' |
Header examples
Authorization-Example
{
"Authorization": "Bearer <your-api-token>"
}
Parameters - Parameter
Name | Type | Description |
---|---|---|
id | string |
id of inventory-product |
Examples
Example usage:
curl "https://yourdomain.com/inventory-variants/<inventory-variants-id>" \
-X GET \
-H "Authorization: Bearer <your-api-token>"
Success response
Success response - Success 200
Name | Type | Description |
---|---|---|
sku | string |
variant id |
createdAt | number |
|
createdBy | string |
|
warehouse | string |
|
product | string |
|
productName | string |
|
productType | string |
|
name | string |
|
attributes | VariantAttribute[] |
|
branches | string[] |
|
sellable | boolean |
|
taxable | boolean |
|
quantityThreshold | number |
|
expirationThreshold | number |
|
supplier | string |
|
reorderLevel | number |
|
isMedicine | boolean |
|
isMedicineDangerous | boolean |
|
medicine | string |
|
unitCost | number |
|
initialCost | number |
|
unitPrice | number |
|
initialPrice | number |
|
images | string[] |
|
picURL | string |
|
description | string |
|
supplierCode | string |
|
hsCode | string |
|
barcode | string |
Success response example
Success response example - Success-Response:
HTTP/1.1 200 OK
{
"id": "service-id",
"warehouse": "facility-id",
"name": "Variant 1"
}
Variant - Patch
Update a inventory-product
PATCH /inventory-variants/:id
Headers - Header
Name | Type | Description |
---|---|---|
Authorization | string |
key to place the API token to using the grant 'Bearer' |
Header examples
Authorization-Example
{
"Authorization": "Bearer <your-api-token>"
}
Parameters - Parameter
Name | Type | Description |
---|---|---|
id | string |
id of inventory-product |
name | String |
|
sellable | boolean |
optional
|
taxable | boolean |
optional
|
quantityThreshold | number |
optional
|
expirationThreshold | number |
optional
|
supplier | string |
optional
|
reorderLevel | number |
optional
|
isMedicine | boolean |
optional |
isMedicineDangerous | boolean |
optional |
medicine | string |
optional
|
unitCost | number |
optional |
initialCost | number |
optional |
unitPrice | number |
optional |
initialPrice | number |
optional |
images | string[] |
optional |
picURL | string |
optional |
description | string |
optional |
supplierCode | string |
optional |
hsCode | string |
optional |
barcode | string |
optional |
Examples
Example usage:
curl "https://yourdomain.com/inventory-variants/<inventory-variants-id>" \
-X PATCH \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <your-api-token>" \
-d '{
"name": "Updated Name"
}'
Parameters examples
json
- Request-Example
{
"name": "Updated Name"
}
Success response
Success response - Success 200
Name | Type | Description |
---|---|---|
sku | string |
variant id |
createdAt | number |
|
createdBy | string |
|
warehouse | string |
|
product | string |
|
productName | string |
|
productType | string |
|
name | string |
|
attributes | VariantAttribute[] |
|
branches | string[] |
|
sellable | boolean |
|
taxable | boolean |
|
quantityThreshold | number |
|
expirationThreshold | number |
|
supplier | string |
|
reorderLevel | number |
|
isMedicine | boolean |
|
isMedicineDangerous | boolean |
|
medicine | string |
|
unitCost | number |
|
initialCost | number |
|
unitPrice | number |
|
initialPrice | number |
|
images | string[] |
|
picURL | string |
|
description | string |
|
supplierCode | string |
|
hsCode | string |
|
barcode | string |
Success response example
Success response example - Success-Response:
HTTP/1.1 200 OK
{
"id": "service-id",
"warehouse": "facility-id",
"name": "Variant 1"
}
Variant - Post
Create a inventory-product
POST /inventory-variants
Headers - Header
Name | Type | Description |
---|---|---|
Authorization | string |
key to place the API token to using the grant 'Bearer' |
Header examples
Authorization-Example
{
"Authorization": "Bearer <your-api-token>"
}
Parameters - Parameter
Name | Type | Description |
---|---|---|
product | String |
product id |
name | String |
|
sellable | boolean |
optional
|
taxable | boolean |
optional
|
quantityThreshold | number |
optional
|
expirationThreshold | number |
optional
|
supplier | string |
optional
|
reorderLevel | number |
optional
|
isMedicine | boolean |
optional |
isMedicineDangerous | boolean |
optional |
medicine | string |
optional
|
unitCost | number |
optional |
initialCost | number |
optional |
unitPrice | number |
optional |
initialPrice | number |
optional |
images | string[] |
optional |
picURL | string |
optional |
description | string |
optional |
supplierCode | string |
optional |
hsCode | string |
optional |
barcode | string |
optional |
Examples
Example usage:
curl "https://yourdomain.com/inventory-variants" \
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <your-api-token>" \
-d '{
"product": "product-id",
"name": "Variant 1",
"unitPrice": 500
}'
Parameters examples
json
- Request-Example
{
"product": "product-id",
"name": "Variant 1",
"unitPrice": 500
}
Success response
Success response - Success 200
Name | Type | Description |
---|---|---|
sku | string |
variant id |
createdAt | number |
|
createdBy | string |
|
warehouse | string |
|
product | string |
|
productName | string |
|
productType | string |
|
name | string |
|
attributes | VariantAttribute[] |
|
branches | string[] |
|
sellable | boolean |
|
taxable | boolean |
|
quantityThreshold | number |
|
expirationThreshold | number |
|
supplier | string |
|
reorderLevel | number |
|
isMedicine | boolean |
|
isMedicineDangerous | boolean |
|
medicine | string |
|
unitCost | number |
|
initialCost | number |
|
unitPrice | number |
|
initialPrice | number |
|
images | string[] |
|
picURL | string |
|
description | string |
|
supplierCode | string |
|
hsCode | string |
|
barcode | string |
Success response example
Success response example - Success-Response:
HTTP/1.1 200 OK
{
"id": "service-id",
"warehouse": "facility-id",
"name": "Variant 1"
}