The RippleNet Server API provides you the ability to develop custom applications to manage or interact with your RippleNet instance.
Check out the best practices and tutorials.
The RippleNet Server API provides you the ability to develop custom applications to manage or interact with your RippleNet instance.
Check out the best practices and tutorials.
All API operations require a bearer access token for your target environment.<br>Learn how to request the access token.
The RippleNet Server API creates a dynamic [domainPrefix] that consists of {tenant}.{environment}.
Note: This example uses aperture as the tenant. Your tenant ID is different.
| Environment | Domaing Prefix | Domain | Base URL |
|---|---|---|---|
| Test | aperture.test | ripplexcurrent.com | https://aperture.test.ripplexcurrent.com |
| UAT | aperture.uat | ripplexcurrent.com | https://aperture.uat.ripplexcurrent.com |
| Production | aperture.prod | ripplexcurrent.com | https://aperture.prod.ripplexcurrent.com |
https://docs.ripple.com/_mock/products/payments-odl/api-docs/ripplenet/reference/openapi/
https://[domainPrefix].ripplexcurrent.com/v4/
Use these operations to audit your accounts.
| Operation | Method | Description |
|---|---|---|
| Get audits | GET | Gets an audit trail of user actions and configuration changes (to accounts, fees, and rates) on a RippleNet instance. |
| Get event trail for payment | GET | Gets an audit trail of a payment's state changes on a local RippleNet instance. |
Use these operations to view balances and statements for a ledger.
| Operation | Method | Description |
|---|---|---|
| Get balances | GET | Get balances for local and remote accounts owned by a RippleNet address. |
| Get ledger balances | GET | Get balances for ledger owned by a RippleNet address. |
| Get statement | GET | Gets a statement for an account that lists payments and transfers that impacted the account's balance during a specified date-time range. |
| Get statement by external account ID | GET | Gets a statement for an account that lists payments and transfers that impacted the account's balance during a specified date-time range. |
| Get ledger account statement | GET | Get statement for a specified Ledger Account |
Use these operations to perform beneficiary confirmations.
| Operation | Method | Description |
|---|---|---|
| Get account lookup by status | GET | Get Account Lookup entities by status and other filters. |
| Initiate account lookup | POST | Creates an Account Lookup request to validate a beneficiary's account details before sending a payment. |
| Complete account lookup | POST | Posts an Account Lookup response to validate a beneficiary's account details before payment. |
| Get account lookup by ID | GET | Gets an Account Lookup entity for its account_lookup_id value. |
Use these operations to view RippleNet Server health.
| Operation | Method | Description |
|---|---|---|
| Check health | GET | Gets the health status of the xCurrent server. |
| Check heartbeat | GET | Gets the health status of the xCurrent server's peers. |
Use these operations to manage exchange transfers.
| Operation | Method | Description |
|---|---|---|
| Get exchange transfers | GET | List all exchange transfers. |
| Execute exchange transfer | POST | Execute an exchange transfer to move funds from one of your accounts in one currency, to another one of your accounts in another currency. |
| Get exchange transfer quote | POST | Requests a quote for an exchange transfer. |
| Complete exchange transfer | POST | Updates the status of an exchange transfer to COMPLETED. Make this request once the exchange transfer has been made on both the ledger and on internal systems. |
| Get exchange transfer by ID | GET | Gets an exchange transfer by ID. |
The page number for paginated results. The value is zero-based, where 0 represents the first page.<br/> Set it to 0 to get the first page of results.
https://docs.ripple.com/_mock/products/payments-odl/api-docs/ripplenet/reference/openapi/exchange_transfers
https://[domainPrefix].ripplexcurrent.com/v4/exchange_transfers
curl -i -X GET \
'https://docs.ripple.com/_mock/products/payments-odl/api-docs/ripplenet/reference/openapi/exchange_transfers?page=0&size=20' \
-H 'Authorization: YOUR_API_KEY_HERE'Successfully retrieved exchange transfers.
Sort details of this page
Provides an array of exchange transfer objects.
Unique identifier of the exchange transfer.
State of the exchange transfer.
Indicates the exchange transfer's quoted FX rate type.
| Enum Value | Description |
|---|---|
| FIRM | A firm exchange rate ensures that the quoted and delivered transfer amounts are equal. |
| INDICATIVE | An indicative exchange rate allows for movement between quoted rate and transfer execution, such that the quoted amount and delivered amount may differ. |
RippleNet account name and address of the sender, in the format accountname@ripplenetaddress. For example, new_york@rn.us.ny.new_york.
RippleNet account name and address of the receiver, in the format accountname@ripplenetaddress. For example, new_york@rn.us.ny.new_york.
Describes an exchange rate used in an exchange transfer.
Counter currency for custom rate for the sending account.
ID set by the sender that is persisted on all fiat node instances that participated in the transfer.
Internal ID that the sender can optionally specify. Only visible to the sender. Only the sending fiat node instance stores this ID.
Custom information set by a RippleNet address involved in the exchange transfer.
RippleNet address of the fiat node instance that set the user information.
State of the exchange transfer set when the RippleNet address set the user information.
{ "first": true, "last": true, "number": 0, "numberOfElements": 0, "size": 0, "totalElements": 0, "totalPages": 0, "sort": [ { … } ], "content": [ { … } ] }
Execute an exchange transfer to move funds from one of your accounts in one currency (USD, for example) to another one of your accounts in another currency (EUR, for example) at an exchange rate set by your peer who maintains both of your accounts on their ledger. An exchange transfer enables you to fund a foreign currency account from your domestic currency account in bulk.
Before you make this request, you may want to use the Quote Exchange Transfer request to see a quote for the exchange transfer you want to make.
RippleNet account name and address of the sender, in the format accountname@ripplenetaddress. For example, new_york@rn.us.ny.new_york.
RippleNet account name and address of the receiver, in the format accountname@ripplenetaddress. For example, new_york@rn.us.ny.new_york.
Amount transferred, expressed in the curency of the account indicated by the amount_type value.
Amount type used for the exchange transfer.<p>To indicate that the amount is expressed in the currency of the account provided by the sender_address value, set to SENDER_AMOUNT.</p> <p>To indicate that the amount is expressed in the currency of the account provided by the receiver_address value, set to RECEIVER_AMOUNT.</p>
ID set by the sender that is persisted on all fiat node instances that participated in the transfer.
Internal ID that the sender can optionally specify. Only visible to the sender. Only the sending fiat node instance stores this ID.
https://docs.ripple.com/_mock/products/payments-odl/api-docs/ripplenet/reference/openapi/exchange_transfers/execute
https://[domainPrefix].ripplexcurrent.com/v4/exchange_transfers/execute
curl -i -X POST \
https://docs.ripple.com/_mock/products/payments-odl/api-docs/ripplenet/reference/openapi/exchange_transfers/execute \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"sender_address": "alias_usd_lon@rn.eur.uk.london",
"receiver_address": "conct_gbp_lon@rn.eur.uk.london",
"amount": 100,
"amount_type": "SENDER_AMOUNT",
"end_to_end_id": 378910,
"internal_id": 1987,
"user_info": {}
}'Successfully executed exchange transfer.
Unique identifier of the exchange transfer.
State of the exchange transfer.
Indicates the exchange transfer's quoted FX rate type.
| Enum Value | Description |
|---|---|
| FIRM | A firm exchange rate ensures that the quoted and delivered transfer amounts are equal. |
| INDICATIVE | An indicative exchange rate allows for movement between quoted rate and transfer execution, such that the quoted amount and delivered amount may differ. |
RippleNet account name and address of the sender, in the format accountname@ripplenetaddress. For example, new_york@rn.us.ny.new_york.
RippleNet account name and address of the receiver, in the format accountname@ripplenetaddress. For example, new_york@rn.us.ny.new_york.
Describes an exchange rate used in an exchange transfer.
Counter currency for custom rate for the sending account.
ID set by the sender that is persisted on all fiat node instances that participated in the transfer.
Internal ID that the sender can optionally specify. Only visible to the sender. Only the sending fiat node instance stores this ID.
Custom information set by a RippleNet address involved in the exchange transfer.
RippleNet address of the fiat node instance that set the user information.
State of the exchange transfer set when the RippleNet address set the user information.
{ "exchange_transfer_id": "e3b20ba4-28ed-4752-990d-e67887bb331e", "state": "EXECUTED", "type": "INDICATIVE", "sender_address": "sf@rn.us.ca.san_francisco", "receiver_address": "sf_gbp@rn.us.ca.san_francisco", "source_amount": 1, "destination_amount": 355, "source_currency": "USD", "destination_currency": "GBP", "fx_transfer_rate": { "rate": 0.89, "base_currency": "USD", "counter_currency": "GBP", "rate_type": "BUY" }, "end_to_end_id": "string", "internal_id": "string", "user_info": [ { … } ] }
RippleNet account name and address of the sender, in the format accountname@ripplenetaddress. For example, new_york@rn.us.ny.new_york.
RippleNet account name and address of the receiver, in the format accountname@ripplenetaddress. For example, new_york@rn.us.ny.new_york.
Amount transferred, expressed in the curency of the account indicated by the amount_type value.
Amount type of the exchange transfer.<p>To indicate that the amount is expressed in the currency of the account provided by the sender_address value, set to SENDER_AMOUNT.</p> <p>To indicate that the amount is expressed in the currency of the account provided by the receiver_address value, set to RECEIVER_AMOUNT.</p>
https://docs.ripple.com/_mock/products/payments-odl/api-docs/ripplenet/reference/openapi/exchange_transfers/quote
https://[domainPrefix].ripplexcurrent.com/v4/exchange_transfers/quote
curl -i -X POST \
https://docs.ripple.com/_mock/products/payments-odl/api-docs/ripplenet/reference/openapi/exchange_transfers/quote \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"sender_address": "alias_usd_lon@rn.eur.uk.london",
"receiver_address": "conct_gbp_lon@rn.eur.uk.london",
"amount": 100,
"amount_type": "SENDER_AMOUNT"
}'Successfully quoted exchange transfer.
Indicates the exchange transfer's quoted FX rate type.
| Enum Value | Description |
|---|---|
| FIRM | A firm exchange rate ensures that the quoted and delivered transfer amounts are equal. |
| INDICATIVE | An indicative exchange rate allows for movement between quoted rate and transfer execution, such that the quoted amount and delivered amount may differ. |
RippleNet account name and address of the sender, in the format accountname@ripplenetaddress. For example, new_york@rn.us.ny.new_york.
RippleNet account name and address of the receiver, in the format accountname@ripplenetaddress. For example, new_york@rn.us.ny.new_york.
Describes an exchange rate used in an exchange transfer.
Counter currency for custom rate for the sending account.
{ "type": "INDICATIVE", "sender_address": "alias_usd_lon@rn.eur.uk.london", "receiver_address": "conct_gbp_lon@rn.eur.uk.london", "source_amount": 100, "destination_amount": 89, "source_currency": "USD", "destination_currency": "GBP", "fx_transfer_rate": { "rate": 0.89, "base_currency": "USD", "counter_currency": "GBP", "rate_type": "BUY" } }
https://docs.ripple.com/_mock/products/payments-odl/api-docs/ripplenet/reference/openapi/exchange_transfers/{id}/complete
https://[domainPrefix].ripplexcurrent.com/v4/exchange_transfers/{id}/complete
curl -i -X POST \
'https://docs.ripple.com/_mock/products/payments-odl/api-docs/ripplenet/reference/openapi/exchange_transfers/{id}/complete' \
-H 'Authorization: YOUR_API_KEY_HERE'Successfully completed exchange transfer.
Unique identifier of the exchange transfer.
State of the exchange transfer.
Indicates the exchange transfer's quoted FX rate type.
| Enum Value | Description |
|---|---|
| FIRM | A firm exchange rate ensures that the quoted and delivered transfer amounts are equal. |
| INDICATIVE | An indicative exchange rate allows for movement between quoted rate and transfer execution, such that the quoted amount and delivered amount may differ. |
RippleNet account name and address of the sender, in the format accountname@ripplenetaddress. For example, new_york@rn.us.ny.new_york.
RippleNet account name and address of the receiver, in the format accountname@ripplenetaddress. For example, new_york@rn.us.ny.new_york.
Describes an exchange rate used in an exchange transfer.
Counter currency for custom rate for the sending account.
ID set by the sender that is persisted on all fiat node instances that participated in the transfer.
Internal ID that the sender can optionally specify. Only visible to the sender. Only the sending fiat node instance stores this ID.
Custom information set by a RippleNet address involved in the exchange transfer.
RippleNet address of the fiat node instance that set the user information.
State of the exchange transfer set when the RippleNet address set the user information.
{ "exchange_transfer_id": "e3b20ba4-28ed-4752-990d-e67887bb331e", "state": "EXECUTED", "type": "INDICATIVE", "sender_address": "sf@rn.us.ca.san_francisco", "receiver_address": "sf_gbp@rn.us.ca.san_francisco", "source_amount": 1, "destination_amount": 355, "source_currency": "USD", "destination_currency": "GBP", "fx_transfer_rate": { "rate": 0.89, "base_currency": "USD", "counter_currency": "GBP", "rate_type": "BUY" }, "end_to_end_id": "string", "internal_id": "string", "user_info": [ { … } ] }
https://docs.ripple.com/_mock/products/payments-odl/api-docs/ripplenet/reference/openapi/exchange_transfers/{id}
https://[domainPrefix].ripplexcurrent.com/v4/exchange_transfers/{id}
curl -i -X GET \
'https://docs.ripple.com/_mock/products/payments-odl/api-docs/ripplenet/reference/openapi/exchange_transfers/{id}' \
-H 'Authorization: YOUR_API_KEY_HERE'Successfully retrieved exchange transfer.
Unique identifier of the exchange transfer.
State of the exchange transfer.
Indicates the exchange transfer's quoted FX rate type.
| Enum Value | Description |
|---|---|
| FIRM | A firm exchange rate ensures that the quoted and delivered transfer amounts are equal. |
| INDICATIVE | An indicative exchange rate allows for movement between quoted rate and transfer execution, such that the quoted amount and delivered amount may differ. |
RippleNet account name and address of the sender, in the format accountname@ripplenetaddress. For example, new_york@rn.us.ny.new_york.
RippleNet account name and address of the receiver, in the format accountname@ripplenetaddress. For example, new_york@rn.us.ny.new_york.
Describes an exchange rate used in an exchange transfer.
Counter currency for custom rate for the sending account.
ID set by the sender that is persisted on all fiat node instances that participated in the transfer.
Internal ID that the sender can optionally specify. Only visible to the sender. Only the sending fiat node instance stores this ID.
Custom information set by a RippleNet address involved in the exchange transfer.
RippleNet address of the fiat node instance that set the user information.
State of the exchange transfer set when the RippleNet address set the user information.
{ "exchange_transfer_id": "e3b20ba4-28ed-4752-990d-e67887bb331e", "state": "EXECUTED", "type": "INDICATIVE", "sender_address": "sf@rn.us.ca.san_francisco", "receiver_address": "sf_gbp@rn.us.ca.san_francisco", "source_amount": 1, "destination_amount": 355, "source_currency": "USD", "destination_currency": "GBP", "fx_transfer_rate": { "rate": 0.89, "base_currency": "USD", "counter_currency": "GBP", "rate_type": "BUY" }, "end_to_end_id": "string", "internal_id": "string", "user_info": [ { … } ] }
Use these operations to configure fees.
| Operation | Method | Description |
|---|---|---|
| Get fees | GET | List all fees. |
| Create fee | POST | Creates a fee. |
| Get fee by ID | GET | Gets a fee by ID. |
| Update fee | PUT | Updates an existing fee. |
| Delete fee | DELETE | Deletes a fee. Once deleted, a fee cannot be accessed. |
Use these operations to manage payment expirations.
| Operation | Method | Description |
|---|---|---|
| Get payment expiry by ID | GET | Gets the time to live (ttl) of a payment expiry in seconds. |
| Update payment expiry | PUT | Updates the time to live (ttl) of a payment expiry in seconds. |
| Delete payment expiry | DELETE | Deletes a payment expiry. |
| Get payment expiries | GET | Returns all configured payment expiries. |
| Create payment expiry | POST | Creates a payment expiration window, or time to live (ttl), in seconds. |
Payout Method operations let receivers create and manage payout methods. Senders can generate quotes based on these receiver payout methods.
| Operation | Method | Description |
|---|---|---|
| Create payout method | POST | Creates a payout method. For example, LOCAL_RAILS. |
| Get payout methods | GET | Returns a list of payout methods created by a receiving partner. |
| Get payout method by ID | GET | Returns a payout method by its ID. |
| Update payout method | PUT | Updates a payout method. |
| Delete payout method | DELETE | Deletes a payout method. |
| Get all categories | GET | Returns all the payout method categories. |
Use these operations to configure your RippleNet platform accounts.
| Operation | Method | Description |
|---|---|---|
| Create platform | POST | Creates a RippleNet platform that represents a financial entity that holds accounts in the real world. For example, a Bank, Exchange, or Wallet provider. |
| Get all platforms | GET | Returns a list of all active RippleNet platforms. |
| Get platform by platform ID | GET | Get a RippleNet platform by its platform ID. |
| Update platform | PUT | Updates a RippleNet platform. |
| Delete platform by platform ID | DELETE | Deletes a RippleNet platform by its platform ID. |
| Create platform account | POST | Creates a RippleNet platform account, which represents a real-world account owned by a financial entity. |
| Get platform accounts | GET | Returns a paged list of all active RippleNet platform accounts. |
| Get platform account by platform account ID | GET | Gets a RippleNet platform account by its platform account ID. |
| Update platform account | PUT | Updates a RippleNet platform account. |
| Delete platform account by platform account ID | DELETE | Deletes a RippleNet platform account by its platform account ID. |
| Get platform accounts balances | GET | Get balances for local Platform Accounts |
| Get platform account statement | GET | Get statement for a specified Platform Account |
Use these operations to configure your RippleNet pool accounts.
| Operation | Method | Description |
|---|---|---|
| Get all pool accounts | GET | Returns a list of all pool accounts on a RippleNet node. |
| Get pool account by pool account ID | GET | Get a pool account by its pool account ID. |
Use these operations to manage quote expirations.
| Operation | Method | Description |
|---|---|---|
| List quote expiries | GET | Returns all configured quote expiries. |
| Create quote expiry | POST | Creates a quote expiration window, or time to live (ttl), in seconds. |
| Get quote expiry | GET | Gets the configured quote expiration window, or time to live (ttl), in seconds. |
| Update quote expiry | PUT | Sets a quote expiration window, or time to live (ttl), in seconds. |
Use these operations to manage your quotes.
| Operation | Method | Description |
|---|---|---|
| Accept quote | POST | Accepts a quote ID to start the payment process. |
| Get quotes | GET | Gets a list of quotes. |
| Get quote by quote ID | GET | Gets a quote by ID. |
| Create quote collection | POST | Creates a collection of quotes for a proposed payment. |
| Get quote collection by ID | GET | Gets a quote collection that was created for a proposed payment. |
Use these operations to manage your rates.
| Operation | Method | Description |
|---|---|---|
| Get rates | GET | Gets a list of configured exchange rates. |
| Create rate | POST | Creates an exchange rate for a specified currency pair. |
| Get rate by ID | GET | Gets a configured exchange rate by ID. |
| Update rate | PUT | Updates an existing exchange rate. |
| Delete rate | DELETE | Deletes an exchange rate. Once deleted, an exchange rate cannot be accessed. |
Use these operations to interact with your payment requests.
| Operation | Method | Description |
|---|---|---|
| Get requests for payment | GET | Gets requests for payment that match the query parameters. |
| Send request for payment | POST | Sends a new request for payment. |
| Get request for payment by ID | GET | Gets a request for payment by request for payment ID. |
| Accept request for payment | POST | Accepts a request for payment. |
| Fail request for payment | POST | Fails a request for payment. |
Use these operations to manage your transfers.
| Operation | Method | Description |
|---|---|---|
| Get transfers | GET | Gets a list of transfers. |
| Get transfer estimate | GET | Get an estimate of the fee to make an "outbound" transfer from an exchange (connected to xRapid) to an another account outside of RippleNet (such as a bank account). |
| Get transfer by ID | GET | Gets a transfer by ID. |
| Execute transfer | POST | Transfers funds between accounts. |
| Complete transfer | POST | Updates the state of a transfer to COMPLETED. |
| Add transfer labels | PUT | Adds a list of labels to the transfer. To retrieve transfers by label, see Get transfers |
| Delete transfer labels | DELETE | Deletes one or more existing labels from the transfer. |