---
title: "Approve commissions"
method: POST
path: "/commissions/approve"
tags: ["Commissions"]
---

# Approve commissions

`POST /commissions/approve`

With this endpoint you can approve commissions. 
 <Note>If there are more than __5__ ids on the __ids__ param/field, the action will be processed asynchronously. The response for the batch status will most likely be `in_progress`. The available statuses are `pending`, `in_progress`, `completed`, `failed` and `stopped`</Note> 
 <Tip>**HTTP Request** <br/>`POST https://api.firstpromoter.com/api/v2/company/commissions/approve`</Tip>

## Headers

- `Account-ID` string, required

## Request body

- BatchActionRequest
  - `ids` integer[] — Array of commission Ids. If there are more than __5__ ids on this param/field, the action will be processed asynchronously. The response for the batch status will most likely be `in_progress`. The available statuses are `pending`, `in_progress`, `completed`, `failed` and `stopped`

## Response `200`

Operation completed successfully

- object
  - `id` integer — Id of the batch operation
  - `status` 'completed' — Status of the batch operation (always completed for synchronous operations)
  - `total` integer — Total number of items
  - `selected_total` integer — Number of selected items
  - `processed_count` integer — Number of processed items
  - `failed_count` integer — Number of failed operations
  - `action_label` string — Action identifier/ label assigned to the action
  - `created_at` string, date-time — Date and time when the batch operation was created
  - `updated_at` string, date-time — Date and time when the batch operation was updated
  - `meta` object — Meta data of the batch operation
  - `progress` integer — Progress of the action (0-100)
  - `processing_errors` string[]

## Other responses

- `202` — Batch operation accepted and processing
- `401` — Unauthorized
- `403` — Forbidden
- `422` — Invalid parameters

---

[API](https://skmtc.net/firstpromoter/apis/firstpromoter-batch-processes-api.md) · [All operations](https://skmtc.net/firstpromoter/apis/firstpromoter-batch-processes-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/firstpromoter/firstpromoter-batch-processes-api/versions/e15f0d026ccf/schema)
