Skip to main content

Aggregated Payment (Merchant Collection by Card Number)

Example: "1000000" is 1 USDT when decimals=6. Replace all placeholders with verified recipient and instrument details. Sending this request can move real funds. Review and explicitly authorize the operation before submitting it. See Quick Start.

This transaction type enables a payment service Aggregator to accept customer payments on behalf of an integrated Merchant. Funds are debited from the Payer and distributed between the Merchant (net of the Aggregator fee) and the Aggregator (fee portion) automatically.

Business Flow​

  1. Merchant signs an agreement / onboards with the Aggregator.
  2. Aggregator instructs the Merchant to create (or provide) a wallet in the heth.me system and sends back the wallet_id.
  3. Using its own API key, the Aggregator creates a payment transaction specifying the Merchant wallet details in money_storage_merchant and the Payer card details in money_storage.
  4. Upon successful processing, the balances of the Payer, Merchant, and Aggregator are updated in a single step.
  5. The transaction status can be polled using the standard transaction retrieval method (authorized with the same API key).

Example Request​

curl --location --request POST 'https://app.heth.me/api/v1/transactions' \
--header 'Content-Type: application/json' \
--header "x-api-key: $HETH_API_KEY" \
--data '{
"params": {
"amount": "1000000",
"currency": "USDT",
"env": "prod",
"type": "payment",
"route": "hot_hot_ETH",
"money_storage_merchant": {
"wallet_id": "YOUR_WALLET_ID",
"network": "ETH",
"type": "p2p_proxy",
"currency": "USDT"
},
"money_storage": {
"network": "ETH",
"type": "bank_card",
"currency": "USDT",
"cardnumber": "YOUR_CARD_NUMBER",
"cvv": "YOUR_CVV",
"exp_month": "08",
"exp_year": "2026",
"cardholder": "John Doe"
},
"description": "Payment",
"txid": "d9428888-122b-41e1-b85c-61cb3f548aa7"
}
}'

Field Reference​

FieldDescriptionTypeExample
amountTransaction amount (string of an integer in minor units)String1000000
currencyTransaction currency (default USDT)StringUSDT
envprod (default). Preserve this value when opening and confirming the request.Stringprod
typeTransaction type (payment)Stringpayment
routeProcessing route (must match configured mapping)Stringhot_hot_ETH
money_storage_merchantMerchant (payee) wallet descriptorObject
> wallet_idMerchant wallet identifierStringYOUR_WALLET_ID
> networkBlockchain network (TRX or ETH)StringETH
> typeWallet interaction type (e.g. p2p_proxy)Stringp2p_proxy
> currencyMerchant settlement currency (default USDT)StringUSDT
money_storagePayer funding instrument descriptorObject
> networkBlockchain network (TRX or ETH)StringETH
> typeInstrument type (bank_card)Stringbank_card
> currencyPayer currency (default USDT)StringUSDT
> cardnumberVirtual card numberStringYOUR_CARD_NUMBER
> cvvVirtual card CVVStringYOUR_CVV
> exp_monthCard expiry monthString08
> exp_yearCard expiry yearString2026
> cardholderCardholder nameStringJohn Doe
descriptionHuman-readable descriptionStringPayment
txidIdempotent transaction identifier (string)Stringd9428888-122b-41e1-b85c-61cb3f548aa7

Notes​

  • The Aggregator fee logic is applied automatically based on the API key configuration.
  • Ensure route matches an enabled processing route for the provided API key.
  • Use idempotent txid values to avoid accidental duplicate submissions.
  • Retrieve transaction status via the standard GET transaction endpoint (polling until a terminal state is reached).