Wiki Navigation

TraderItem API Endpoints

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.

List Trader Items

Retrieve a paginated list of trader items for a specific instance.

Request

GET /api/instance/{instance_sid}/trader-item

URL Parameters

Parameter Type Description
instance_sid string The SID of the instance

Query Parameters

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)

Response

Get Trader Item

Retrieve details of a specific trader item.

Request

GET /api/instance/{instance_sid}/trader-item/{trader_item_sid}

URL Parameters

Parameter Type Description
instance_sid string The SID of the instance
trader_item_sid string The SID of the trader item

Response

Create Trader Item

Create a new trader item for an instance.

Request

POST /api/instance/{instance_sid}/trader-item

URL Parameters

Parameter Type Description
instance_sid string The SID of the instance

Request Body

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

Response

Update Trader Item

Update an existing trader item.

Request

PATCH /api/instance/{instance_sid}/trader-item/{trader_item_sid}

URL Parameters

Parameter Type Description
instance_sid string The SID of the instance
trader_item_sid string The SID of the trader item

Request Body

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

Response

Delete Trader Item

Delete a trader item.

Request

DELETE /api/instance/{instance_sid}/trader-item/{trader_item_sid}

URL Parameters

Parameter Type Description
instance_sid string The SID of the instance
trader_item_sid string The SID of the trader item

Response