Skip to main content

Payment object

Fields you will see in API responses and/or webhooks when status changes.

Field reference​

FieldTypeDescription
payment_idstringUnique payment id in Cobrex (p-…).
user_idstringCobrex user id (u-…).
merchantobjectShort merchant info.
merchant.merchant_idstringMerchant id (m-…).
merchant.namestringName.
merchant.urlstringMerchant URL.
merchant.fees_onnumberDefault fee-side behavior (see contract/dashboard).
assetobjectCredit rail.
asset.namestringHuman-readable name (e.g. “Tether USDT TRC-20”).
asset.assetstringTicker (USDT, BTC, …).
asset.networkstringNetwork (TRON, BTC, …).
txsarrayRelated on-chain transactions.
txs[].hashstringTransaction hash.
txs[].senderstringSender address.
txs[].confirmationsnumberNetwork confirmations.
clientstringYour external customer / order id.
addressstringDeposit address at Cobrex.
amountstringPayment amount (decimal string).
detailsobjectFees and equivalents.
details.creditedstringAmount credited to balance.
details.feestringService fee.
details.network_feestringNetwork fee.
details.total_feesstringTotal fees.
details.usdtstringUSDT equivalent (as Cobrex reports).
statusobjectProcessing status.
status.finalbooleanWhether the lifecycle is finished.
status.codestringCoarse code: PENDING, SUCCESS, FAIL.
status.substatusstringDetail, e.g. PAID.
created_atstring (ISO 8601)Created at.
updated_atstring (ISO 8601)Last update.
paid_atstring | nullSuccessful payment time.
canceled_atstring | nullCancellation time, if any.

Full example​

{
"payment_id": "p-1a9a67a1-46ce-11f1-8b35-7cc255316480",
"user_id": "u-96bada25-a20f-49d6-99e9-5893d0769af2",
"merchant": {
"merchant_id": "m-ca33fcbe-317f-47fb-bf3a-520827816658",
"name": "Cobrex",
"url": "https://cobrex.com",
"fees_on": 0
},
"asset": {
"name": "Tether USDT TRC-20",
"asset": "USDT",
"network": "TRON"
},
"txs": [
{
"hash": "b9ccd188fa62c4cad987088b25085ee3783fbae8d0884a1d2b416878b99d51ac",
"sender": "TU4vEruvZwLLkSfV9bNw12EJTPvNr7Pvab",
"confirmations": 18
}
],
"client": "743858",
"address": "TV9jGGXR4SCPGnRMP77pvurBWE5SMjjjvA",
"amount": "75.000000000000000000",
"details": {
"credited": "74.925000000000000000",
"fee": "0.075000000000000000",
"network_fee": "0.000000000000000000",
"total_fees": "0.075000000000000000",
"usdt": "75.000000000000000000"
},
"status": {
"final": true,
"code": "SUCCESS",
"substatus": "PAID"
},
"created_at": "2026-05-03T08:57:24.000Z",
"updated_at": "2026-05-03T08:58:19.000Z",
"paid_at": "2026-05-03T08:58:19.000Z",
"canceled_at": null
}

Next: static wallet, get payment.