The TraderItem API allows you to manage trader items for your DayZ server instances. Trader items define what items can be bought and sold at trader locations in the game, along with their prices.
Note: All API requests require authentication. See the Authentication page for details.
Retrieve a paginated list of trader items for a specific instance.
GET /api/instance/{instance_sid}/trader-item
Parameter | Type | Description |
---|---|---|
instance_sid | string | The SID of the instance |
Parameter | Type | Description |
---|---|---|
page
|
integer | Page number for pagination (default: 1) |
amount
|
integer | Number of items per page (default: 30) |
like
|
string | Filter items by classname (partial match) |
Retrieve details of a specific trader item.
GET /api/instance/{instance_sid}/trader-item/{trader_item_sid}
Parameter | Type | Description |
---|---|---|
instance_sid
|
string | The SID of the instance |
trader_item_sid
|
string | The SID of the trader item |
Create a new trader item for an instance.
POST /api/instance/{instance_sid}/trader-item
Parameter | Type | Description |
---|---|---|
instance_sid
|
string | The SID of the instance |
Parameter | Type | Required | Description |
---|---|---|---|
seller_id
|
integer | Required | ID of the trader seller |
category_id
|
integer | Required | ID of the trader category |
classname_id
|
integer | Required | ID of the classname |
quantity
|
string | Required | Quantity of the item |
buy
|
integer | Required | Buy price of the item |
sell
|
integer | Required | Sell price of the item |
Update an existing trader item.
PATCH /api/instance/{instance_sid}/trader-item/{trader_item_sid}
Parameter | Type | Description |
---|---|---|
instance_sid
|
string | The SID of the instance |
trader_item_sid
|
string | The SID of the trader item |
Parameter | Type | Required | Description |
---|---|---|---|
seller_id
|
integer | Optional | ID of the trader seller |
category_id
|
integer | Optional | ID of the trader category |
classname_id
|
integer | Optional | ID of the classname |
quantity
|
string | Optional | Quantity of the item |
buy
|
integer | Optional | Buy price of the item |
sell
|
integer | Optional | Sell price of the item |
Delete a trader item.
DELETE /api/instance/{instance_sid}/trader-item/{trader_item_sid}
Parameter | Type | Description |
---|---|---|
instance_sid
|
string | The SID of the instance |
trader_item_sid
|
string | The SID of the trader item |