Skip to main content
POST
Execute a pending USDT trade on a drain

Authorizations

Api-Key
string
header
required

Headers

Idempotency-Key
string
required

Path Parameters

customerID
string
required

A UUID that uniquely identifies a resource

Required string length: 1 - 42
Pattern: [a-z0-9]*
liquidationAddressID
string
required

A UUID that uniquely identifies a resource

Required string length: 1 - 42
Pattern: [a-z0-9]*
drainID
string
required

A UUID that uniquely identifies a resource

Required string length: 1 - 42
Pattern: [a-z0-9]*

Response

Drain with trade execute at market rate enabled successfully

id
string
required
read-only

A UUID that uniquely identifies a resource

Required string length: 1 - 42
Pattern: [a-z0-9]*
amount
string
required

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

customer_id
string
required
read-only

A UUID that uniquely identifies a resource

Required string length: 1 - 42
Pattern: [a-z0-9]*
liquidation_address_id
string
required
read-only

A UUID that uniquely identifies a resource

Required string length: 1 - 42
Pattern: [a-z0-9]*
currency
enum<string>
required
Available options:
brl,
cop,
eur,
eurc,
gbp,
mxn,
pyusd,
usd,
usdb,
usdc,
usdt
state
enum<string>
required
read-only

Status of the drain

Available options:
awaiting_funds,
in_review,
funds_received,
payment_submitted,
payment_processed,
canceled,
error,
undeliverable,
returned,
refund_in_flight,
refund_failed,
refunded
created_at
string<date-time>
read-only

Time of creation of the drain

updated_at
string<date-time>
read-only

Time of last update of the drain

deposit_tx_hash
string
read-only

Hash of the Liquidation Address deposit that triggered this drain

from_address
string
read-only

The blockchain address that sent funds to the Liquidation Address

source_payment_rail
string
read-only

The source payment rail where the funds originated from

destination
object
read-only

Destination information of a drain.

destination_tx_hash
string
read-only

Hash of withdrawal of funds to the destination

refund_tx_hash
string
read-only

Hash of refund, if the drain has been returned

return_details
object
read-only

Return information, if the drain has been returned.

receipt
object
read-only

Receipt information of a drain.

exchange_details
object
read-only

Exchange details for the associated trade, if applicable.