Platin360 (0.2.0)
Download OpenAPI specification:Download
This documentation is under active development, feedbacks, requests and questions are welcome.
GetProductsByQuery
Product listing query
Authorizations:
Request Body schema: application/json
Get products by query
relation | Array of arrays or null or null Default: null |
filter | object or null Default: null |
page | integer >= 0 Default: 1 |
limit | integer [ 25 .. 100 ] Default: 25 |
search | object or null Default: null |
Responses
Request samples
- Payload
{- "relation": null,
- "filter": null,
- "page": 1,
- "limit": 25,
- "search": null
}
Response samples
- 200
{- "data": [
- {
- "id": 1,
- "uuid": "91ccf111-56c9-5a10-8bf7-4353b23b98f3",
- "currency_id": 1,
- "title": "API Test Product",
- "status": "draft",
- "created_at": "2023-02-13T10:53:53.000000Z",
- "updated_at": "2023-02-13T10:53:53.000000Z",
- "variants": [
- {
- "id": 1,
- "uuid": null,
- "product_id": 1,
- "title": "API Test Product Variant",
- "price": 100.5,
- "compare_price": 120.5,
- "barcode": "BARCODE001",
- "sort": 0,
- "inventory": {
- "id": 1,
- "product_variant_id": 1,
- "sku": "SKU001",
- "levels": [
- {
- "id": 1,
- "inventory_item_id": 1,
- "location_id": 1,
- "quantity_sum": 4
}
], - "created_at": "2023-02-13T10:53:53.000000Z",
- "updated_at": "2023-02-13T10:53:53.000000Z"
}, - "integrations": [
- {
- "type": "TRENDYOL",
- "price": 9999,
- "compare_price": 10000,
- "quantity_min": 10,
- "quantity_max": 10
}
], - "created_at": "2023-02-13T10:53:53.000000Z",
- "updated_at": "2023-02-13T10:53:53.000000Z"
}
]
}
], - "meta": {
- "current_page": {
- "type": "integer",
- "example": 1
}, - "last_page": {
- "type": "integer",
- "example": 4
}, - "per_page": {
- "type": "integer",
- "example": 25
}, - "total": {
- "type": "integer",
- "example": 100
}
}
}
CreateProduct
Create product
Authorizations:
Request Body schema: application/json
Create Product
currency_id required | integer Currency of the product |
required | Array of objects non-empty Variants of the product |
Responses
Request samples
- Payload
{- "currency_id": 1,
- "variants": [
- {
- "inventory": {
- "levels": [
- {
- "location": {
- "id": 1
}
}
]
}
}
]
}
Response samples
- 200
{- "id": 1,
- "uuid": "91ccf111-56c9-5a10-8bf7-4353b23b98f3",
- "currency_id": 1,
- "title": "API Test Product",
- "status": "draft",
- "created_at": "2023-02-13T10:53:53.000000Z",
- "updated_at": "2023-02-13T10:53:53.000000Z",
- "variants": [
- {
- "id": 1,
- "uuid": null,
- "product_id": 1,
- "title": "API Test Product Variant",
- "price": 100.5,
- "compare_price": 120.5,
- "barcode": "BARCODE001",
- "sort": 0,
- "inventory": {
- "id": 1,
- "product_variant_id": 1,
- "sku": "SKU001",
- "levels": [
- {
- "id": 1,
- "inventory_item_id": 1,
- "location_id": 1,
- "quantity_sum": 4
}
], - "created_at": "2023-02-13T10:53:53.000000Z",
- "updated_at": "2023-02-13T10:53:53.000000Z"
}, - "integrations": [
- {
- "type": "TRENDYOL",
- "price": 9999,
- "compare_price": 10000,
- "quantity_min": 10,
- "quantity_max": 10
}
], - "created_at": "2023-02-13T10:53:53.000000Z",
- "updated_at": "2023-02-13T10:53:53.000000Z"
}
]
}
GetProductById
Show product
Authorizations:
path Parameters
id required | integer Product identifier |
Responses
Response samples
- 200
{- "id": 1,
- "uuid": "91ccf111-56c9-5a10-8bf7-4353b23b98f3",
- "currency_id": 1,
- "title": "API Test Product",
- "status": "draft",
- "created_at": "2023-02-13T10:53:53.000000Z",
- "updated_at": "2023-02-13T10:53:53.000000Z",
- "variants": [
- {
- "id": 1,
- "uuid": null,
- "product_id": 1,
- "title": "API Test Product Variant",
- "price": 100.5,
- "compare_price": 120.5,
- "barcode": "BARCODE001",
- "sort": 0,
- "inventory": {
- "id": 1,
- "product_variant_id": 1,
- "sku": "SKU001",
- "levels": [
- {
- "id": 1,
- "inventory_item_id": 1,
- "location_id": 1,
- "quantity_sum": 4
}
], - "created_at": "2023-02-13T10:53:53.000000Z",
- "updated_at": "2023-02-13T10:53:53.000000Z"
}, - "integrations": [
- {
- "type": "TRENDYOL",
- "price": 9999,
- "compare_price": 10000,
- "quantity_min": 10,
- "quantity_max": 10
}
], - "created_at": "2023-02-13T10:53:53.000000Z",
- "updated_at": "2023-02-13T10:53:53.000000Z"
}
]
}
UpdateProductById
Update product
Authorizations:
path Parameters
id required | integer Product identifier |
Request Body schema: application/json
id | integer Product identifier |
uuid | string Product unique identifier |
currency_id | integer Product currency identifier |
title | string Product title |
status | string Enum: "draft" "passive" "active" Product listing status |
created_at | string Create date of the object |
updated_at | string Update date of the object |
Array of objects (ProductVariant) |
Responses
Request samples
- Payload
{- "id": 1,
- "uuid": "91ccf111-56c9-5a10-8bf7-4353b23b98f3",
- "currency_id": 1,
- "title": "API Test Product",
- "status": "draft",
- "created_at": "2023-02-13T10:53:53.000000Z",
- "updated_at": "2023-02-13T10:53:53.000000Z",
- "variants": [
- {
- "id": 1,
- "uuid": null,
- "product_id": 1,
- "title": "API Test Product Variant",
- "price": 100.5,
- "compare_price": 120.5,
- "barcode": "BARCODE001",
- "sort": 0,
- "inventory": {
- "id": 1,
- "product_variant_id": 1,
- "sku": "SKU001",
- "levels": [
- {
- "id": 1,
- "inventory_item_id": 1,
- "location_id": 1,
- "quantity_sum": 4
}
], - "created_at": "2023-02-13T10:53:53.000000Z",
- "updated_at": "2023-02-13T10:53:53.000000Z"
}, - "integrations": [
- {
- "type": "TRENDYOL",
- "price": 9999,
- "compare_price": 10000,
- "quantity_min": 10,
- "quantity_max": 10
}
], - "created_at": "2023-02-13T10:53:53.000000Z",
- "updated_at": "2023-02-13T10:53:53.000000Z"
}
]
}
Response samples
- 200
{- "id": 1,
- "uuid": "91ccf111-56c9-5a10-8bf7-4353b23b98f3",
- "currency_id": 1,
- "title": "API Test Product",
- "status": "draft",
- "created_at": "2023-02-13T10:53:53.000000Z",
- "updated_at": "2023-02-13T10:53:53.000000Z",
- "variants": [
- {
- "id": 1,
- "uuid": null,
- "product_id": 1,
- "title": "API Test Product Variant",
- "price": 100.5,
- "compare_price": 120.5,
- "barcode": "BARCODE001",
- "sort": 0,
- "inventory": {
- "id": 1,
- "product_variant_id": 1,
- "sku": "SKU001",
- "levels": [
- {
- "id": 1,
- "inventory_item_id": 1,
- "location_id": 1,
- "quantity_sum": 4
}
], - "created_at": "2023-02-13T10:53:53.000000Z",
- "updated_at": "2023-02-13T10:53:53.000000Z"
}, - "integrations": [
- {
- "type": "TRENDYOL",
- "price": 9999,
- "compare_price": 10000,
- "quantity_min": 10,
- "quantity_max": 10
}
], - "created_at": "2023-02-13T10:53:53.000000Z",
- "updated_at": "2023-02-13T10:53:53.000000Z"
}
]
}
GetInventoriesByQuery
GetInventoriesByQuery definition
Authorizations:
Request Body schema: application/json
page | integer >= 0 Default: 1 |
limit | integer [ 25 .. 100 ] Default: 25 |
relation | Array of arrays or null or null Default: null |
filter | object or null Default: null |
search | object or null Default: null |
Responses
Request samples
- Payload
{- "page": 1,
- "limit": 25,
- "relation": null,
- "filter": null,
- "search": null
}
Response samples
- 200
{- "data": [
- { }
], - "meta": {
- "current_page": {
- "type": "integer",
- "example": 1
}, - "last_page": {
- "type": "integer",
- "example": 4
}, - "per_page": {
- "type": "integer",
- "example": 25
}, - "total": {
- "type": "integer",
- "example": 100
}
}
}
UpdateBySkuOrBarcode
Using this service, you can update a variant's stock quantity by either a sku or barcode.
Authorizations:
Request Body schema: application/json
Update inventory stock by sku or barcode
sku required | string The Stock Keeping Unit of the inventory. |
method | string Default: "set" Enum: "adjust" "set" The update method, set will equalize the current stock to given value while adjust will append the given value to the current stock. |
value required | integer Update value the stock will be manipulated according to. |
location_id | integer Default: null Location identifier of the level, if not specified, default location will be used. |
object (ProductVariant) Variant Model Definition |
Responses
Request samples
- Payload
{- "barcode": "BARCODE1",
- "method": "adjust",
- "value": 1,
- "location_id": null,
- "variant": {
- "id": 1,
- "uuid": null,
- "product_id": 1,
- "title": "API Test Product Variant",
- "price": 100.5,
- "compare_price": 120.5,
- "barcode": "BARCODE001",
- "sort": 0,
- "inventory": {
- "id": 1,
- "product_variant_id": 1,
- "sku": "SKU001",
- "levels": [
- {
- "id": 1,
- "inventory_item_id": 1,
- "location_id": 1,
- "quantity_sum": 4
}
], - "created_at": "2023-02-13T10:53:53.000000Z",
- "updated_at": "2023-02-13T10:53:53.000000Z"
}, - "integrations": [
- {
- "type": "TRENDYOL",
- "price": 9999,
- "compare_price": 10000,
- "quantity_min": 10,
- "quantity_max": 10
}
], - "created_at": "2023-02-13T10:53:53.000000Z",
- "updated_at": "2023-02-13T10:53:53.000000Z"
}
}
Response samples
- 201
{- "id": 0,
- "adjustment": 0,
- "inventory_level_id": 0
}
GetOrdersByQuery
Order query
Authorizations:
Request Body schema: application/json
GetOrdersByQuery definition
page | integer >= 0 Default: 1 |
limit | integer [ 25 .. 100 ] Default: 25 |
relation | Array of arrays or null or null Default: null |
filter | object or null Default: null |
search | object or null Default: null |
Responses
Request samples
- Payload
{- "page": 1,
- "limit": 25,
- "relation": null,
- "filter": null,
- "search": null
}
Response samples
- 200
{- "data": [
- {
- "id": 1001,
- "uuid": "e5cd2ce2-bc62-5470-b9a3-f323c0e2dc5d",
- "customer_id": 1,
- "amount": 1120.5,
- "ordered_at": "2023-02-13T10:53:53.000000Z",
- "created_at": "2023-02-13T10:53:53.000000Z",
- "updated_at": "2023-02-13T10:53:53.000000Z"
}
], - "meta": {
- "current_page": {
- "type": "integer",
- "example": 1
}, - "last_page": {
- "type": "integer",
- "example": 4
}, - "per_page": {
- "type": "integer",
- "example": 25
}, - "total": {
- "type": "integer",
- "example": 100
}
}
}
GetOrderById
GetOrderById definition
Authorizations:
path Parameters
id required | integer Order identifier |
Responses
Response samples
- 200
{- "id": 1001,
- "uuid": "e5cd2ce2-bc62-5470-b9a3-f323c0e2dc5d",
- "customer_id": 1,
- "amount": 1120.5,
- "ordered_at": "2023-02-13T10:53:53.000000Z",
- "created_at": "2023-02-13T10:53:53.000000Z",
- "updated_at": "2023-02-13T10:53:53.000000Z"
}