Endpoint
- Method:
POST - Path:
/payouts/{id}/paypal-sync - Edition: PRO
- Controller:
PayPalPayoutController@syncPayout - Route source:
fluent-affiliate-pro/app/Http/Routes/api.php - Access:
PayoutPolicy—manage_options, ormanage_all_payoutsormanage_all_data.
POST Sync PayPal Payout
POST
/payouts/{id}/paypal-sync
Read the payout batch from PayPal and settle each transaction from it. The webhook and the hourly job call the same sync.
Controller: PayPalPayoutController@syncPayout
Route source: fluent-affiliate-pro/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
Request Body
application/json
JSON
{
}
Responses
Successful response
application/json
JSON
{
"message": "string",
"payout": {
"id": 0,
"created_by": 0,
"title": "string",
"description": "string",
"status": "string",
"payout_method": "string",
"total_amount": 0,
"currency": "string",
"settings": {
},
"referrals_count": 0,
"transactions_count": 0,
"created_at": "string",
"updated_at": "string"
}
}