Skip to main content

The Commission object

Represents a commission charged on a transaction. Commissions are fees collected by ZenPays for processing payments, payouts, or refunds.

Fields

FieldTypeDescription
id
REQUIRED
stringUnique identifier for the commission record
merchantId
REQUIRED
stringID of the merchant who was charged
transactionId
REQUIRED
stringID of the transaction that generated the commission
amount
REQUIRED
numberCommission amount in the smallest currency unit
rate
REQUIRED
numberCommission rate applied (as a decimal, e.g., 0.029 for 2.9%)
currency
REQUIRED
stringThree-letter ISO currency code
type
REQUIRED
'payment'| 'payout'| 'refund'Type of transaction the commission was charged on
createdAt
REQUIRED
stringISO 8601 timestamp when the commission was charged

Example

{
"id": "obj_1a2b3c",
"merchantId": "merchant_1a2b3c",
"transactionId": "transaction_1a2b3c",
"amount": 5000,
"rate": 1,
"currency": "USD",
"type": "payment",
"createdAt": "2026-01-15T09:30:00Z"
}