Create Transactions Endpoint
Closed this issue · 0 comments
maria-farooq commented
POST /transactions
Every Time a new transaction happened, this endpoint will be called.
Body:
{
"amount": 12.3,
"timestamp": 1478192204000
}
Where:
● amount - transaction amount
● timestamp - transaction time in epoch in millis in UTC time zone (this is not current
timestamp)
Returns: Empty body with either 201 or 204.
● 201 - in case of success
● 204 - if transaction is older than 60 seconds
Where:
● amount is a double specifying the amount
● time is a long specifying unix time format in milliseconds