---
title: "Confirm an employee batch"
method: POST
path: "/companies/{company}/employee-batches/{id}/confirm"
tags: ["Employees"]
---

# Confirm an employee batch

`POST /companies/{company}/employee-batches/{id}/confirm`

## Request

- Base URL: `https://api.factuarea.com/v1`
- URL: `https://api.factuarea.com/v1/companies/{company}/employee-batches/{id}/confirm`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Confirm an employee batch, charging and provisioning it once one financial outcome is verified.
- Confirm exactly the reviewed `quote_version` with a stable `Idempotency-Key`.
- After a 202, error or replay, GET the same UUID until a terminal state; never create a second purchase.

## Path parameters

- `company` string, uuid, required
- `id` string, uuid, required

## Headers

- `Idempotency-Key` string, required
- `Factuarea-Version` string, date

## Request body

- VersionedEmployeeBatchBody
  - `quote_version` integer, required

## Response `200`

Current durable operation.

- object
  - `data` EmployeeBatch, required
    - `id` string, uuid, required
    - `kind` 'create' | 'reactivate', required
    - `status` 'draft' | 'quoted' | 'processing' | 'requires_action' | 'payment_pending' | 'paid' | 'completed' | 'failed' | 'cancelled' | 'compensating' | 'compensated' | 'needs_review', required
    - `revision` integer, required
    - `quote_version` integer, required
    - `accepted_version` integer, nullable, required
    - `expires_at` string, date-time, nullable, required
    - `quote_expired` boolean, required
    - `requested` integer, required
    - `financial_attempt_started` boolean, required
    - `failure_code` string, nullable, required
    - `quote` EmployeeBatchQuote, required
      - `base_cents` integer, required
      - `discount_cents` integer, required
      - `tax_cents` integer, required
      - `total_cents` integer, required
      - `recurring_base_cents` integer, required
      - `recurring_discount_cents` integer, required
      - `recurring_tax_cents` integer, required
      - `recurring_total_cents` integer, required
      - `proration_date` integer, required
      - `requested` integer, required
      - `active_before` integer, required
      - `covered_count` integer, required
      - `transferred_paid_slots` integer, required
      - `chargeable_count` integer, required
      - `final_active_count` integer, required
      - `fingerprint` string, required
      - `currency` 'EUR', required
      - `seats_billable` boolean, required
      - `requires_payment_method` boolean, required
      - `requires_financial_attempt` boolean, required
      - `expires_at` string, date-time, required
    - `items` object[], required
      - `row_id` string, required
      - `employee_id` string, uuid, nullable
      - `profile` EmployeeBatchProfile
        - `first_name` string, required
        - `last_name` string, required
        - `email` string, email, required
        - `employment_type` 'full_time' | 'part_time', required
        - `contract_hours` number, required
        - `ccaa` 'AN' | 'AR' | 'AS' | 'IB' | 'CN' | 'CB' | 'CL' | 'CM' | 'CT' | 'VC' | 'EX' | 'GA' | 'MD' | 'MC' | 'NC' | 'PV' | 'RI' | 'CE' | 'ML', required
        - `hire_date` string, date, required
        - `tax_id` string, nullable
        - `job_title` string, nullable
        - `external_id` string, nullable
        - `metadata` object
      - `paid_until` string, date-time, nullable
      - `coverage` 'covered' | 'uncovered'
    - `result` object[], required
      - `row_id` string, required
      - `employee_id` string, uuid, required
    - `allowed_actions` string[], required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `action_url` string, uri, nullable, required
    - `payment_setup_url` string, uri, nullable, required

## Other responses

- `202`: Accepted; retrieve this operation until terminal.
- `400`: `parameter_unknown` with `subcode` `retired_active_profile_header`: the retired `X-Active-Profile` header was sent; the company goes in the path. `parameter_invalid_format` on `Factuarea-Version`: the header is not a `YYYY-MM-DD` date. `unsupported_api_version`: the `Factuarea-Version` date is not a supported version.
- `401`: Missing or invalid API key.
- `402`: The operation requires a payment that could not be completed: either no payment method is on file (`error.details.payment_setup_url` links to the Billing Portal where it can be set up), the immediate charge was declined by the payment provider, the account lacks the plan or add-on this operation bills against, the annual document limit is reached (`plan_limit_exceeded`, with `error.details.period_end` indicating the end of the period — wait until it has ended or upgrade the plan to continue now), or the account has reached its maximum usage (`storage_quota_exceeded`, raised by upload operations such as signing a delivery note or attaching a file to an expense — contact support before retrying). Nothing was created or modified — resolve the cause and retry the same request. Version note: `error.type` is `payment_required_error` from `Factuarea-Version: 2026-09-01` onwards; earlier versions receive `invalid_request_error` for the three codes that predate that cut (`payment_method_required`, `employee_seat_payment_method_required` and `employee_seat_charge_failed`; every other 402 code, such as `addon_required`, `plan_limit_exceeded` or the additional tax ID codes, is newer and always carries `payment_required_error`). `error.code` is stable across every version.
- `403`: The request is authenticated but not allowed: the API key lacks the required scope (`insufficient_scope`), the plan does not include the public API or this feature (`addon_not_active`, `feature_not_available_in_plan`), or the module is not available with a test key (`module_not_available_in_sandbox`).
- `404`: The requested resource does not exist or belongs to another company.
- `409`: The request conflicts with data that already exists or with a request running at the same time. `employee_batch_billing_state_conflict`: the current billing of the account does not allow completing the batch safely. `details.reason` is `offer_requires_chargeable_seats`, `fiscal_configuration` or `phase_incompatible`. Nothing was charged. `employee_batch_state_conflict` with `subcode` `employee_batch_missing_payment_proof`: the payment of this operation is not proven yet. Read its current state. `employee_batch_quote_changed`: the quote changed since the version you accepted (`param` `quote_version`). Refresh it and accept the current version. `employee_batch_state_conflict`: the batch is in a state that does not allow this action. Read its current state. `employee_seat_operation_in_progress`: another employee operation is pending. `details.operation_id` identifies it when known; read its state before starting another. `resource_conflict`: another request was reserving identifiers for the same kind of record at that moment and this one could not complete its reservation. Nothing was written; send the request again after a few seconds. `resource_already_exists` with `subcode` `external_id_already_exists`: an `external_id` of the batch is already used by an employee of the company. Nothing was charged or created. `employee_batch_idempotency_conflict`: the idempotency key of the body already identifies a different batch intention. Keep the current operation or prepare a new one with a new key.
- `422`: Validation failed. The `error.param` field identifies which input is invalid.
- `429`: Rate limit exceeded. Retry after the duration in `Retry-After`.
- `500`: Unexpected server error.
- `503`: Reliable quote or gateway outcome unavailable. Retry only the same operation.

---

[API](https://skmtc.dev/factuarea/apis/factuarea-public-api.md) · [All operations](https://skmtc.dev/factuarea/apis/factuarea-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/factuarea/apis/factuarea-public-api/revisions/718e77934422?raw)
