Pular para o conteúdo

Get payment node status

Requisição

Senders can query for the RippleNet instances (in a given payment chain) that have payments in the LOCKED state. This information is only stored on the sender's RippleNet instance.

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

Unique identifier of the payment for which to get states on each node participating in the payment.

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

Respostas

Successfully retrieved payment states on each node participating in the payment.

Corpoapplication/json
Array [
paymentIdstring, (uuid)obrigatório

Unique identifier of the payment.

Exemplo:"efdf213c-9f64-43f7-80ab-15e7b4d139ae"
paymentStatestringobrigatório

State of the payment. This API only recognizes payments in the LOCKED state. For more on payment states, see Payment States in the RippleNet Developer Guide.

Enum:"QUOTED""ACCEPTED""AWAITING_COLLECTION""COMPLETED""EXECUTED""FAILED""FORWARDED""LOCK_DECLINED""LOCKED""PREPARED"
Exemplo:"LOCKED"
nodeAddressstringobrigatório

RippleNet address of the participating node reporting the payment state.

Exemplo:"rn.eur.uk.london"
pathOrderinteger, (int32)obrigatório

Each node in the payment chain participates in sequence. Provides the order in the sequence in which this node participates.

Exemplo:3
]
Resposta
[ { "paymentId": "efdf213c-9f64-43f7-80ab-15e7b4d139ae", "paymentState": "LOCKED", "nodeAddress": "rn.eur.uk.london", "pathOrder": 3 } ]