v1

latestOpenAPI 3.0.22026-07-26128245430.3 KB
Liquidation Addresses

Execute a pending USDT trade on a drain

Force-executes a stuck USDT-to-USD trade at the current market rate. The drain must have a pending trade (i.e. appear in GET /liquidation_addresses/drains/pending).

After execution, the drain will continue processing normally with the executed market rate.

post/customers/{customerID}/liquidation_addresses/{liquidationAddressID}/drains/{drainID}/execute

Headers

Idempotency-Keystring required

Response

Drain with trade execute at market rate enabled successfully

idstring required

A UUID that uniquely identifies a resource

amountstring required

Amount of the drain, represented as a dollar denominated string. Examples include "100.25", "0.1", "1.234567", "1.01" etc.

customer_idstring required

A UUID that uniquely identifies a resource

liquidation_address_idstring required

A UUID that uniquely identifies a resource

currency'brl' | 'cop' | 'eur' | 'eurc' | 'gbp' | 'mxn' | 'pyusd' | 'usd' | 'usdb' | 'usdc' | 'usdt' required
state'awaiting_funds' | 'in_review' | 'funds_received' | 'payment_submitted' | 'payment_processed' | 'canceled' | 'error' | 'undeliverable' | 'returned' | 'refund_in_flight' | 'refund_failed' | 'refunded' required
created_atstring date-time

Time of creation of the drain

updated_atstring date-time

Time of last update of the drain

deposit_tx_hashstring

Hash of the Liquidation Address deposit that triggered this drain

from_addressstring

The blockchain address that sent funds to the Liquidation Address

source_payment_railstring

The source payment rail where the funds originated from

destination_tx_hashstring

Hash of withdrawal of funds to the destination

refund_tx_hashstring

Hash of refund, if the drain has been returned