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 |
Creates a collection of quotes that can be used to return a payment.
The receiver can make this request while the payment is in states EXECUTED, COMPLETED, or FAILED. When the returned payment is successfully moved to the COMPLETED state, the original payment is moved to the RETURNED state.
Note: Currently, when making a Return Payment to a RippleNet Cloud account on a RippleNet ledger, the RippleNet user must lock and complete the payment. This means that the RippleNet user takes all action on the return: Get and Accept Quote, Lock, Settle, and Complete payment.
ID of the original payment to be returned.
Object with key and value pairs that describe the reason the payment is being returned.
The fields should contain the following key values: reason, code, and type.
These values are included in a payment created from a quote in the response. They are included in the user_info.returned array for the node sending the return payment.
Amount type of the return payment.<p>To indicate that the sender of the return payment will send the amount it received, set to TOTAL_RECEIVED.</p><p>To indicate that the sender of the return payment will send the amount it received minus its receiving fees, set to TOTAL_RECEIVED_MINUS_FEES.</p>
Custom fee charged and collected by the sending account. Setting this field overrides all applicable 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>
When true, this flag tells RippleNet to ignore cached value for path finding and liquidity path finding and perform new path finding and liquidity path finding.
curl -i -X POST \
https://docs.ripple.com/_mock/products/payments-odl/api-docs/ripplenet/ripplenet/quote_collections/return \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"original_payment_id": "d485f100-2af7-4e48-9ab1-3c7e28775691",
"return_reasons": {
"REASON": "Wrong receiving amount",
"TYPE": "Account Error",
"CODE": "A-999"
},
"return_amount_type": "TOTAL_RECEIVED_MINUS_FEES",
"custom_fee": 0,
"custom_rate": {
"rate": 0,
"base_currency": "string",
"counter_currency": "string",
"rate_type": "buy"
},
"force_path_finding_and_liquidity_path_finding": false,
"receiver_address": "sf@rn.us.ca.san_francisco"
}'Successfully returned a collection of quotes to return a payment.
Unique identifier of the quote collection.
For more information on quote elements, see Create quote collections.
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.
Indicates how the amount field should be treated for calculating quote values.
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.
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.<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.
JSON object containing payment method metadata.
Details about the payout method.
Category of the payout method. Defaults to <code>OTHER</code> if not specified.
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": "4711728c-cd35-49ec-96a5-72732b4333ec", "quotes": [ { … } ], "quote_errors": [ { … } ] }
Creates a quote collection containing at most one quote that can be used to reverse a payment.
The receiver can make this request while the payment is in states EXECUTED, COMPLETED, or FAILED. When the returned payment is successfully moved to the COMPLETED state, the original payment is moved to the RETURNED state.
Note: Currently, when making a Reversal Payment to a RippleNet Cloud account on a RippleNet ledger, the RippleNet user must lock and complete the payment. This means that the RippleNet user takes all action on the reverse: Get and Accept Quote, Lock, Settle, and Complete payment.
ID of the original payment to be reversed.
A structured object detailing reasons for a payment reversal.
The code indicating the reason for payment reversal. For code descriptions and error handling information, see Returns and failure codes.
curl -i -X POST \
https://docs.ripple.com/_mock/products/payments-odl/api-docs/ripplenet/ripplenet/quote_collections/reversal \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"original_payment_id": "d485f100-2af7-4e48-9ab1-3c7e28775691",
"reversal_reason": {
"code": "RB001",
"description": "No account / Unable to locate account"
}
}'Successfully returned a collection of quotes to return a payment.
Unique identifier of the quote collection.
For more information on quote elements, see Create quote collections.
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.
Indicates how the amount field should be treated for calculating quote values.
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.
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.<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.
JSON object containing payment method metadata.
Details about the payout method.
Category of the payout method. Defaults to <code>OTHER</code> if not specified.
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": "4711728c-cd35-49ec-96a5-72732b4333ec", "quotes": [ { … } ], "quote_errors": [ { … } ] }
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" }