Getting a list of currencies
Overview
| Request type | URL |
|---|---|
| GET | <server-pixmove-games>/currency/list |
This method allows you to get the current list of currencies.
Notice
The request is executed by the partner.
Parameters
Request
| Name | Type | Description |
|---|---|---|
| partnerId | bigint | Unique partner identifier |
| hash | string | Signature (sha256 from encryption string) |
String to hash
"currency_list" + partnerId + apiKey
Response
| Name | Type | Description |
|---|---|---|
| currencies | array | Array of currencies |
currencies array parameters:
| Name | Type | Description |
|---|---|---|
| id | bigint | Unique currency identifier |
| code | string | Currency code (USD, EUR, BTC etc.) |
Example
Request
js
{
partnerId: 1,
hash: 'a1f9c0e8d4b27356f0c9e1a2b3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f6'
}Response
js
{
status: 'success'
data: {
currencies: [
{ id: 1, code: 'USD' },
{ id: 10, code: 'EUR' },
{ id: 106, code: 'BTC' }
]
}
}Errors
Possible error messages:
| Message | Description |
|---|---|
| RequiredParamsNotFound | Incorrect number of parameters in the request |
| InvalidParamType | Incorrect type of parameter |
| PartnerNotFound | Partner with such partnerId not found |
| IncorrectHash | Incorrectly calculated hash |
| ServerError | Sever error |