Pular para o conteúdo

Get liquidations by payment Id

Requisição

Get a list of liquidations associated with a ripplenet_payment_id

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

Unique identifier for a RippleNet payment. Obtain this value by performing a GET liquidations operation.

curl -i -X GET \
  'https://docs.ripple.com/_mock/pt-br/products/payments-odl/api-docs/smart_liquidation/reference/openapi/liquidations/ripplenet-payment-id/{ripplenet_payment_id}' \
  -H 'Authorization: YOUR_API_KEY_HERE'

Respostas

Returns a list of liquidations associated with the given ripplenet_payment_id

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

Unique liquidation identifier

account_idstringobrigatório

The identifier of the account requesting the liquidation

created_atstring, (date-time)obrigatório

Date specified in ISO-8601 format, for example 2018-04-06T20:33:35Z

Exemplo:"2018-04-06T20:33:35Z"
modified_atstring, (date-time)obrigatório

Date specified in ISO-8601 format, for example 2018-04-06T20:33:35Z

Exemplo:"2018-04-06T20:33:35Z"
unique_reference_idstringobrigatório

The unique 32-character string representing the liquidation

ripplenet_payment_idstring, (uuid)

Unique identifier for a RippleNet payment

ripplenet_payment_created_atstring, (date-time)

Timestamp when the RippleNet payment was created

ripplenet_sender_addressstring

RippleNet address of the sender

Exemplo:"sf_gbp@rn.us.ca.san_francisco"
ripplenet_receiver_addressstring

RippleNet address of the receiver

Exemplo:"sf_gbp@rn.us.ca.san_francisco"
destination_amountnumber, (decimal)obrigatório

The total amount available for withdrawal after all fees have been collected

Exemplo:10000
destination_currencystringobrigatório

The 3-letter currency code of the destination currency

Exemplo:"usd"
destination_venuestringobrigatório

The name of the exchange where XRP is liquidated into fiat currency

Exemplo:"bitso"
estimate_typestring
Enum:"firm""indicative"
expires_atstring, (date-time)

The expiration time of the liquidation

Exemplo:"2018-04-06T20:33:35Z"
liquidation_sourcestringobrigatório
Enum:"xrrn""operator"
statusstringobrigatório
Enum:"COMPLETED""CREATED""FAILED""PARTIALLY_COMPLETED""QUEUED""STARTED"
trade_requestsArray of objectsobrigatório

An array of trade objects representing the trades of the liquidation

execution_strategyobject

The trade execution strategy

execution_summaryobjectobrigatório

The trade execution summary

trading_summaryobject

The trading summary

]
Resposta
[ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "account_id": "string", "created_at": "2018-04-06T20:33:35Z", "modified_at": "2018-04-06T20:33:35Z", "unique_reference_id": "string", "ripplenet_payment_id": "7bb2080a-9fd7-4f64-af96-119671501c9c", "ripplenet_payment_created_at": "2019-08-24T14:15:22Z", "ripplenet_sender_address": "sf_gbp@rn.us.ca.san_francisco", "ripplenet_receiver_address": "sf_gbp@rn.us.ca.san_francisco", "destination_amount": 10000, "destination_currency": "usd", "destination_venue": "bitso", "estimate_type": "firm", "expires_at": "2018-04-06T20:33:35Z", "liquidation_source": "xrrn", "status": "CREATED", "trade_requests": [ … ], "execution_strategy": { … }, "execution_summary": { … }, "trading_summary": { … } } ]