Offer Attributes
Offer attributes define the characteristics and properties that can be assigned to offers for a specific game and offer type. Each attribute has multiple options that sellers can select when creating offers.
Get Offer Attributes
Retrieve all available attributes and their options for a specific game and offer type.
Endpoint
GET /v1/games/{id}/{offerType}/attributes
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Game ID (UUID) |
offerType | string | Yes | Offer type. Values: accounts, items, currency |
Request Example
curl -X GET "https://sellerapi.ggchest.com/v1/games/550e8400-e29b-41d4-a716-446655440000/accounts/attributes" \
-H "X-API-KEY: your-api-key-here"
Response Example
[
{
"id": "aa0e8400-e29b-41d4-a716-446655440020",
"attribute_name": "Server",
"options": [
{
"id": "bb0e8400-e29b-41d4-a716-446655440021",
"name": "US-East"
},
{
"id": "bb0e8400-e29b-41d4-a716-446655440022",
"name": "US-West"
},
{
"id": "bb0e8400-e29b-41d4-a716-446655440023",
"name": "EU"
}
]
},
{
"id": "aa0e8400-e29b-41d4-a716-446655440024",
"attribute_name": "Level",
"options": [
{
"id": "bb0e8400-e29b-41d4-a716-446655440025",
"name": "1-10"
},
{
"id": "bb0e8400-e29b-41d4-a716-446655440026",
"name": "11-20"
},
{
"id": "bb0e8400-e29b-41d4-a716-446655440027",
"name": "21-30"
}
]
}
]
Response Fields
| Field | Type | Description |
|---|---|---|
id | string | Attribute identifier (UUID) |
attribute_name | string | Name of the attribute |
options | array | List of available options for this attribute |
options[].id | string | Option identifier (UUID) |
options[].name | string | Option name/value |
Usage in Offers
When creating or updating an offer, you must include attributes in the request body. Each attribute should specify:
id: The attribute IDoption_id: The selected option ID for that attribute
Example:
{
"attributes": [
{
"id": "aa0e8400-e29b-41d4-a716-446655440020",
"option_id": "bb0e8400-e29b-41d4-a716-446655440021"
},
{
"id": "aa0e8400-e29b-41d4-a716-446655440024",
"option_id": "bb0e8400-e29b-41d4-a716-446655440025"
}
]
}
Error Responses
404 Not Found
Returned when the game ID is invalid or the game doesn't support the specified offer type.
{
"message": "Page not found"
}