Skip to main content

TopUp/Vouchers + Deposit

Use these methods to sell TopUp top-ups and vouchers to customers, paying with the merchant's deposit (acquiring is not required).


Getting the list of TopUps

Get the list of categories (games) and available in-game top-ups

GET /api/v1/deposit/topups

Response parameters

ParameterTypeComment
categoriesListThe list of categories (games)
idStringCategory number
nameStringCategory name
fieldsListThe list of required parameters for placing an order. Parameters differ between games
productsListThe list of items within the category (if the category is unavailable, the list is empty)
idStringItem number
nameStringItem name
priceNumberThe item's acquisition cost, in RUB
isAvailabletrue/falseItem availability

Creating a TopUp deposit order

Create an order to purchase a game item, paying with the merchant's deposit

POST /api/v1/deposit/topups

Request parameters

ParameterRequiredTypeComment
topupIdYesStringItem number
categoryIdYesStringCategory number
orderIdYesStringOrder number
fieldsNoObjectRequired parameters for placing an order. The set depends on the selected category — see Getting the list of TopUps
emailYesStringUser's email

Response parameters

ParameterTypeComment
orderIdStringOrder number
topupIdStringItem number
categoryIdStringCategory number
priceNumberThe item's acquisition cost, in RUB (debited from the deposit)
statusStringOrder status
fieldsObjectParameters passed when creating the order
emailStringUser's email

Getting the list of vouchers

Get the list of categories (services) and available vouchers within them

GET /api/v1/deposit/vouchers

Response parameters

ParameterTypeComment
categoriesListThe list of categories (services)
idStringCategory number
nameStringCategory name
productsListThe list of vouchers within the category (if the category is unavailable, the list is empty)
idStringVoucher number
nameStringVoucher name
priceNumberThe voucher's acquisition cost, in RUB
stockNumberNumber of available vouchers
isAvailabletrue/falseVoucher availability

Creating a voucher deposit order

Create an order to purchase vouchers, paying with the merchant's deposit

POST /api/v1/deposit/vouchers

Request parameters

ParameterRequiredTypeComment
voucherIdYesStringVoucher number
categoryIdYesStringCategory number
countYesNumberNumber of vouchers to purchase
orderIdYesStringOrder number
emailYesStringUser's email

Response parameters

ParameterTypeComment
orderIdStringOrder number
voucherIdStringVoucher number
categoryIdStringCategory number
countNumberNumber of vouchers purchased
priceNumberThe vouchers' acquisition cost, in RUB (debited from the deposit)
statusStringOrder status
codesListThe list of voucher codes (appear after the order is fulfilled)
emailStringUser's email

Checking order status

Checking order status is a shared method for all deposit-based products, see Deposit Operations