Download OpenAPI specification:Download
This endpoint requires the following permission(s): project_configuration:virtual_currencies:read. This endpoint belongs to the Project Configuration domain, which has a default rate limit of 60 requests per minute.
| project_id required | string <= 255 characters Example: proj1ab2c3d4 ID of the project |
| starting_after | string Example: starting_after=ent12354 Pagination cursor. Pass the id of the last item from the previous page to fetch the next page; omit for the first page. |
| limit | integer Default: 20 Example: limit=10 Maximum number of items to return per page. Values below 1 or above 100 are clamped to that range rather than rejected. |
{- "object": "list",
- "items": [
- {
- "state": "active",
- "object": "virtual_currency",
- "project_id": "proj1ab2c3d4",
- "code": "GLD",
- "name": "Gold",
- "created_at": 1658399423658,
- "description": "Gold currency used in the game",
- "product_grants": [
- {
- "object": "virtual_currency.product_grant",
- "product_ids": [
- "prode1a2b3c4d5"
], - "amount": 100,
- "trial_amount": 0,
- "expire_at_cycle_end": false
}
]
}
], - "next_page": "/v2/projects/proj1ab2c3d4/virtual_currencies?starting_after=GLD",
- "url": "/v2/projects/proj1ab2c3d4/virtual_currencies"
}This endpoint requires the following permission(s): project_configuration:virtual_currencies:read_write. This endpoint belongs to the Project Configuration domain, which has a default rate limit of 60 requests per minute.
| project_id required | string <= 255 characters Example: proj1ab2c3d4 ID of the project |
| code required | string [ 1 .. 10 ] characters ^[a-zA-Z0-9_]+$ The unique code for this virtual currency | ||||||||
| name required | string [ 1 .. 50 ] characters The display name of the virtual currency | ||||||||
| description | string or null [ 1 .. 1500 ] characters Description of the virtual currency | ||||||||
Array of objects or null (VirtualCurrencyProductGrantInput) Product grants that define how products grant this virtual currency | |||||||||
Array
| |||||||||
{- "code": "GLD",
- "name": "Gold",
- "description": "Gold currency used in the game",
- "product_grants": [
- {
- "product_ids": [
- "prode1a2b3c4d5"
], - "amount": 100,
- "trial_amount": 0,
- "expire_at_cycle_end": false
}
]
}{- "state": "active",
- "object": "virtual_currency",
- "project_id": "proj1ab2c3d4",
- "code": "GLD",
- "name": "Gold",
- "created_at": 1658399423658,
- "description": "Gold currency used in the game",
- "product_grants": [
- {
- "object": "virtual_currency.product_grant",
- "product_ids": [
- "prode1a2b3c4d5"
], - "amount": 100,
- "trial_amount": 0,
- "expire_at_cycle_end": false
}
]
}This endpoint requires the following permission(s): project_configuration:virtual_currencies:read. This endpoint belongs to the Project Configuration domain, which has a default rate limit of 60 requests per minute.
| project_id required | string <= 255 characters Example: proj1ab2c3d4 ID of the project |
| virtual_currency_code required | string [ 1 .. 10 ] characters ^[a-zA-Z0-9_]+$ The virtual currency code |
{- "state": "active",
- "object": "virtual_currency",
- "project_id": "proj1ab2c3d4",
- "code": "GLD",
- "name": "Gold",
- "created_at": 1658399423658,
- "description": "Gold currency used in the game",
- "product_grants": [
- {
- "object": "virtual_currency.product_grant",
- "product_ids": [
- "prode1a2b3c4d5"
], - "amount": 100,
- "trial_amount": 0,
- "expire_at_cycle_end": false
}
]
}This endpoint requires the following permission(s): project_configuration:virtual_currencies:read_write. This endpoint belongs to the Project Configuration domain, which has a default rate limit of 60 requests per minute.
| project_id required | string <= 255 characters Example: proj1ab2c3d4 ID of the project |
| virtual_currency_code required | string [ 1 .. 10 ] characters ^[a-zA-Z0-9_]+$ The virtual currency code |
| name | string [ 1 .. 50 ] characters The display name of the virtual currency | ||||||||
| description | string or null [ 1 .. 1500 ] characters Description of the virtual currency | ||||||||
Array of objects or null (VirtualCurrencyProductGrantInput) Product grants that define how products grant this virtual currency | |||||||||
Array
| |||||||||
{- "name": "Gold",
- "description": "Gold currency used in the game",
- "product_grants": [
- {
- "product_ids": [
- "prode1a2b3c4d5"
], - "amount": 100,
- "trial_amount": 0,
- "expire_at_cycle_end": false
}
]
}{- "state": "active",
- "object": "virtual_currency",
- "project_id": "proj1ab2c3d4",
- "code": "GLD",
- "name": "Gold",
- "created_at": 1658399423658,
- "description": "Gold currency used in the game",
- "product_grants": [
- {
- "object": "virtual_currency.product_grant",
- "product_ids": [
- "prode1a2b3c4d5"
], - "amount": 100,
- "trial_amount": 0,
- "expire_at_cycle_end": false
}
]
}This endpoint requires the following permission(s): project_configuration:virtual_currencies:read_write. This endpoint belongs to the Project Configuration domain, which has a default rate limit of 60 requests per minute.
| project_id required | string <= 255 characters Example: proj1ab2c3d4 ID of the project |
| virtual_currency_code required | string [ 1 .. 10 ] characters ^[a-zA-Z0-9_]+$ The virtual currency code |
{- "object": "app",
- "id": "string",
- "deleted_at": 1658399423658
}Archives a virtual currency (makes it inactive).
This endpoint requires the following permission(s): project_configuration:virtual_currencies:read_write. This endpoint belongs to the Project Configuration domain, which has a default rate limit of 60 requests per minute.
| project_id required | string <= 255 characters Example: proj1ab2c3d4 ID of the project |
| virtual_currency_code required | string [ 1 .. 10 ] characters ^[a-zA-Z0-9_]+$ The virtual currency code |
{- "state": "active",
- "object": "virtual_currency",
- "project_id": "proj1ab2c3d4",
- "code": "GLD",
- "name": "Gold",
- "created_at": 1658399423658,
- "description": "Gold currency used in the game",
- "product_grants": [
- {
- "object": "virtual_currency.product_grant",
- "product_ids": [
- "prode1a2b3c4d5"
], - "amount": 100,
- "trial_amount": 0,
- "expire_at_cycle_end": false
}
]
}Unarchives a virtual currency (makes it active).
This endpoint requires the following permission(s): project_configuration:virtual_currencies:read_write. This endpoint belongs to the Project Configuration domain, which has a default rate limit of 60 requests per minute.
| project_id required | string <= 255 characters Example: proj1ab2c3d4 ID of the project |
| virtual_currency_code required | string [ 1 .. 10 ] characters ^[a-zA-Z0-9_]+$ The virtual currency code |
{- "state": "active",
- "object": "virtual_currency",
- "project_id": "proj1ab2c3d4",
- "code": "GLD",
- "name": "Gold",
- "created_at": 1658399423658,
- "description": "Gold currency used in the game",
- "product_grants": [
- {
- "object": "virtual_currency.product_grant",
- "product_ids": [
- "prode1a2b3c4d5"
], - "amount": 100,
- "trial_amount": 0,
- "expire_at_cycle_end": false
}
]
}