Overview /
Stock & supply /
Add an asset
Add an asset
post
https://api.flactrum.com/v1/assets
| Required scope | assets.write |
| Success status | 201 |
| Returns | One Asset object |
Request body
| Field | Type | Description |
|---|---|---|
| branch_id * | string | — |
| name * | string | — |
| category | string | — |
| status | string | — |
| quantity | integer | — |
| code | string | — |
| serial_number | string | — |
| manufacturer | string | — |
| model | string | — |
| unit_price | number | — |
| purchased_at | string | — |
| warranty_until | string | — |
| note | string | — |
Response fields
| Field | Type | Description |
|---|---|---|
| id | string | — |
| branch_id | string | The branch whose inventory holds it; counts run per branch. |
| name | string | — |
| category | string | — |
| status | string | — |
| quantity | integer | How many identical items this row stands for. |
| code | string|null | Your own label. Unique within the brand when given. |
| serial_number | string|null | — |
| manufacturer | string|null | — |
| model | string|null | — |
| unit_price | number|null | — |
| total_value | number|null | quantity × unit_price, or null when no price is recorded. |
| purchased_at | string|null | — |
| warranty_until | string|null | — |
| warranty_expired | boolean | False when no warranty date is recorded — unknown is not expired. |
| note | string|null | — |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X POST 'https://api.flactrum.com/v1/assets' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Content-Type: application/json' \
-d '{
"branch_id": "01m43mxhnxx8ejva42083nk86h",
"name": "Buzdolabı",
"category": "kitchen",
"quantity": 1,
"unit_price": 42500,
"serial_number": "SN-99812",
"manufacturer": "Arçelik",
"warranty_until": "2028-03-01"
}'
HTTP 201 · application/json
{
"data": {
"id": "01m43mxhph1n0d20rrbmc41mnt",
"branch_id": "01m43mxhnxx8ejva42083nk86h",
"name": "Buzdolabı",
"category": "kitchen",
"status": "active",
"quantity": 1,
"code": null,
"serial_number": "SN-99812",
"manufacturer": "Arçelik",
"model": null,
"unit_price": 42500,
"total_value": 42500,
"purchased_at": null,
"warranty_until": "2028-03-01",
"warranty_expired": false,
"note": null,
"created_at": "2026-10-04T14:26:05+00:00",
"updated_at": "2026-10-04T14:26:05+00:00"
}
}