Endpoint
- Method:
GET - Path:
/payouts/{id}/transactions-export - Edition: Core
- Controller:
PayoutController@getExportableTransactions - Route source:
app/Http/Routes/api.php - Access:
PayoutPolicy—manage_options, orread_all_payouts,manage_all_payoutsormanage_all_data.
GET Export Payout Transactions
GET
/payouts/{id}/transactions-export
Export payout transactions as CSV rows. Pass format=paypal to get rows for a PayPal Payouts upload file instead (email, amount, currency), with the amount formatted for the payout currency (whole units for HUF, JPY and TWD; decimal comma for EUR and BRL). A payout sent through a payment gateway cannot be exported in the PayPal format.
Controller: PayoutController@getExportableTransactions
Route source: app/Http/Routes/api.php
Authorizations
ApplicationPasswords
WordPress Application Passwords — use Basic auth with username:application_password.
Type
API Key (header: Authorization)
Parameters
Path Parameters
id*
The id.
Type
Requiredinteger
Query Parameters
per_page
Number of items per page.
Type
integer
Default
15page
Page number (1-based).
Type
integer
Default
1search
Search query string.
Type
string
status
Filter by status.
Type
string
Responses
Successful response
application/json
JSON
{
"transactions": [
{
"affiliate_id": 0,
"affiliate_name": "string",
"email": "string",
"payout_email": "string",
"amount": "90.90",
"currency": "string"
}
],
"rows": [
{
"email": "string",
"amount": "string",
"currency": "string"
}
],
"skipped": [
"string"
],
"limited": true,
"total": 0
}