Field Conventions & Glossary
Canonical definitions used across API documentation.
| Header | Required | Definition |
|---|
| x-api-key | Yes | API-key issued in the app ("Business" section). The organization is resolved from the request host |
| Content-Type | Yes (POST) | application/json for create requests |
Amount & Currency
| Term | Definition |
|---|
| amount | String of an integer in minor units (e.g. cents, smallest token fraction) |
| amount_with_fee | Amount plus applied fee (minor units) |
| currency | ISO-like currency / token code (e.g. USDT) |
| currency_dest | Destination currency for conversion (FX). Optional; defaults to currency |
Identifiers
| Term | Definition |
|---|
| id | Internal system UUID of transaction |
| txid | Client-supplied string identifying one business operation; UUID is a convenient choice, not a required format |
Routing parameters
| Term | Definition |
|---|
| route | Processing path alias configured for API key |
| env | prod (default). Preserve this value when opening and confirming the request. |
Status Lifecycle
| Status | Meaning |
|---|
| created | Accepted, awaiting processing |
| new | Initial state before processing starts |
| authorizing | Authorization in progress |
| pre_authorized_3ds | Awaiting 3DS authentication |
| action_required | Awaiting an additional action (3DS / extra authorization) |
| charging | In progress (authorization / funding) |
| payment_suspended | Inbound transaction temporarily suspended |
| payout_suspended | Outbound transaction temporarily suspended |
| charged | Successfully completed (terminal) |
| reversed | Charge reversed (terminal) |
| refunded | Refunded (terminal) |
| rejected | Irrecoverably failed (terminal) |
| failed | Failed (terminal) |
Terminal states are charged, reversed, refunded, rejected, failed. The most common happy path is created → charging → charged.
Time Fields
| Field | Definition |
|---|
| started | ISO timestamp when processing began |
| finished | ISO timestamp when processing completed; determine the outcome from status |
Money Storage Objects
| Field | Definition |
|---|
| network | Blockchain network (ETH, TRX, etc.) |
| type | Instrument type (bank_card, p2p_proxy, etc.) |
| wallet_id | Internal wallet identifier (payout/payment target) |
| cardnumber | Virtual card PAN (masked in some responses) |
| cvv | Virtual card security code (never log in plaintext) |
| exp_month / exp_year | Card expiry values (string, zero padded) |
| cardholder | Cardholder name (ASCII or UTF-8) |
Error Fields
| Field | Definition |
|---|
| error_description | Human-readable failure reason (non-stable text) |
Idempotency Guidance
Use a unique (idempotent) txid per business operation and persist it before sending. The value is a string; UUID generation is convenient but UUID syntax is not required. Retry the same instruction with the same identifier in the same account. Do not reuse it for a different recipient or amount. Recover the original operation after a timeout; a retry must not silently become a new payment.
Polling Strategy
Poll reads with bounded backoff, for example 1s → 2s → 4s → 8s, with a 30s interaction budget. Stop at a known final status or when the budget expires. On timeout report a pending/unknown result and keep the original id/txid. Unknown statuses are not success. See errors and retries.
Webhooks indicate state change but are not authoritative. Always confirm via GET Transaction.
Amount scale
Amounts are strings of integers in minor units, not floating-point values. Obtain decimals for the currency and network from GET https://app.heth.me/api/v1/contracts?env=prod. USDT/ETH and USDT/TRX currently use 6 decimals: 1 USDT = "1000000", 0.25 USDT = "250000". ETH has 18 decimals; this does not apply to every token on Ethereum. An unknown scale must stop amount conversion. See the API schema.