v1

latestOpenAPI 3.0.02026-08-06102185472.3 KB
Quote expiration

Create quote expiry

Creates a quote expiration window, or time to live (ttl), in seconds.

post/config/payments/quote_expiries

Request body

quote_ttlnumber

Quote expiration window, or time to live (ttl), in seconds. To calculate the quote expiration date, xCurrent adds this value to the quote creation timestamp.

sending_partnerstring

RippleNet address of the sender, in the format ripplenetaddress. For example, rn.us.sf.san_francisco.

receiving_partnerstring

RippleNet address of the receiver, in the format ripplenetaddress. For example, rn.us.ny.new_york.

currencystring

currency of the exchange rate.

idinteger

id of quote expiry object

Example request

{
  "quote_ttl": 5900,
  "sending_partner": "rn.us.ca.san_francisco",
  "receiving_partner": "rn.us.tx.austin",
  "currency": "USD",
  "id": 2
}

Response

Successfully created the quote expiration window.

quote_ttlnumber

Quote expiration window, or time to live (ttl), in seconds. To calculate the quote expiration date, xCurrent adds this value to the quote creation timestamp.

sending_partnerstring

RippleNet address of the sender, in the format ripplenetaddress. For example, rn.us.sf.san_francisco.

receiving_partnerstring

RippleNet address of the receiver, in the format ripplenetaddress. For example, rn.us.ny.new_york.

currencystring

currency of the exchange rate.

idinteger

id of quote expiry object

Example response

{
  "quote_ttl": 5900,
  "sending_partner": "rn.us.ca.san_francisco",
  "receiving_partner": "rn.us.tx.austin",
  "currency": "USD",
  "id": 2
}