Get All Payment Request Users API
Overview
Retrieve a list of all payment request users with their associated payment and user information.
API Details
- Method: GET
- URL: https://api.gafapay.com:8443/gafapay/v3/user/payment_request_users
- Content-Type: application/json
- companyid: 59388167894b4d10a04fe5da3b8a2104
- requestid: be08f79e-7eac-40e1-acbe-00f6ae7b8f7b
- Authorization: Token required
Endpoint
GET https://api.gafapay.com:8443/gafapay/v3/user/payment_request_users
Headers
authorization: Token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlNDk0Njg3N2YxODk0NmIyOTlmZGRmMGYyMTMzZGNiYSIsInJvbGVzIjpbIlJPTEVfQURNSU4iXSwiZXhwIjoxNzU3MDA3NDEyfQ.ph7qKBEzuHxgljV3141L9iOrWmHI4TnyoknBSNoVYYU
companyid: 59388167894b4d10a04fe5da3b8a2104
requestid: be08f79e-7eac-40e1-acbe-00f6ae7b8f7b
Query Parameters
Pagination Parameters
-
skip (
Integer, optional): Skips n split payment users from the cursor (pagination)- Default: 0
- Example: 0, 10, 20
-
limit (
Integer, optional): Limits the number of split payment users to return (pagination)- Default: 10
- Example: 10, 25, 50
Filter Parameters
-
user_type (
Integer, optional): Type of user2= Customer3= Merchant5= Agent- See Constants for more details
-
user_id (
String, optional): User ID filter- Format: UUID string
- Example: "fb8f09210e0f46b7b4262d77f5b6c273"
-
payment_request_id (
String): payment request ID- Format: UUID string
- Example: "bc47de8f53294a44842a421ad90affbe"
-
payment_status (
Integer, optional): Payment status filter1= PAYMENT_STATUS_PENDING2= PAYMENT_STATUS_COMPLETED3= PAYMENT_STATUS_CANCELLED_BY_INITIATOR4= PAYMENT_STATUS_CANCELLED_BY_PAYER- See Constants for more details
-
start_date (
Long, optional): Start date / transaction ID (epoch timestamp)- Format: Unix timestamp
- Example: 1756556000
-
end_date (
Long, optional): End date (epoch timestamp)- Format: Unix timestamp
- Example: 1756557000
-
searchKeyWord (
String, optional): Search data using any keyword- Format: Text string
- Example: "Suresh", "Raina", "968784529"
-
sorting (
String, optional): Sorting JSON (e.g.{"field_name": "DESC"})- Format: JSON string
- Example:
{"created_date": "DESC"},{"amount": "ASC"}
-
currency_id (
String, optional): Currency ID filter- Format: UUID string
- Example: "1f1519903ed240578f071aa45cb479f2"
-
query_filter (
String, optional): Custom query filter- Format: Custom filter string
- Example: Custom filter conditions
-
payment_status_ignore (
List<Integer>, optional): List of payment statuses to ignore- Format: Array of integers
- Example: [3, 4] (ignores cancelled statuses)
Response
{
"success": 1,
"error": [],
"data": {
"payment_request_users": [
{
"amount": 100.0,
"id": "190bc954d98e44c7a26dc5caba7a0cdd",
"user_type": 2,
"user_id": "fb8f09210e0f46b7b4262d77f5b6c273",
"payment_request_id": "bc47de8f53294a44842a421ad90affbe",
"payment_status": 1,
"cancel_reason": null,
"payer_transaction_id": null,
"currency_id": "1f1519903ed240578f071aa45cb479f2",
"user_info": {
"first_name": "Suresh",
"last_name": "Raina",
"dial_code": "+221",
"phone_number": "968784529",
"email": "kushalpatel2930@gmail.com",
"image": null
},
"group_info": null,
"is_active": true,
"created_date": 1756556059
}
]
}
}
Response Fields
- success (integer): Response status indicator
1= Success0= Failure
- error (array): Array of error messages (empty on success)
- data (object): Response data object
- payment_request_users (array): Array of payment request user objects
Payment Request User Object Fields
-
amount (number): Payment amount requested
- Format: Decimal number
- Example: 100.0, 50.5, 1000.00
-
id (string): Unique identifier for the payment request user record
- Format: UUID string
- Example: "190bc954d98e44c7a26dc5caba7a0cdd"
-
user_type (integer): Type of user
2= Customer3= Merchant5= Agent- See Constants for more details
-
user_id (string): ID of the user associated with this payment request
- Format: UUID string
- Example: "fb8f09210e0f46b7b4262d77f5b6c273"
-
payment_request_id (string): ID of the payment request
- Format: UUID string
- Example: "bc47de8f53294a44842a421ad90affbe"
-
payment_status (integer): Current status of the payment
1= PAYMENT_STATUS_PENDING2= PAYMENT_STATUS_COMPLETED3= PAYMENT_STATUS_CANCELLED_BY_INITIATOR4= PAYMENT_STATUS_CANCELLED_BY_PAYER- See Constants for more details
-
cancel_reason (string|null): Reason for cancellation if applicable
- Format: Text string
- Example: "User requested cancellation"
- Can be null if not cancelled
-
payer_transaction_id (string|null): Transaction ID from the payer
- Format: Transaction identifier string
- Can be null if payment not completed
-
currency_id (string): ID of the currency used for the payment
- Format: UUID string
- Example: "1f1519903ed240578f071aa45cb479f2"
-
user_info (object): User information object
- first_name (string): User's first name
- last_name (string): User's last name
- dial_code (string): Country dial code
- phone_number (string): Phone number
- email (string|null): Email address
- image (string|null): Profile image URL
-
group_info (object|null): Group information if applicable
- Can be null if not part of a group
-
is_active (boolean): Whether the payment request user record is active
true= Activefalse= Inactive
-
created_date (long): Creation timestamp
- Format: Unix timestamp
- Example: 1756556059
Example Usage
Basic Request (No Filters)
curl --location 'https://api.gafapay.com:8443/gafapay/v3/user/payment_request_users' \
--header 'authorization: Token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlNDk0Njg3N2YxODk0NmIyOTlmZGRmMGYyMTMzZGNiYSIsInJvbGVzIjpbIlJPTEVfQURNSU4iXSwiZXhwIjoxNzU3MDA3NDEyfQ.ph7qKBEzuHxgljV3141L9iOrWmHI4TnyoknBSNoVYYU' \
--header 'companyid: 59388167894b4d10a04fe5da3b8a2104' \
--header 'requestid: be08f79e-7eac-40e1-acbe-00f6ae7b8f7b'
With Pagination and Basic Filters
curl --location 'https://api.gafapay.com:8443/gafapay/v3/user/payment_request_users?skip=0&limit=25&user_type=2&payment_status=1' \
--header 'authorization: Token YOUR_TOKEN_HERE' \
--header 'companyid: YOUR_COMPANY_ID' \
--header 'requestid: YOUR_REQUEST_ID'
Notes
- This API returns all payment request users without pagination
- Payment status values can be referenced from the Constants page
- User type values can be referenced from the Constants page
- The API provides comprehensive information including user details and payment status
- Group information may be null for individual payment requests
- All timestamps are in Unix epoch format