Wiki Navigation

API Reference
CRUD Operations

Trader Sellers API

Manage trader sellers (NPCs/vendors) for your server. Sellers are the top-level entities that contain categories, which in turn contain tradeable items.

Authentication required: All endpoints require a valid Bearer token. See Authentication for details.

GET

List Trader Sellers

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

Endpoint

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

Parameters

instance_sid
string required

The SID of the instance (URL parameter)

like string

Filter sellers by name using partial match.

amount integer

Number of results per page. Defaults to 30.

Response

{
  "current_page": 1,
  "data": [
    {
      "id": 1,
      "sid": "abc123def456",
      "name": "General Merchant",
      "instance_id": 1,
      "created_at": "2025-01-15T10:30:00Z",
      "updated_at": "2025-01-15T10:30:00Z"
    }
  ],
  "per_page": 30,
  "total": 5
}
GET

Get Trader Seller

Retrieve details of a specific trader seller, including their categories.

Endpoint

GET /api/instance/{instance_sid}/trader-seller/{seller_sid}

URL Parameters

instance_sid required

The SID of the instance

seller_sid required

The SID of the trader seller

POST

Create Trader Seller

Create a new trader seller for an instance.

Endpoint

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

Request Body

name
string required

Name of the trader seller (max 255 characters)

Example Request

{
  "name": "Weapons Dealer"
}
PATCH

Update Trader Seller

PATCH /api/instance/{instance_sid}/trader-seller/{seller_sid}

Update an existing trader seller. Include only fields to change.

DELETE

Delete Trader Seller

DELETE /api/instance/{instance_sid}/trader-seller/{seller_sid}

Permanently delete a trader seller and all associated categories.

Pro Tips

Organize your sellers by location or specialization (e.g., "Military Trader", "Medical Supplies", "Vehicle Parts"). Each seller can have multiple categories, and categories contain the actual items. Use descriptive names to help players identify what each trader offers.