Skip to content

Getting a list of currencies ​

Overview ​

Request typeURL
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 ​

NameTypeDescription
partnerIdbigintUnique partner identifier
hashstringSignature (sha256 from encryption string)

String to hash

"currency_list" + partnerId + apiKey

Response ​

NameTypeDescription
currenciesarrayArray of currencies

currencies array parameters:

NameTypeDescription
idbigintUnique currency identifier
codestringCurrency 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:

MessageDescription
RequiredParamsNotFoundIncorrect number of parameters in the request
InvalidParamTypeIncorrect type of parameter
PartnerNotFoundPartner with such partnerId not found
IncorrectHashIncorrectly calculated hash
ServerErrorSever error