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
string

A customer-generated unique value (Guid).
Required

totalAmount
integer

The amount of the payment in USD.
Required

network
string

The network used to facilitate the payment.
Required

firstPaymentAt
string

The time of the first payment (GMT).
Required

lastPaymentAt
string

The time of the last payment (GMT).
Required

Sample response

{
 "idempotencyKeys" : [
 "7172dca0-3c2f-46e9-b512-6637e51c7172",
 "8988dca0-3c2f-46e9-b512-6637e51c8988"
 ]
}

Did this page help you?