Send your total payment details for the last hour
POST /api/PaymentsTotal
Use this endpoint to send the sum of all the of the payments made in the last hour.
Request URL: https:// .../ api/PaymentsTotal |
---|
Sample request
[
{
"idempotencyKey" : "7172dca0-3c2f-46e9-b512-6637e51c7172",
"totalAmount" : 543.21,
"network" : "visa",
"firstPaymentAt" : "2021-05-20 13:47:21.128",
"lastPaymentAt" : "2021-05-20 14:47:21.128"
}, {
"idempotencyKey" : "8988dca0-3c2f-46e9-b512-6637e51c8988",
"totalAmount" : 3500,
"network" : "pulse",
"firstPaymentAt" : "2021-05-20 13:47:21.128",
"lastPaymentAt" : "2021-05-20 14:47:21.128"
}
]
The endpoint creates an idempotencyKey
and returns it in the response.
Attributes | Description |
---|---|
idempotencyKey | A customer-generated unique value (Guid). |
totalAmount | The amount of the payment in USD. |
network | The network used to facilitate the payment. |
firstPaymentAt | The time of the first payment (GMT). |
lastPaymentAt | The time of the last payment (GMT). |
Sample response
{
"idempotencyKeys" : [
"7172dca0-3c2f-46e9-b512-6637e51c7172",
"8988dca0-3c2f-46e9-b512-6637e51c8988"
]
}
Updated 3 months ago
Did this page help you?