Pular para o conteúdo

Create quote expiry

Requisição

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

Segurança
Bearer
Corpoapplication/jsonobrigatório
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.

Exemplo:5900
sending_partnerstring

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

Exemplo:"rn.us.ca.san_francisco"
receiving_partnerstring

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

Exemplo:"rn.us.tx.austin"
currencystring

currency of the exchange rate.

Exemplo:"USD"
idinteger

id of quote expiry object

Exemplo:2
curl -i -X POST \
  https://docs.ripple.com/_mock/pt-br/products/payments-odl/api-docs/ripplenet/reference/openapi/config/payments/quote_expiries \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "quote_ttl": 5900,
    "sending_partner": "rn.us.ca.san_francisco",
    "receiving_partner": "rn.us.tx.austin",
    "currency": "USD",
    "id": 2
  }'

Respostas

Successfully created the quote expiration window.

Corpoapplication/json
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.

Exemplo:5900
sending_partnerstring

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

Exemplo:"rn.us.ca.san_francisco"
receiving_partnerstring

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

Exemplo:"rn.us.tx.austin"
currencystring

currency of the exchange rate.

Exemplo:"USD"
idinteger

id of quote expiry object

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