• Notifications
  • Messages
  • Complaints
  • Offers
  • Chats
  • Logout
  • РУС ENG

API




Getting current currency values

The URL for sending a request: https://api.digiseller.com/api/sellers/currency?token={token}
Method: GET
Request headers: Accept: "application/json"
Request parameters:
NameUseComment
token access token,
min. permission: [ Exchange rates ]: View
method to get access token
base_currencyfilter by currency (USD|RUB|EUR|UAH)optional parameter
Response format:
{ "retval": 0, "retdesc": null, "errors": null, "content": [ { "base_currency": "EUR", "currencies": [ { "currency": "USD", "rate": 1.0944, "bank": "MR", "complement": 0.00, "official_rate": 1.090406 }, ... ] } ... ]}
Response parameters:
NameUseComment
retval Result code 0 - success, 1 - error. Detailed information in field 'errors'
retdesc Description of result code Detailed information in field 'errors'
errors Result code Null - errors count is 0. if request is invalid, in this field this field will contain an array of errors
errors\code Error code String
errors\message Description of result code String
content Response body If request is invalid, this field will be null
content\base_currencycurrency for which the rate is indicated (USD|RUB|EUR|UAH)
content\currencies\currencyсurrency into which it is converted base_currency (USD|RUB|EUR|mBTC|mLTC)
content\currencies\ratethe exchange rate you set
content\currencies\bankcalculation type:
MR - at my rate
NBU - at the NBU rate
CBR - at the rate of the Central Bank of the Russian Federation
BTC - at the average exchange rate
LTC - at the average exchange rate
content\currencies\complementpercentage added to the base rate
content\currencies\official_rateofficial exchange rate



Exchange rate changes

The URL for sending a request: https://api.digiseller.com/api/sellers/currency?token={token}
Method: POST
Request headers: Content-Type: "text/xml" | "text/json" | "application/json" - Request format Accept: "text/xml" | "text/json" | "application/json" - Response format
JSON request format json { "base_currency":"EUR", "rate": 1.0944, "bank": "CBR", "complement": 0, "type_currency": "USD" }
Request parameters:
NameUseComment
token access token,
min. permission: [ Exchange rates ]: Change
method to get access token
base_currency currency for which the rate is indicated (USD|RUB|EUR|UAH) string. required field
rate exchange rate (required field if bank="MR") float
bank calculation type:
MR - at my rate (available for all currencies)
NBU - at the NBU rate (not available for mBTC, mLTC)
CBR - at the rate of the Central Bank of the Russian Federation (not available for mBTC, mLTC)
BTC - at the average exchange rate (available only for mBTC)
LTC - at the average exchange rate (available only for mLTC)
string. required field
complement percentage added to the base rate (required for bank = CBR|NBU) min 0 max 20 min:0, max: 20 float
type_currency сurrency into which it is converted base_currency (USD|RUB|EUR|mBTC|mLTC) string. required field