---
title: "Refresh the quote for an employee batch"
method: POST
path: "/companies/{company}/employee-batches/{id}/quote"
tags: ["Employees"]
---

# Refresh the quote for an employee batch

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

## Request

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

Refresh the quote of a prepared employee batch.
- Refreshing never charges, provisions people or consumes an offer.
- Confirm exactly the new `quote_version` with a stable Idempotency-Key.
- After a 202 or failure, GET the same batch UUID until terminal; 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

- `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.
- `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_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. `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)
