Instance Resources
Trader Items
Items available for trade with buy/sell prices.
5
Endpoints
GET
POST
PUT
DELETE
Methods
Read/write
Access
Base path
/api/v1/instances/{instance}/trader-items
Route parameters
Pass public sid values for these route parameters.
{instance}
{traderItem}
Example request
curl -X GET 'https://beta.dzconfig.com/api/v1/instances/{instance}/trader-items?per_page=10' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer YOUR_API_TOKEN'
Endpoints
| Method | Path | Purpose |
|---|---|---|
| GET |
/api/v1/instances/{instance}/trader-items
|
List trader items |
| POST |
/api/v1/instances/{instance}/trader-items
|
Create a trader item |
| GET |
/api/v1/instances/{instance}/trader-items/{traderItem}
|
Get trader item details |
| PUT |
/api/v1/instances/{instance}/trader-items/{traderItem}
|
Update a trader item |
| DELETE |
/api/v1/instances/{instance}/trader-items/{traderItem}
|
Delete a trader item |
Query parameters
| Parameter | Type | Description |
|---|---|---|
page |
integer | Page number. Defaults to 1. |
per_page |
integer | Items per page. Values are clamped from 1 to 100. |
seller_id |
integer | Filter by trader seller ID. |
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
seller_id |
integer | required | Trader seller ID (must belong to instance) |
category_id |
integer | required | Trader category ID (must belong to instance) |
instance_classname_id |
integer | required | Instance classname ID |
quantity |
integer | optional | Stock quantity (-1 = unlimited) |
buy |
numeric | optional | Buy price (0 = cannot buy) |
sell |
numeric | optional | Sell price (0 = cannot sell) |
Example response
{
"data": {
"id": 200,
"sid": "dE2fGh",
"instance_id": 1,
"seller_id": 1,
"category_id": 5,
"instance_classname_id": 100,
"quantity": -1,
"buy": "1500.00",
"sell": "750.00",
"created_at": "2026-02-01T12:00:00.000000Z",
"updated_at": "2026-04-10T09:30:00.000000Z"
}
}
Paginated list shape
{
"data": [
{
"sid": "abc123xy",
"...": "resource fields"
}
],
"links": {
"first": "https://beta.dzconfig.com/api/v1/instances/{instance}/trader-items?page=1",
"last": "https://beta.dzconfig.com/api/v1/instances/{instance}/trader-items?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"per_page": 10,
"total": 1
}
}
Status codes
| Code | Label | Description |
|---|---|---|
200
|
OK | Returned for successful reads, updates, and deletes. |
201
|
Created | Returned when a POST creates a resource. |
401
|
Unauthorized | Missing or invalid bearer token. |
403
|
Forbidden | Your plan or permissions do not allow this action. |
404
|
Not found | The route parameter did not match an accessible resource. |
413
|
Storage limit exceeded | Storing the file would exceed your plan's upload count, generated count, or total storage cap. |
422
|
Validation error | Request fields failed validation. |
429
|
Rate limited | Too many API requests in a short period. |