Skip to main content
ModelSwitch supports two ways to add funds to your account.

Bank card

Visa, Mastercard, or Mir. Funds are credited instantly.

Invoice

For legal entities. Pay by bank transfer. Funds are credited within 1–2 business days.
Minimum top-up: 100 RUB.
Invoice payments (bank transfer) are only available for legal entity accounts (ООО or ИП). Funds are credited within 1–2 business days after the payment clears. See Documents to set up your company details.

Top up via dashboard

1

Go to Billing

Open Dashboard → Billing.
2

Click Top Up

Click the Top Up button.
3

Enter amount

Enter the amount in rubles (minimum 100 RUB).
4

Complete payment

Complete the payment in the CloudPayments widget. Funds are credited to your balance instantly.

Top up via API

Create a payment session

Creates a CloudPayments widget session. Use the returned parameters to initialize the payment widget on your side.
curl -X POST https://modelswitch.io/api/payments/create \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"amount": "1000", "description": "Balance top-up"}'
Response:
{
  "publicId": "pk_xxxx",
  "description": "Balance top-up",
  "amount": 1000,
  "currency": "RUB",
  "accountId": "user@example.com",
  "data": {}
}
Pass publicId, amount, currency, and accountId to the CloudPayments widget to open the payment form.

Charge a saved card

If you have a saved card on file, you can charge it directly without opening the widget.
curl -X POST https://modelswitch.io/api/payments/charge-card \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"cardId": 1, "amount": "500"}'
Cards are saved automatically the first time you pay by card. Use List saved cards to retrieve card IDs.

Check your balance

curl https://modelswitch.io/api/balance \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"
Response:
{"balance": 1500.50}
The balance is returned in USD.

List saved cards

curl https://modelswitch.io/api/cards \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"
Response:
{
  "cards": [
    {"id": 1, "lastFour": "4242", "cardType": "Visa"}
  ]
}

Payment history

curl "https://modelswitch.io/api/payments?limit=50&offset=0" \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"
Returns a paginated list of top-up transactions with status, amount, and VAT breakdown.