curl --request GET \
--url https://api.firstpromoter.com/api/v2/company/payouts/group_by_promoters \
--header 'Account-ID: <account-id>' \
--header 'Authorization: Bearer <token>'{
"data": [
{
"promoter": {
"id": 123,
"email": "<string>",
"name": "<string>",
"invoice_details_status": "<string>",
"fraud_suspicions": [
"<string>"
],
"profile": {
"invoice_details_validation_errors": {}
}
},
"payout_method": {
"id": 123,
"method": "<string>",
"date_added": "2023-11-07T05:31:56Z",
"is_disabled": true,
"meta": {},
"is_selected": true,
"details": {},
"managed_payouts": true
},
"payouts": [
{
"id": 123,
"status": "pending",
"amount": 123,
"payments_batch_id": 123,
"tax_rate": 123,
"unit": "<string>",
"period_start": "2023-11-07T05:31:56Z",
"period_end": "2023-11-07T05:31:56Z",
"paid_at": "2023-11-07T05:31:56Z",
"processing_started_at": "2023-11-07T05:31:56Z",
"failed_at": "2023-11-07T05:31:56Z",
"error": "<string>",
"total_incl_tax": 123,
"created_at": "2023-11-07T05:31:56Z",
"payout_method": {
"id": 123,
"method": "<string>",
"date_added": "2023-11-07T05:31:56Z",
"is_disabled": true,
"meta": {},
"is_selected": true,
"details": {},
"managed_payouts": true
},
"promoter": {
"id": 123,
"email": "<string>",
"name": "<string>"
},
"campaign": {
"id": 123,
"name": "<string>",
"color": "<string>"
},
"invoice": {
"id": 123,
"number": "<string>"
}
}
],
"is_amount_payable": true,
"payout_ids": [
123
],
"amount": 123,
"total_incl_tax": 123
}
],
"meta": {
"total": 123,
"promoters_count": 123,
"total_incl_tax": 123,
"due_date": "2023-12-25",
"period_end": "2023-12-25"
}
}This endpoint returns all payouts but grouped by promoters.
GET https://api.firstpromoter.com/api/v2/company/payouts/group_by_promoterscurl --request GET \
--url https://api.firstpromoter.com/api/v2/company/payouts/group_by_promoters \
--header 'Account-ID: <account-id>' \
--header 'Authorization: Bearer <token>'{
"data": [
{
"promoter": {
"id": 123,
"email": "<string>",
"name": "<string>",
"invoice_details_status": "<string>",
"fraud_suspicions": [
"<string>"
],
"profile": {
"invoice_details_validation_errors": {}
}
},
"payout_method": {
"id": 123,
"method": "<string>",
"date_added": "2023-11-07T05:31:56Z",
"is_disabled": true,
"meta": {},
"is_selected": true,
"details": {},
"managed_payouts": true
},
"payouts": [
{
"id": 123,
"status": "pending",
"amount": 123,
"payments_batch_id": 123,
"tax_rate": 123,
"unit": "<string>",
"period_start": "2023-11-07T05:31:56Z",
"period_end": "2023-11-07T05:31:56Z",
"paid_at": "2023-11-07T05:31:56Z",
"processing_started_at": "2023-11-07T05:31:56Z",
"failed_at": "2023-11-07T05:31:56Z",
"error": "<string>",
"total_incl_tax": 123,
"created_at": "2023-11-07T05:31:56Z",
"payout_method": {
"id": 123,
"method": "<string>",
"date_added": "2023-11-07T05:31:56Z",
"is_disabled": true,
"meta": {},
"is_selected": true,
"details": {},
"managed_payouts": true
},
"promoter": {
"id": 123,
"email": "<string>",
"name": "<string>"
},
"campaign": {
"id": 123,
"name": "<string>",
"color": "<string>"
},
"invoice": {
"id": 123,
"number": "<string>"
}
}
],
"is_amount_payable": true,
"payout_ids": [
123
],
"amount": 123,
"total_incl_tax": 123
}
],
"meta": {
"total": 123,
"promoters_count": 123,
"total_incl_tax": 123,
"due_date": "2023-12-25",
"period_end": "2023-12-25"
}
}Access token passed as a Bearer token in the Authorization header
Account identifier that specifies which account is making the request
"acc_123456"
Search params. Searches by 'promoter.profile.first_name,promoter.profile.last_name,promoter.user.email`
Filter by status
pending, completed, failed, processing, cancelled Campaign ids. Can be Integer or Array of Integers
Set it true to include the payout_method_details
Filters payouts by the minimum payment amount possible
Filters payouts by invoiceable
true, false, not_set Successful response
Show child attributes
Show child attributes
ID of the promoter
Email of the promoter
Name of the promoter
Status of invoice details
List of fraud suspicions
Show child attributes
ID of the payout method
Payout method name
Date when the payout method was added
Whether the payout method is disabled
Additional meta information
Whether the payout method is selected
Details about the payout method
Whether payouts are managed by us (auto-payouts)
Show child attributes
Unique identifier for the payout
Status of the payout
pending, completed, failed, processing, cancelled Amount of the payout
ID of the payments batch
Tax rate applied to the payout
Unit of the payout (e.g., cash)
Start date of the period
End date of the period
Date when the payout was paid
Date when the payout processing started
Date when the payout failed
Error message if the payout failed
Total amount including tax
Date when the payout was created
Show child attributes
ID of the payout method
Payout method name
Date when the payout method was added
Whether the payout method is disabled
Additional meta information
Whether the payout method is selected
Details about the payout method
Whether payouts are managed by us (auto-payouts)
Whether the amount is payable
List of payout IDs
Total amount
Total amount including tax