{
"payinId": "string", // Unique identifier for the payin
"merchantId": "string", // Unique identifier of the merchant
"amount": "string", // Payment amount (in fiat or token)
"amountType": "fiat | token", // Type of the amount
"billDate": "number", // Unix timestamp for payment date
"invoiceId": "string", // Unique invoice identifier
"description": "string | null", // Optional description of the payin
"externalInvoiceRef": "string | null", // Optional external invoice reference
"payinType": "subscription | invoice", // Type of payin
"payinStatus": "scheduled | pending | completed | failed | canceled | uncollectible | draft", // Status of the payin
"transaction": {
"transactionId": "string", // Blockchain transaction ID
"transactionUrl": "string", // URL to view transaction in blockchain explorer
"amountTransferred": "string | null", // Actual token amount transferred
"exchangeRate": {
"currency": "string", // Currency code
"price": "string", // Exchange rate price
"timestamp": "number" // Exchange rate timestamp
}
} | null,
"paymentMethod": {
"paymentMethodId": "string", // Unique identifier for payment method
"paymentMethodName": "string", // Name of payment method
"customer": {
"customerId": "string", // Customer identifier
"customerRefId": "string | null" // External customer reference
},
"networkId": "number", // Blockchain network ID
"walletAddress": "string", // Wallet address
"isDefault": "boolean", // Whether this is the default payment method
"status": "ok | insufficient_balance | insufficient_authorization | insufficient_balance_authorization", // Payment method status
"token": {
"tokenId": "string", // Token identifier
"symbol": "string", // Token symbol
"address": "string", // Token contract address
"decimals": "number", // Token decimals
"exchangeRates": [
{
"currency": "string", // Currency code
"price": "string", // Exchange rate price
"timestamp": "number" // Exchange rate timestamp
}
]
},
"preAuthorization": {
"balance": "string", // Pre-authorized balance
"authorization": "string" // Pre-authorized amount
}
},
"payoutDestination": {
"payoutDestinationId": "string", // Unique identifier for payout destination
"networkId": "number", // Blockchain network ID
"walletAddress": "string" // Destination wallet address
},
"dateCreated": "number" // Unix timestamp of creation date
}