Last updated
Last updated
Endpoint: GET /wallet/payouts?page=1
This endpoint retrieves a list of payout records for the authenticated user.
Request
URL: /wallet/payouts
Method: GET
Headers:
Authorization
: Bearer {token}
Success Response
Status: 200 OK
Body:
Explanation:
status
: Indicates the success or failure of the API request.
status_code
: The HTTP status code of the response.
message
: A message indicating the result of the request.
data
: An array of payout records containing the following fields:
user_id
: The ID of the user who initiated the payout.
amount
: The amount of the payout.
currency
: The currency of the payout.
beneficiary_id
: The ID of the beneficiary.
status
: The current status of the payout.
raw_data
: Additional information about the payout.
created_at
: The timestamp when the payout was created.
updated_at
: The timestamp when the payout was last updated.
payout_id
: The unique identifier for the payout.
beneficiary
: An object containing details about the beneficiary, including:
id
: The ID of the beneficiary.
user_id
: The ID of the user associated with the beneficiary.
recipient_type
: The type of recipient (e.g., individual).
customer_name
: The name of the beneficiary.
customer_email
: The email of the beneficiary.
customer_nickname
: The nickname of the beneficiary.
country
: The country of the beneficiary.
customer_address
: An object containing the address of the beneficiary, including:
city
: The city of the beneficiary.
county
: The county of the beneficiary.
postal_code
: The postal code of the beneficiary.
address_line_1
: The first line of the address.
address_line_2
: The second line of the address (can be null).
created_at
: The timestamp when the beneficiary was created.
updated_at
: The timestamp when the beneficiary was last updated.
pagination
: An object containing pagination details:
total
: The total number of records.
per_page
: The number of records per page.
current_page
: The current page number.
last_page
: The last page number.
next_page_url
: The URL for the next page of records (if applicable).
prev_page_url
: The URL for the previous page of records (if applicable).