Skip to main content
This page lists the fields that changed in the v2 update and how to move an existing integration. The v1 reference is available by switching to v1 (legacy) in the version selector.
v2 fields are returned to everyone. v1 fields are only returned to accounts where v1 has been enabled, which you can ask your account manager for while you migrate. v1 request fields are still accepted, so you can migrate responses first and requests second.

Naming currencies

crypto becomes asset plus network. Fiat codes are unchanged and are asset values without a network. The current list is in supported currencies.

Creating a quote

A buy becomes a quote whose origin is fiat and whose destination is a stablecoin. A sell is the reverse. The amount you want to fix goes on the matching leg, and exactly one leg carries an amount. Each leg carries its country.
Fiat legs must not carry a network. The settlement inputs move under a settlement object with the same paths the response uses: twoWaySettlementType becomes settlement.timing and twoWaySettlementDateOffset becomes settlement.valueDateOffset. Every other request field (orderType, limitNetPrice, timeInForceStartsAt, timeInForceEndsAt, userId) keeps its name. When creating an order, the account Rio pays out to is settlement.payout.addressId or settlement.payout.bankAccountId (v1: userAddressId and payoutBankAccountId). A stablecoin on both legs is a swap, which has no v1 equivalent.

Quote and order fields

id, status, quoteId, userId, expiresAt, marketPrice, netPrice, orderType, limitNetPrice, clientReferenceId, notes and the createdAt and updatedAt timestamps are unchanged. Prices are expressed as units of the destination asset per unit of the origin asset, so destination.amount = origin.amount * netPrice. Pass limitNetPrice in the same orientation.

Addresses, bulk payments and payouts

Crypto addresses and bulk crypto payments are created with asset and network instead of crypto, and return both fields. Their responses still include crypto. The memo of a Stellar address is registered in the memo field. Bank accounts, bank payments and bank payouts are unchanged and keep using fiat, whose values are the same codes used as fiat asset values.

Filtering orders

The orders list accepts asset, an optional network and flow in addition to the crypto, fiat and side filters.

Onboarding users

A user now has one onboarding per product code, which is a product in a country such as stablecoin-fx-mx. GET /api/users/products lists the codes available to you. You send the answers and documents for that onboarding, record the terms acceptance and submit it for review. Creating and retrieving users is unchanged. POST /api/users and POST /api/users/link also accept an optional productCode. GET /api/users/{id}/onboarding/{productCode} returns the status of the onboarding (incomplete, submitted, approved or rejected), every requirement and what is still missing. Answers can be corrected until the onboarding is submitted, and the submit is refused with a 409 while anything is missing. Information sent through the v1 endpoints cannot be changed, and v1 has no list of requirements. The v1 endpoints are still accepted.

Checklist

1

Read the new fields

Switch your parsing of quotes, orders and orders webhooks to flow, origin, destination, pricingDetails and settlement using the table above. You can compare both side by side while v1 fields are enabled on your account.
2

Send the new fields

Replace side, crypto, fiat, amountFiat and amountCrypto in quote requests with origin and destination legs, and replace crypto with asset and network when creating addresses and bulk crypto payments.
3

Drop the v1 fields

Once nothing reads them, ask your account manager to disable v1 fields on your account.
Disclaimer: All technical documentation is subject to the terms and conditions, which apply supplementarily and take precedence over the documentation.