Ubupay Documentation
  1. Transactions
Ubupay Documentation
  • Overview
    • Introduction
    • Getting started
  • Agent API Documentation
    • Introduction
    • Authentication
      • Agent authentication
      • OTP Request
      • OTP Verification
      • Password reset
    • Profile management
      • Create agent business profile
      • Update agent business profile
      • Retrieve agent business profile
      • Agent profile
    • Transactions
      • Transfers list
        GET
      • Transactions status amount
        GET
      • Transactions status count
        GET
      • Update transaction status
        PATCH
  1. Transactions

Transactions status amount

GET
/agent/transactions/status-amount
This endpoints returns total amount for every status for the transactons linked to the agent.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/agent/transactions/status-amount'
Response Response Example
{
    "status": "success",
    "data": {
        "PENDING": {
            "total_amount": 0.0,
            "count": 0
        },
        "SUCCESSFUL": {
            "total_amount": 0.0,
            "count": 0
        },
        "FAILED": {
            "total_amount": 0.0,
            "count": 0
        },
        "FLAG": {
            "total_amount": 0.0,
            "count": 0
        }
    }
}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************

Responses

🟢200Success
application/json
Body
status
string 
required
data
object 
required
PENDING
object 
required
SUCCESSFUL
object 
required
FAILED
object 
required
FLAG
object 
required
Previous
Transfers list
Next
Transactions status count
Built with