The API call tracks new payments, specifically tailored for fintech solutions. It captures key payment details, ensuring accurate tracking of customer transactions.
This API triggers the "Payment Processed" event, allowing you to automate follow-up actions such as initiating workflows, sending notifications, or rewarding customers with badges.
The event includes all properties provided in the payload.
post/api/v4.0/integrations/payments
Request body
Example request
{
"customerId": "cust456",
"email": "john.doe@example.com",
"mobile": "+1234567890",
"paymentId": "6253e03b",
"paymentDate": "2024-09-21T16:53:28.190Z",
"totalPaid": 100,
"totalAmount": 120,
"totalDiscount": 20,
"totalProcessingFees": 10,
"totalTax": 10,
"paymentDetails": [
{
"serviceId": "s_1234",
"serviceName": "Vodafone Topup",
"serviceProvider": "Vodafone",
"amount": 100,
"tax": 10,
"discount": 20,
"tags": [
"Telecom",
"Topup"
],
"category": [
"Telecom Topup"
],
"extra": {}
}
],
"redemption": {
"pointsHoldReference": "HOLD123",
"couponsLockReference": "LOCK123",
"couponCodes": [
"DISCOUNT10"
]
},
"extra": {
"billingAddress": "Jane Smith, Acme Corp, 456 Elm St, Springfield, IL 62704, USA, Tax ID: US987654321",
"paymentStatus": "Pending"
},
"channel": "web",
"cashbackConfigurations": {
"returnWindow": 7
}
}Response
Payment tracked
Example response
{
"customerId": "cust_123456789",
"redeemedPoints": 1000,
"rewardedPoints": 101,
"paymentDetails": [
{
"serviceId": "service_123",
"decimalPoints": 91.25,
"points": 91
}
]
}