Skip to main content

Field Conventions & Glossary

Canonical definitions used across API documentation.

Request Headers​

HeaderRequiredDefinition
x-api-keyYesAPI-key issued in the app ("Business" section). The organization is resolved from the request host
Content-TypeYes (POST)application/json for create requests

Amount & Currency​

TermDefinition
amountString of an integer in minor units (e.g. cents, smallest token fraction)
amount_with_feeAmount plus applied fee (minor units)
currencyISO-like currency / token code (e.g. USDT)
currency_destDestination currency for conversion (FX). Optional; defaults to currency

Identifiers​

TermDefinition
idInternal system UUID of transaction
txidClient-supplied string identifying one business operation; UUID is a convenient choice, not a required format

Routing parameters​

TermDefinition
routeProcessing path alias configured for API key
envprod (default). Preserve this value when opening and confirming the request.

Status Lifecycle​

StatusMeaning
createdAccepted, awaiting processing
newInitial state before processing starts
authorizingAuthorization in progress
pre_authorized_3dsAwaiting 3DS authentication
action_requiredAwaiting an additional action (3DS / extra authorization)
chargingIn progress (authorization / funding)
payment_suspendedInbound transaction temporarily suspended
payout_suspendedOutbound transaction temporarily suspended
chargedSuccessfully completed (terminal)
reversedCharge reversed (terminal)
refundedRefunded (terminal)
rejectedIrrecoverably failed (terminal)
failedFailed (terminal)

Terminal states are charged, reversed, refunded, rejected, failed. The most common happy path is created → charging → charged.

Time Fields​

FieldDefinition
startedISO timestamp when processing began
finishedISO timestamp when processing completed; determine the outcome from status

Money Storage Objects​

FieldDefinition
networkBlockchain network (ETH, TRX, etc.)
typeInstrument type (bank_card, p2p_proxy, etc.)
wallet_idInternal wallet identifier (payout/payment target)
cardnumberVirtual card PAN (masked in some responses)
cvvVirtual card security code (never log in plaintext)
exp_month / exp_yearCard expiry values (string, zero padded)
cardholderCardholder name (ASCII or UTF-8)

Error Fields​

FieldDefinition
error_descriptionHuman-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 (Informational)​

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.