API Documentation

API Documentation

RateON Exchange API v1

This documentation explains how to integrate RateON exchange into a wallet, monitoring platform, application or partner service. Use the API to get exchange directions, calculate amounts, create orders and track statuses.

Base URL
/api/userapi/v1/
https://rateon.io/api/userapi/v1/{method}
Request / response
POST → JSON
All parameters are sent in the request body. Responses are returned in JSON format.
Exchange directions

Exchange directions

Receive available pairs, reserves, limits and required fields for each exchange direction.

Order creation

Order creation

Create exchange orders from your interface and pass user wallet details securely through the API.

Status tracking

Status tracking

Track order status through API methods or receive server-to-server callback notifications.

Quick start

Endpoint format

https://rateon.io/api/userapi/v1/{method}

Content type

application/x-www-form-urlencoded is recommended for request body parameters.

curl -X POST "https://rateon.io/api/userapi/v1/test" \
  -H "API-LOGIN: YOUR_API_LOGIN" \
  -H "API-KEY: YOUR_API_KEY" \
  -H "API-LANG: en_US"
Authentication
HeaderRequiredDescription
API-LOGINYesAPI login issued for your integration account.
API-KEYYesPrivate API key issued for your integration account.
API-LANGNoForced response language. Example values: en_US, ru_RU.
Security: keep the API key on your server side only. Do not expose it in browser JavaScript, public mobile app code or client-side applications.
Recommended integration flow

Load currencies and directions

Call get_direction_currencies and get_directions to display available exchange pairs.

1

Get direction details

Call get_direction to receive rate, reserve, limits, commissions and required fields.

2

Calculate amount

Call get_calc immediately before order creation to calculate current give/receive amounts.

3

Create and track order

Call create_bid, then use bid_info, get_exchanges or callbacks to track status.

4
Wallet integration checklist

1. Build pair selection

Use get_direction_currencies and get_directions to get currencies, pairs and direction_id.

2. Render dynamic fields

Use get_direction to render required give_fields, get_fields and dir_fields.

3. Calculate before submit

Use get_calc right before order creation to show the latest amount and detect possible amount changes.

4. Create order and save IDs

Use create_bid and store returned id, hash, status and payment action data.

5. Track status

Use callback_url for push updates, then verify the status with bid_info or get_exchanges.

6. Respect API actions

Call pay_bid and cancel_bid only when returned api_actions explicitly allows API action.

Methods overview
MethodPurposeTypical use
testChecks API access.Use first to verify credentials and IP allowlist.
get_direction_currenciesReturns currencies available for exchange.Build currency selectors.
get_directionsReturns available exchange directions.Build pair list and get direction_id.
get_directionReturns detailed information about a direction.Show rates, limits, reserve and required fields.
get_calcCalculates exchange amount.Show current amount before order creation.
create_bidCreates an exchange order.Submit the final exchange request.
bid_infoReturns payment and status information for one API-created order.Check by id or hash.
get_exchangesReturns orders created by the current API key.Show order history or sync statuses.
pay_bidMarks an order as paid when allowed.Use only when api_actions.pay = api.
cancel_bidCancels an order when allowed.Use only when api_actions.cancel = api.
Method reference

Request parameters

No required parameters.

Optional parameters

currency_id_give, currency_id_get.

Response

Returns available currencies for give and receive sides. Use this method to build currency selectors.

Optional parameters

currency_id_give, currency_id_get.

Response

Each direction includes direction_id, give/get currency IDs, currency titles and logos.

Required parameter

direction_id — ID of the exchange direction.

Response fields

Use response fields such as reserve, course_give, course_get, min_give, max_give, min_get, max_get, give_fields, get_fields and dir_fields.

Required parameters

direction_id, calc_amount, calc_action.

calc_action values

1 give amount, 2 receive amount, 3 give amount with commission, 4 receive amount with commission.

Response fields

Use sum_give, sum_give_com, sum_get, sum_get_com, com_give, com_get, limits and changed flag.

Main parameters

direction_id, calc_amount, calc_action, account1, account2, custom fields cf1cf99.

Optional parameters

api_id, partner_id, callback_url. Use callback_url if you want RateON to notify your server when the order status changes.

Response fields

Store returned id and hash. Use status, status_title, amount fields, payment instruction and api_actions.

Parameters

Send either id or hash. Use this method after callbacks and when the user opens the order screen.

Optional filters

start_time, end_time, ip, id, api_id, status_history, limit, offset.

Payment actions

api_actions.pay

If value is api, the wallet may call pay_bid. If a payment link or instruction is returned, show it to the user.

api_actions.cancel

If value is api, the wallet may call cancel_bid. Otherwise cancellation may not be available for this order.

Before showing payment or cancellation buttons, always check api_actions. Some actions may be handled automatically by merchant modules or may not be available for a specific order.
Order statuses
newNew order
coldnewWaiting for verification
payedMarked as paid by user
realpayPayment received
verifyUnder review
successCompleted order
cancelCancelled order
errorFailed order
partpayPartially paid
payouterrorPayout error
mercherrorMerchant error
deleteDeleted order
Callback notifications

Use callbacks as a server-to-server notification that an order may have changed. The wallet should always verify the final state through the API before updating the user interface.

Enable callbacks

Pass callback_url when calling create_bid. The URL must be available over HTTPS and able to receive POST requests from RateON.

1

Receive callback data

The callback payload may include bid_id, account1, account2 and custom order fields cf1cf99, depending on the selected direction and order fields.

2

Verify order status

After receiving a callback, call bid_info using the order id or hash. If you need to sync multiple orders, use get_exchanges.

3

Update wallet UI

Update the order screen only after API verification. This prevents incorrect status changes if the callback is delayed, duplicated or retried.

4
Important: treat callbacks as notifications, not as the only source of truth. The current order status should be confirmed with bid_info or get_exchanges.
Errors
ErrorPossible reasonRecommended action
Api disabledIncorrect credentials or API access is disabled.Check API-LOGIN, API-KEY, API access and IP allowlist.
Empty responseRequested data was not found or parameters are incorrect.Check required parameters and IDs.
No bid existsThe requested order does not exist.Check order id or hash.
Method not supportedThe selected API method is not enabled for this API key.Request access to the required method.
Direction not foundThe requested exchange direction is not available through API.Check direction availability and API permissions.

FAQ

How do I get API credentials?
Contact RateON support and provide your company name, use case, required API methods and server IP addresses. Credentials are issued after approval.
Can API access be restricted by IP?
Yes. API access can be limited to approved server IP addresses for security.
Should I call get_calc before creating an order?
Yes. We recommend calling get_calc immediately before create_bid to calculate the latest available exchange amount.
How can I track order status?
Use bid_info for one order, get_exchanges for order history, or pass callback_url when creating an order.

Ready to integrate?

Send your use case, required API methods and server IP addresses. We will prepare credentials and help with the first test request.

Contact support
RateON API integration
Choose file
Give
Get
Exchange
days
hours