Pular para o conteúdo

Update payment expiry

Requisição

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

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

Provide the payment_expiry_id of the payment expiry you want to update.

Corpoapplication/jsonobrigatório
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"
curl -i -X PUT \
  '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' \
  -H 'Content-Type: application/json' \
  -d '{
    "payment_ttl": 5900,
    "sending_partner": "rn.us.ca.san_francisco",
    "receiving_partner": "rn.us.tx.austin",
    "currency": "USD"
  }'

Respostas

Successfully updated 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" }