Orders
The Orders API allows you to view and manage your orders. You can retrieve a list of all your orders with filtering and pagination, or get detailed information about a specific order.
List Orders
Get a paginated list of all your orders with optional filtering and sorting.
Endpoint
GET /v1/orders
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
pagination[page] | integer | No | Page number (default: 1) |
pagination[per_page] | integer | No | Items per page |
filters[status] | string | No | Filter by order status: CANCELED, WAITING_DELIVERY, DELIVERED, RECEIVED, COMPLETED |
filters[date_from] | string | No | Filter orders from this date (ISO 8601 format) |
filters[date_to] | string | No | Filter orders until this date (ISO 8601 format) |
sort[field] | string | No | Sort field. Values: paid_at |
sort[direction] | string | No | Sort direction. Values: asc, desc |
Request Example
curl -X GET "https://sellerapi.ggchest.com/v1/orders?pagination[page]=1&pagination[per_page]=20&filters[status]=WAITING_DELIVERY&sort[field]=paid_at&sort[direction]=desc" \
-H "X-API-KEY: your-api-key-here"
Response Example
{
"items": [
{
"id": "ff0e8400-e29b-41d4-a716-446655440060",
"name": "World of Warcraft Level 60 Account",
"icon": {
"id": "dd0e8400-e29b-41d4-a716-446655440031",
"path": "https://cdn.ggchest.com/offers/icon.png"
},
"buyer": {
"name": "John Doe"
},
"dispute": null,
"paid_at": "2024-01-15T10:30:00Z",
"quantity": 1,
"price": "99.99",
"status": "WAITING_DELIVERY",
"offer_type": "accounts"
},
{
"id": "ff0e8400-e29b-41d4-a716-446655440061",
"name": "100,000 Gold",
"icon": {
"id": "990e8400-e29b-41d4-a716-446655440011",
"path": "https://cdn.ggchest.com/icons/gold.png"
},
"buyer": {
"name": "Jane Smith"
},
"dispute": {
"id": "gg0e8400-e29b-41d4-a716-446655440070",
"reason": "Item not received",
"status": "OPEN",
"beneficiary": "BUYER",
"resolution": null,
"created_at": "2024-01-16T14:20:00Z",
"updated_at": "2024-01-16T14:20:00Z"
},
"paid_at": "2024-01-14T08:15:00Z",
"quantity": 2,
"price": "29.99",
"status": "DELIVERED",
"offer_type": "currency"
}
],
"pagination": {
"total_count": 45,
"page_count": 3,
"page": 1,
"per_page": 20
}
}
Response Fields
| Field | Type | Description |
|---|---|---|
items | array | Array of order objects |
items[].id | string | Order identifier (UUID) |
items[].name | string | Offer name/title |
items[].icon | object|null | Offer icon |
items[].icon.id | string | Icon identifier |
items[].icon.path | string | URL to icon image |
items[].buyer | object | Buyer information |
items[].buyer.name | string | Buyer name |
items[].dispute | object|null | Dispute information (if exists) |
items[].dispute.id | string | Dispute identifier |
items[].dispute.reason | string | Reason for the dispute |
items[].dispute.status | string | Dispute status |
items[].dispute.beneficiary | string | Who benefits from the dispute: BUYER or SELLER |
items[].dispute.resolution | string|null | Resolution description |
items[].dispute.created_at | string | Dispute creation date (ISO 8601) |
items[].dispute.updated_at | string | Dispute last update date (ISO 8601) |
items[].paid_at | string | Payment date and time (ISO 8601) |
items[].quantity | integer | Quantity purchased |
items[].price | string | Price per unit |
items[].status | string | Order status (see Order Statuses) |
items[].offer_type | string | Type of offer: accounts, items, currency |
pagination | object | Pagination information |
pagination.total_count | integer | Total number of orders |
pagination.page_count | integer | Total number of pages |
pagination.page | integer | Current page number |
pagination.per_page | integer | Items per page |
Get Single Order
Retrieve detailed information about a specific order, including full offer details, game information, and account credentials (for auto-delivery account offers).
Endpoint
GET /v1/orders/{id}
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Order ID (UUID) |
Request Example
curl -X GET "https://sellerapi.ggchest.com/v1/orders/ff0e8400-e29b-41d4-a716-446655440060" \
-H "X-API-KEY: your-api-key-here"
Response Example
{
"id": "ff0e8400-e29b-41d4-a716-446655440060",
"status": "WAITING_DELIVERY",
"buyer_id": "aa0e8400-e29b-41d4-a716-446655440080",
"buyer_name": "John Doe",
"seller_id": "bb0e8400-e29b-41d4-a716-446655440090",
"price": "99.99",
"quantity": 1,
"order_worth": "99.99",
"currency": "USD",
"market_commission_percent": "10.00",
"market_commission_amount": "9.99",
"order_worth_after_commission": "89.99",
"updated_at": "2024-01-15T10:30:00Z",
"will_be_completed_at": "2024-01-22T10:30:00Z",
"cancel_reason": null,
"canceled_at": null,
"offer": {
"id": "cc0e8400-e29b-41d4-a716-446655440030",
"title": "World of Warcraft Level 60 Account",
"description": "Premium account with rare mounts and achievements",
"offer_type": "accounts",
"delivery_time": "5m",
"delivery_method": "auto",
"icon": {
"id": "dd0e8400-e29b-41d4-a716-446655440031",
"path": "https://cdn.ggchest.com/offers/icon.png"
},
"attributes": [
{
"id": "aa0e8400-e29b-41d4-a716-446655440020",
"option_id": "bb0e8400-e29b-41d4-a716-446655440021",
"option_name": "US-East",
"attribute_name": "Server"
}
]
},
"game": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "World of Warcraft",
"icon": {
"id": "660e8400-e29b-41d4-a716-446655440001",
"path": "https://cdn.ggchest.com/icons/wow.png"
},
"resources": {
"icon": {
"id": "660e8400-e29b-41d4-a716-446655440001",
"path": "https://cdn.ggchest.com/icons/wow.png"
},
"cover": {
"id": "770e8400-e29b-41d4-a716-446655440002",
"path": "https://cdn.ggchest.com/covers/wow.jpg"
}
}
},
"dispute": null,
"accounts": [
{
"id": "ee0e8400-e29b-41d4-a716-446655440040",
"login": "player123",
"password": "SecurePassword123!",
"email_login": "[email protected]",
"email_password": "EmailPass123",
"description": "Account with rare mount collection"
}
]
}
Response Fields
| Field | Type | Description |
|---|---|---|
id | string | Order identifier (UUID) |
status | string | Order status (see Order Statuses) |
buyer_id | string | Buyer identifier (UUID) |
buyer_name | string | Buyer name |
seller_id | string | Seller identifier (UUID) |
price | string | Price per unit |
quantity | integer | Quantity purchased |
order_worth | string | Total order value |
currency | string | Currency code (e.g., "USD") |
market_commission_percent | string | Market commission percentage |
market_commission_amount | string | Market commission amount |
order_worth_after_commission | string | Order value after commission deduction |
updated_at | string | Last update date and time (ISO 8601) |
will_be_completed_at | string|null | Expected completion date (ISO 8601) |
cancel_reason | string|null | Cancellation reason (if canceled) |
canceled_at | string|null | Cancellation date and time (ISO 8601) |
offer | object | Offer details |
offer.id | string | Offer identifier (UUID) |
offer.title | string | Offer title |
offer.description | string | Offer description |
offer.offer_type | string | Offer type: accounts, items, currency |
offer.delivery_time | string | Delivery time (see Create Offers for allowed values) |
offer.delivery_method | string | Delivery method: manual, auto |
offer.icon | object|null | Offer icon |
offer.attributes | array | Offer attributes |
offer.attributes[].id | string | Attribute identifier |
offer.attributes[].option_id | string | Selected option identifier |
offer.attributes[].option_name | string | Selected option name |
offer.attributes[].attribute_name | string | Attribute name |
game | object | Game information |
game.id | string | Game identifier (UUID) |
game.name | string | Game name |
game.icon | object|null | Game icon |
game.resources | object | Game resources |
game.resources.icon | object|null | Game icon resource |
game.resources.cover | object|null | Game cover image resource |
dispute | object|null | Dispute information (if exists) |
dispute.id | string | Dispute identifier |
dispute.reason | string | Reason for the dispute |
dispute.status | string | Dispute status |
dispute.beneficiary | string|null | Who benefits from the dispute: BUYER or SELLER |
dispute.resolution | string|null | Resolution description |
dispute.created_at | string | Dispute creation date (ISO 8601) |
dispute.updated_at | string | Dispute last update date (ISO 8601) |
accounts | array|null | Account credentials (only for auto-delivery account offers) |
accounts[].id | string | Account identifier |
accounts[].login | string|null | Account login/username |
accounts[].password | string|null | Account password |
accounts[].email_login | string|null | Email login (if email access is included) |
accounts[].email_password | string|null | Email password (if email access is included) |
accounts[].description | string|null | Account description |
Order Statuses
Orders can have the following statuses:
| Status | Description |
|---|---|
CANCELED | The order has been canceled |
WAITING_DELIVERY | Order is paid and waiting for delivery |
DELIVERED | Order has been delivered to the buyer |
RECEIVED | Buyer has received and confirmed the order |
COMPLETED | Order is fully completed (final status) |
Status Flow
WAITING_DELIVERY → DELIVERED → RECEIVED → COMPLETED
↓
CANCELED
Disputes
A dispute can be opened by either the buyer or seller if there's an issue with the order. Disputes contain the following information:
- Reason: Description of why the dispute was opened
- Status: Current status of the dispute (e.g.,
OPEN,RESOLVED) - Beneficiary: Who benefits from the dispute resolution (
BUYERorSELLER) - Resolution: Description of how the dispute was resolved (if resolved)
- Timestamps:
created_atandupdated_attrack when the dispute was created and last updated
When a dispute exists, the dispute field in the order response will contain the dispute object. Otherwise, it will be null.
Filtering Orders
By Status
Filter orders by their current status:
# Get only waiting delivery orders
curl -X GET "https://sellerapi.ggchest.com/v1/orders?filters[status]=WAITING_DELIVERY" \
-H "X-API-KEY: your-api-key-here"
By Date Range
Filter orders within a specific date range using ISO 8601 format:
# Get orders from January 2024
curl -X GET "https://sellerapi.ggchest.com/v1/orders?filters[date_from]=2024-01-01T00:00:00Z&filters[date_to]=2024-01-31T23:59:59Z" \
-H "X-API-KEY: your-api-key-here"
Sorting Orders
Orders can be sorted by the paid_at field in ascending or descending order:
# Get orders sorted by payment date (newest first)
curl -X GET "https://sellerapi.ggchest.com/v1/orders?sort[field]=paid_at&sort[direction]=desc" \
-H "X-API-KEY: your-api-key-here"
Error Responses
404 Not Found
Returned when the order ID is invalid or the order doesn't exist.
{
"message": "Order not found"
}
Account Credentials for Auto-Delivery
For account offers with delivery_method: "auto", the order response includes the accounts array with account credentials. This allows your system to automatically deliver accounts to buyers when orders are placed.
Important: Account credentials are only included in the order response for auto-delivery account offers. Manual delivery offers do not include account credentials in the API response.
Next Steps
- Learn about Offer Management
- Review Authentication requirements
- Check Games Dictionary for available games