curl --request POST \
--url https://api.firstpromoter.com/api/v2/company/payouts/batch/mark_as_unpaid \
--header 'Account-ID: <account-id>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
123
]
}
'{
"data": {
"id": 123,
"status": "pending",
"total": 123,
"selected_total": 123,
"processed_count": 123,
"failed_count": 123,
"action_label": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"meta": {},
"progress": 123,
"processing_errors": [
{}
]
},
"meta": {
"total": 123,
"promoters_count": 123,
"total_incl_tax": 123,
"all_promoters_count": 123
}
}Marks selected payouts as unpaid
POST https://api.firstpromoter.com/api/v2/company/payouts/batch/mark_as_unpaidcurl --request POST \
--url https://api.firstpromoter.com/api/v2/company/payouts/batch/mark_as_unpaid \
--header 'Account-ID: <account-id>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
123
]
}
'{
"data": {
"id": 123,
"status": "pending",
"total": 123,
"selected_total": 123,
"processed_count": 123,
"failed_count": 123,
"action_label": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"meta": {},
"progress": 123,
"processing_errors": [
{}
]
},
"meta": {
"total": 123,
"promoters_count": 123,
"total_incl_tax": 123,
"all_promoters_count": 123
}
}Access token passed as a Bearer token in the Authorization header
Account identifier that specifies which account is making the request
"acc_123456"
Array of Payout IDs
Success
Show child attributes
ID of the batch action
Status of the batch action
pending, completed, failed Total number of items
Number of selected items
Number of processed items
Number of failed items
Label of the action
When the action was created
When the action was last updated
Meta information about the action
Progress of the action (0-100)
List of processing errors