Pular para o conteúdo

Get payment expiry by ID

Requisição

Gets the time to live (ttl) of a payment expiry in seconds.

Segurança
Bearer
Caminho
payment_expiry_idstring, (uuid)obrigatório

The ID of the payment expiry you want returned.

curl -i -X GET \
  'https://docs.ripple.com/_mock/pt-br/products/payments-odl/api-docs/ripplenet/reference/openapi/config/payments/payment_expiries/{payment_expiry_id}' \
  -H 'Authorization: YOUR_API_KEY_HERE'

Respostas

Successfully returned a payment expiry.

Corpoapplication/json
payment_ttlnumber

Payment expiration window, or time to live (ttl), in seconds. To calculate the payment expiration date, xCurrent adds this value to the payment 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"
expiry_idstring, (uuid)

id of payment expiry object

Exemplo:"4711728c-cd35-49ec-96a5-72732b4333ec"
Resposta
{ "payment_ttl": 5900, "sending_partner": "rn.us.ca.san_francisco", "receiving_partner": "rn.us.tx.austin", "currency": "USD", "expiry_id": "4711728c-cd35-49ec-96a5-72732b4333ec" }