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/ripplenet/
https://[domainPrefix].ripplexcurrent.com/v4/
RippleNet account name and address of the sender.
Format: accountname@ripplenetaddress
Example: new_york@rn.us.ny.new_york
RippleNet account name and address of the receiver.
Format: accountname@ripplenetaddress
Example: new_york@rn.us.ny.new_york
Amount to be sent or received, depending on the quote_type.
Use this table to determine what amount to assign.
Example: "1"
| Quote type | Amount |
|---|---|
| SENDER_AMOUNT | Amount to be sent by the payment originator |
| SENDER_INSTITUTION_AMOUNT | Set to SENDER_INSTITUTION_AMOUNT to calculate the quote based on the amount to be sent, plus any fees collected by the sending institution |
| RECEIVER_AMOUNT | Amount to be received by the payment beneficiary |
| RECEIVER_INSTITUTION_AMOUNT | Set to RECEIVER_INSTITUTION_AMOUNT to calculate the quote based on the amount to be received, minus any fees collected by the receiving institution |
Currency code of the amount to be sent or received, depending on the quote_type.
Use this table to determine what currency code to assign.
Example: USD
| Quote type | Currency code description |
|---|---|
| SENDER_AMOUNT | Specify the currency code for the sending currency, for example USD |
| SENDER_INSTITUTION_AMOUNT | Specify the currency code for the sending currency, for example USD |
| RECEIVER_AMOUNT | Specify the currency code for the receiving currency, for example USD |
| RECEIVER_INSTITUTION_AMOUNT | Specify the currency code for the receiving currency, for example USD |
Specifies how to calculate the quote.
Example: SENDER_AMOUNT
| Enum Value | Description |
|---|---|
| SENDER_AMOUNT | Quote based on the amount the payment originator or originating institution wants to send |
| SENDER_INSTITUTION_AMOUNT | Quote based on the amount (to debit the originator) is |
| RECEIVER_AMOUNT | Quote based on the amount the payment beneficiary or beneficiary institution should receive |
| RECEIVER_INSTITUTION_AMOUNT | The amount (to credit the beneficiary) is |
Currency code of the sender or receiver based on quote_type.
If provided, you can use this to filter the options for quotes.
Custom fee for the sending account.
Setting this field overrides all fees configured on the sender's RippleNet instance.
JSON request object to specify a custom exchange rate during quote collection generation.
Order type for the exchange rate. Valid values are sell or buy. <p><ul><li>When rate_type = buy, base_currency is source ccy and counter_currency is destination ccy.</li> <li>When rate_type = sell, base_currency is destination ccy and counter_currency is source ccy.</li> </ul></p>
Custom route that quote must follow.
Provide an array of RippleNet address strings that convey the route the quote must follow.
Example: g.us.ca.san_francisco
Payout method for the quote.
Senders can use this field to define the payout method that the receiver should use to deliver the payment to end customer.
On-Demand Liquidity (ODL) receivers should set payment_method to the outlet_id or the string none (not an empty value) to keep funds at the destination exchange when paying out to a local rail.
Caution: The existing quote parameter is named payment_method while elsewhere it is payout_method.
Enable this flag to generate quotes using payout methods configured by the receiver.
When true, this flag tells RippleNet to provide a full quote as if the payment originates in the specified source fiat currency.
The quote for the source exchange excludes trading fees.
On execution, the source exchange trade is skipped, and XRP is withdrawn from the source exchange as the first step.
When true, this flag tells RippleNet to ignore cached value for path finding and liquidity path finding.
Force performing new path finding and liquidity path finding.
Category the payout method will be associated with. Defaults to OTHER if not specified.
| Enum Value | Description |
|---|---|
| REAL_TIME_GROSS_SETTLEMENT_SYSTEM | Real-time gross settlement system |
| REAL_TIME_NET_SETTLEMENT_SYSTEM | Real-time net settlement system |
| MASS_NET_PAYMENT_SYSTEM | Mass net payment system |
| BOOK_TRANSFER | Book transfer |
| CASH_PAYOUT | Cash payout |
| WALLET_PAYMENT | Wallet payment |
| OTHER | Other |
RippleNet account name and address of the sender owned account at receiver to be used for failure conversion (in case of payment failure).
Format: accountname@ripplenetaddress
Example: new_york@rn.us.ny.new_york
Flag for truncating the total amount of quotes to a maximum amount after sorting and filters are applied. Optional.
https://docs.ripple.com/_mock/products/payments-odl/api-docs/ripplenet/ripplenet/v4/orchestration/payment/quote_collections
https://[domainPrefix].ripplexcurrent.com/v4/v4/orchestration/payment/quote_collections
curl -i -X POST \
https://docs.ripple.com/_mock/products/payments-odl/api-docs/ripplenet/ripplenet/v4/orchestration/payment/quote_collections \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"sending_address": "sf@rn.us.ca.san_francisco",
"receiving_address": "sf_gbp@rn.us.ca.san_francisco",
"amount": "1",
"currency": "USD",
"quote_type": "SENDER_AMOUNT",
"sender_or_receiver_currency": "USD",
"custom_fee": 0,
"custom_rate": {
"rate": 0,
"base_currency": "string",
"counter_currency": "string",
"rate_type": "buy"
},
"quote_route": [
"rn.us.ca.san_francisco",
"rn.us.tx.austin",
"rn.us.ny.new_york"
],
"payment_method": "string",
"enable_quote_per_payout_method": true,
"digital_asset_origination": false,
"force_path_finding_and_liquidity_path_finding": false,
"payout_method_category": "BOOK_TRANSFER",
"sender_segregated_account": "conct_php_receiver_coins_sender@receiver",
"quote_limit": 0,
"quote_filter_types": [
"LIQUIDITY_WARNINGS"
]
}'Successfully returned quote collection.
Unique identifier of the quote collection.
Unique identifier for the quote.
Date and time at which the quote was created, as an ISO-8601 timestamp in UTC.
Date and time after which the quote and its pricing expire, as an ISO-8601 timestamp in UTC. Defaults to 300s/300000ms.
Indicates how the amount field should be treated for calculating quote values. Valid values are SENDER_AMOUNT, SENDER_INSTITUTION_AMOUNT, RECEIVER_INSTITUTION_AMOUNT, and RECEIVER_AMOUNT.
Indicates whether a quote's pricing is INDICATIVE or FIRM. An INDICATIVE quote allows for price movements between quote issuance and payment execution, such that the quoted amount and delivered amount may differ. A FIRM quote ensures that the quoted and delivered payment amounts are equal. Defaults to FIRM.
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.
Currency code that can be used to filter quotes at the opposite end of the quote request. For example, you can filter by this currency code to find the receiving currency for a quote with a SENDER_AMOUNT quote_type. If not sent in the request, this field value is set to null.
Transfer and exchange elements. A transfer element represents a movement of funds between two accounts. An exchange element represents the exchange of currencies between two accounts.
Unique identifier for the quote element.
Type of quote element. Valid values are EXCHANGE, TRANSFER, EXCHANGE_TRADE, and CRYPTO_TRANSFER. <p><ul> <li>TRANSFER represents the movement of funds between two accounts.</li> <li>EXCHANGE represents the exchange of currencies between two accounts.</li> <li>EXCHANGE_TRADE represents the exchange of fiat to digital currency on a digital exchange.</li> <li>CRYPTO_TRANSFER represents the movement of digital funds between two digital exchanges.</li> </ul></p>
Order of each quote element along the liquidity path. If a quote includes five quote elements, each one is enacted according to its quote_element_order number to make the proposed payment.
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.
Fees the sender is charging. When quote_element_type is set to EXCHANGE, this field value is always set to 0.
Fees the receiver is charging. When quote_element_type is set to EXCHANGE, this field value is always set to 0.
Currency code of the sending amount. Included in quote elements with quote_element_type set to EXCHANGE.
Currency code of the receiving amount. Included in quote elements with quote_element_type set to EXCHANGE.
The details of an FX Rate for a quote or payment.
Triggered when a quote causes an account to go below its minimum_allowed_balance. Otherwise, this field value is set to null.
Quote path that failed.
RippleNet account name and address of the source account, in the format accountname@ripplenetaddress. For example, new_york@rn.us.ny.new_york.
RippleNet account name and address of the destination account, in the format accountname@ripplenetaddress. For example, new_york@rn.us.ny.new_york.
Unique identifier for an account liquidity relationship.
{ "quote_collection_id": "480e3a6f-3bcd-48cd-9ce9-9d940aa3c9c6", "quotes": [ { … } ], "quote_errors": [ { … } ] }
https://docs.ripple.com/_mock/products/payments-odl/api-docs/ripplenet/ripplenet/v4/orchestration/info
https://[domainPrefix].ripplexcurrent.com/v4/v4/orchestration/info
curl -i -X GET \
https://docs.ripple.com/_mock/products/payments-odl/api-docs/ripplenet/ripplenet/v4/orchestration/info \
-H 'Authorization: YOUR_API_KEY_HERE'{ "name": "Integration Module", "version": "1.2.0" }