# Amend Absence Source: https://docs.intermezzo.ai/api-reference/preview/core/amend-absence /api-reference/preview.json patch /organizations/{organization_id}/employees/{employee_id}/absences/{absence_id} Amend by appending an edition (whole-shape payload, design 09 §7). # Approve Payroll Source: https://docs.intermezzo.ai/api-reference/preview/core/approve-payroll /api-reference/preview.json post /organizations/{organization_id}/payrolls/{payroll_status_id}/approve Approve a payrun (core functionality only, no country-specific logic). # Attach Contact To Organization Source: https://docs.intermezzo.ai/api-reference/preview/core/attach-contact-to-organization /api-reference/preview.json post /organizations/{organization_id}/contacts/{contact_id} Attach a specific contact to an organization # Attach Contacts To Organization Source: https://docs.intermezzo.ai/api-reference/preview/core/attach-contacts-to-organization /api-reference/preview.json put /organizations/{organization_id}/contacts Attach/update contacts for an organization by contact ID list # Attach Contacts To Worksite Source: https://docs.intermezzo.ai/api-reference/preview/core/attach-contacts-to-worksite /api-reference/preview.json put /organizations/{organization_id}/worksites/{worksite_id}/contacts Attach/update contacts for a worksite by contact ID list # Cancel Absence Source: https://docs.intermezzo.ai/api-reference/preview/core/cancel-absence /api-reference/preview.json delete /organizations/{organization_id}/employees/{employee_id}/absences/{absence_id} Cancel by appending a cancelled edition (the only removal path). # Confirm logo upload Source: https://docs.intermezzo.ai/api-reference/preview/core/confirm-logo-upload /api-reference/preview.json post /organizations/{organization_id}/logo/confirm Confirm that the logo was successfully uploaded to GCS. Verifies file existence, activates the document, and updates organization preferences. # Confirm upload completion Source: https://docs.intermezzo.ai/api-reference/preview/core/confirm-upload-completion /api-reference/preview.json post /organizations/{organization_id}/employees/{employee_id}/documents/confirm Confirm that a document was successfully uploaded to GCS # Create Absence Source: https://docs.intermezzo.ai/api-reference/preview/core/create-absence /api-reference/preview.json post /organizations/{organization_id}/employees/{employee_id}/absences Book an absence (first edition). # Create Addresss Source: https://docs.intermezzo.ai/api-reference/preview/core/create-addresss /api-reference/preview.json post /organizations/{organization_id}/addresses # Create multiple contacts in bulk Source: https://docs.intermezzo.ai/api-reference/preview/core/create-multiple-contacts-in-bulk /api-reference/preview.json post /organizations/{organization_id}/contacts/list Create multiple contacts and attach them to an organization. - Non-atomic (partial success allowed) - Each contact is processed in an isolated transaction - Successful contacts are committed even if others fail - Always returns 200 OK with results and errors - Check the 'succeeded' and 'failed' counts to determine outcome # Create Organization Bank Account Source: https://docs.intermezzo.ai/api-reference/preview/core/create-organization-bank-account /api-reference/preview.json post /organizations/{organization_id}/bank-accounts Create a new bank account and attach it to an organization # Create Organization Bank Accounts Bulk Source: https://docs.intermezzo.ai/api-reference/preview/core/create-organization-bank-accounts-bulk /api-reference/preview.json post /organizations/{organization_id}/bank-accounts/list Create multiple bank accounts and attach them to an organization # Create Organization Contact Source: https://docs.intermezzo.ai/api-reference/preview/core/create-organization-contact /api-reference/preview.json post /organizations/{organization_id}/contacts Create a new contact and attach it to an organization # Create Organization Insurance Details Source: https://docs.intermezzo.ai/api-reference/preview/core/create-organization-insurance-details /api-reference/preview.json post /organizations/{organization_id}/insurance-details # Create Organization Tax Identifier Source: https://docs.intermezzo.ai/api-reference/preview/core/create-organization-tax-identifier /api-reference/preview.json post /organizations/{organization_id}/tax-identifiers # Create Orgs Source: https://docs.intermezzo.ai/api-reference/preview/core/create-orgs /api-reference/preview.json post /organizations # Create Orgs Bulk Source: https://docs.intermezzo.ai/api-reference/preview/core/create-orgs-bulk /api-reference/preview.json post /organizations/list Create multiple organizations in bulk # Create Pay Calendar Source: https://docs.intermezzo.ai/api-reference/preview/core/create-pay-calendar /api-reference/preview.json post /organizations/{organization_id}/payrolls/pay-calendars # Create Pay Group Source: https://docs.intermezzo.ai/api-reference/preview/core/create-pay-group /api-reference/preview.json post /organizations/{organization_id}/payrolls/pay-groups # Create Worksite Source: https://docs.intermezzo.ai/api-reference/preview/core/create-worksite /api-reference/preview.json post /organizations/{organization_id}/worksites # Create Worksite Contact Source: https://docs.intermezzo.ai/api-reference/preview/core/create-worksite-contact /api-reference/preview.json post /organizations/{organization_id}/worksites/{worksite_id}/contacts Create a new contact and attach it to a worksite # Create Worksite Contacts Bulk Source: https://docs.intermezzo.ai/api-reference/preview/core/create-worksite-contacts-bulk /api-reference/preview.json post /organizations/{organization_id}/worksites/{worksite_id}/contacts/list Create multiple contacts and attach them to a worksite # Create Worksite Insurance Details Source: https://docs.intermezzo.ai/api-reference/preview/core/create-worksite-insurance-details /api-reference/preview.json post /organizations/{organization_id}/worksites/{worksite_id}/insurance-details # Create Worksite Tax Identifier Source: https://docs.intermezzo.ai/api-reference/preview/core/create-worksite-tax-identifier /api-reference/preview.json post /organizations/{organization_id}/worksites/{worksite_id}/tax-identifiers # Create Worksites Bulk Source: https://docs.intermezzo.ai/api-reference/preview/core/create-worksites-bulk /api-reference/preview.json post /organizations/{organization_id}/worksites/list # Delete a document Source: https://docs.intermezzo.ai/api-reference/preview/core/delete-a-document /api-reference/preview.json delete /organizations/{organization_id}/employees/{employee_id}/documents/{document_id} Soft delete a document (marks as deleted, does not remove from GCS) # Download Sample Payslip Source: https://docs.intermezzo.ai/api-reference/preview/core/download-sample-payslip /api-reference/preview.json get /organizations/{organization_id}/payrolls/{payroll_status_id}/payslips/{payslip_id}/download_sample # Generate logo upload URL Source: https://docs.intermezzo.ai/api-reference/preview/core/generate-logo-upload-url /api-reference/preview.json post /organizations/{organization_id}/logo/upload-url Generate a presigned URL for uploading an organization logo directly to GCS. After uploading the file, call the confirm endpoint to activate it. # Generate presigned download URL Source: https://docs.intermezzo.ai/api-reference/preview/core/generate-presigned-download-url /api-reference/preview.json get /organizations/{organization_id}/employees/{employee_id}/documents/{document_id}/download Generate a presigned URL for downloading a document from GCS # Generate presigned upload URL Source: https://docs.intermezzo.ai/api-reference/preview/core/generate-presigned-upload-url /api-reference/preview.json post /organizations/{organization_id}/employees/{employee_id}/documents/upload Generate a presigned URL for client to upload a document directly to GCS # Get Absence Source: https://docs.intermezzo.ai/api-reference/preview/core/get-absence /api-reference/preview.json get /organizations/{organization_id}/employees/{employee_id}/absences/{absence_id} Current edition of one absence (cancelled included). # Get Absence History Source: https://docs.intermezzo.ai/api-reference/preview/core/get-absence-history /api-reference/preview.json get /organizations/{organization_id}/employees/{employee_id}/absences/{absence_id}/history Every edition, oldest first (D22 planned-vs-actual surface). # Get Address Source: https://docs.intermezzo.ai/api-reference/preview/core/get-address /api-reference/preview.json get /organizations/{organization_id}/addresses/{address_id} # Get Current Organization Preferences Source: https://docs.intermezzo.ai/api-reference/preview/core/get-current-organization-preferences /api-reference/preview.json get /organizations/{organization_id}/preferences Get current preferences for an organization. # Get Org Source: https://docs.intermezzo.ai/api-reference/preview/core/get-org /api-reference/preview.json get /organizations/{organization_id} # Get Organization Bank Accounts Source: https://docs.intermezzo.ai/api-reference/preview/core/get-organization-bank-accounts /api-reference/preview.json get /organizations/{organization_id}/bank-accounts Get all bank accounts attached to an organization # Get Organization Contacts Source: https://docs.intermezzo.ai/api-reference/preview/core/get-organization-contacts /api-reference/preview.json get /organizations/{organization_id}/contacts Get all contacts attached to an organization # Get Organization Insurance Details Source: https://docs.intermezzo.ai/api-reference/preview/core/get-organization-insurance-details /api-reference/preview.json get /organizations/{organization_id}/insurance-details # Get Organization Tax Identifiers Source: https://docs.intermezzo.ai/api-reference/preview/core/get-organization-tax-identifiers /api-reference/preview.json get /organizations/{organization_id}/tax-identifiers # Get Pay Group Source: https://docs.intermezzo.ai/api-reference/preview/core/get-pay-group /api-reference/preview.json get /organizations/{organization_id}/payrolls/pay-groups/{pay_group_id} # Get Payroll Status Source: https://docs.intermezzo.ai/api-reference/preview/core/get-payroll-status /api-reference/preview.json get /organizations/{organization_id}/payrolls/{payroll_status_id}/status # Get Payroll Status History Source: https://docs.intermezzo.ai/api-reference/preview/core/get-payroll-status-history /api-reference/preview.json get /organizations/{organization_id}/payrolls/{payroll_status_id}/status/history # Get Payslips Source: https://docs.intermezzo.ai/api-reference/preview/core/get-payslips /api-reference/preview.json get /organizations/{organization_id}/payrolls/{payroll_status_id}/payslips # Get Worksite Source: https://docs.intermezzo.ai/api-reference/preview/core/get-worksite /api-reference/preview.json get /organizations/{organization_id}/worksites/{worksite_id} # Get Worksite Contacts Source: https://docs.intermezzo.ai/api-reference/preview/core/get-worksite-contacts /api-reference/preview.json get /organizations/{organization_id}/worksites/{worksite_id}/contacts Get all contacts attached to a worksite # Get Worksite Insurance Details Source: https://docs.intermezzo.ai/api-reference/preview/core/get-worksite-insurance-details /api-reference/preview.json get /organizations/{organization_id}/worksites/{worksite_id}/insurance-details # Get Worksite Tax Identifiers Source: https://docs.intermezzo.ai/api-reference/preview/core/get-worksite-tax-identifiers /api-reference/preview.json get /organizations/{organization_id}/worksites/{worksite_id}/tax-identifiers # List Absences Source: https://docs.intermezzo.ai/api-reference/preview/core/list-absences /api-reference/preview.json get /organizations/{organization_id}/employees/{employee_id}/absences Current edition of each absence; cancelled hidden unless requested. # List Contacts Source: https://docs.intermezzo.ai/api-reference/preview/core/list-contacts /api-reference/preview.json get /contacts Get all contacts available to the user with optional name filtering # List employee documents Source: https://docs.intermezzo.ai/api-reference/preview/core/list-employee-documents /api-reference/preview.json get /organizations/{organization_id}/employees/{employee_id}/documents Get paginated documents for an employee # List Orgs Source: https://docs.intermezzo.ai/api-reference/preview/core/list-orgs /api-reference/preview.json get /organizations # List Partner Webhook Deliveries Source: https://docs.intermezzo.ai/api-reference/preview/core/list-partner-webhook-deliveries /api-reference/preview.json get /webhooks/deliveries # List Partner Webhooks Source: https://docs.intermezzo.ai/api-reference/preview/core/list-partner-webhooks /api-reference/preview.json get /webhooks # List Pay Calendars Source: https://docs.intermezzo.ai/api-reference/preview/core/list-pay-calendars /api-reference/preview.json get /organizations/{organization_id}/payrolls/pay-calendars # List Pay Group Employees Source: https://docs.intermezzo.ai/api-reference/preview/core/list-pay-group-employees /api-reference/preview.json get /organizations/{organization_id}/payrolls/pay-groups/{pay_group_id}/employees The employees whose `job.pay_group_id` names the pay group on `valid_at`. # List Pay Groups Source: https://docs.intermezzo.ai/api-reference/preview/core/list-pay-groups /api-reference/preview.json get /organizations/{organization_id}/payrolls/pay-groups # List Payroll Statuses Source: https://docs.intermezzo.ai/api-reference/preview/core/list-payroll-statuses /api-reference/preview.json get /organizations/{organization_id}/payrolls/statuses # List Payruns Source: https://docs.intermezzo.ai/api-reference/preview/core/list-payruns /api-reference/preview.json get /organizations/{organization_id}/payrolls # List Worksites Source: https://docs.intermezzo.ai/api-reference/preview/core/list-worksites /api-reference/preview.json get /organizations/{organization_id}/worksites # Patch Contact Source: https://docs.intermezzo.ai/api-reference/preview/core/patch-contact /api-reference/preview.json patch /contacts/{contact_id} Update contact # Patch Organization Bank Account Source: https://docs.intermezzo.ai/api-reference/preview/core/patch-organization-bank-account /api-reference/preview.json patch /organizations/{organization_id}/bank-accounts/{bank_account_id} Update a bank account for an organization # Patch Organization Contact Source: https://docs.intermezzo.ai/api-reference/preview/core/patch-organization-contact /api-reference/preview.json patch /organizations/{organization_id}/contacts/{contact_id} Update contact and its organization-specific roles # Patch Worksite Source: https://docs.intermezzo.ai/api-reference/preview/core/patch-worksite /api-reference/preview.json patch /organizations/{organization_id}/worksites/{worksite_id} # Patch Worksite Contact Source: https://docs.intermezzo.ai/api-reference/preview/core/patch-worksite-contact /api-reference/preview.json patch /organizations/{organization_id}/worksites/{worksite_id}/contacts/{contact_id} Update contact and its worksite-specific roles # Revoke Partner Webhook Source: https://docs.intermezzo.ai/api-reference/preview/core/revoke-partner-webhook /api-reference/preview.json post /webhooks/{category}/revoke Emergency revoke for a compromised secret — no grace window. Immediately invalidates every current signing secret (including any still in a rotation grace window) and mints a fresh one, returned exactly once. Use this when a secret has leaked; use ``/rotate`` for planned rotation with overlap. # Rotate Partner Webhook Source: https://docs.intermezzo.ai/api-reference/preview/core/rotate-partner-webhook /api-reference/preview.json post /webhooks/{category}/rotate Rotate the signing key of a partner webhook (overlap rotation). Mints a fresh secret (returned exactly once) and keeps the previous key(s) valid for ``grace_seconds`` so the partner can switch over without dropping deliveries. # Setup Partner Webhook Source: https://docs.intermezzo.ai/api-reference/preview/core/setup-partner-webhook /api-reference/preview.json put /webhooks/{category} Create or replace a partner webhook endpoint. On the first setup the server generates the signing secret and returns it exactly once — store it now, it cannot be retrieved later. A repeat call only updates url/enabled (``secret`` is null); rotate the key via ``POST /{category}/rotate``. # Shutdown Org Source: https://docs.intermezzo.ai/api-reference/preview/core/shutdown-org /api-reference/preview.json post /organizations/{organization_id}/shutdown # Update Addresss Source: https://docs.intermezzo.ai/api-reference/preview/core/update-addresss /api-reference/preview.json put /organizations/{organization_id}/addresses/{address_id} # Update Org Source: https://docs.intermezzo.ai/api-reference/preview/core/update-org /api-reference/preview.json patch /organizations/{organization_id} # Update Organization Insurance Details Source: https://docs.intermezzo.ai/api-reference/preview/core/update-organization-insurance-details /api-reference/preview.json patch /organizations/{organization_id}/insurance-details/{insurance_details_id} # Update Organization Preferences Source: https://docs.intermezzo.ai/api-reference/preview/core/update-organization-preferences /api-reference/preview.json patch /organizations/{organization_id}/preferences Update preferences for an organization. # Update Organization Tax Identifier Source: https://docs.intermezzo.ai/api-reference/preview/core/update-organization-tax-identifier /api-reference/preview.json patch /organizations/{organization_id}/tax-identifiers/{tax_identifier_id} # Update Worksite Insurance Details Source: https://docs.intermezzo.ai/api-reference/preview/core/update-worksite-insurance-details /api-reference/preview.json patch /organizations/{organization_id}/worksites/{worksite_id}/insurance-details/{insurance_details_id} # Update Worksite Tax Identifier Source: https://docs.intermezzo.ai/api-reference/preview/core/update-worksite-tax-identifier /api-reference/preview.json patch /organizations/{organization_id}/worksites/{worksite_id}/tax-identifiers/{tax_identifier_id} # Close Employee Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/close-employee /api-reference/preview.json post /gb/organizations/{organization_id}/employees/{employee_id}/close # Create Address Edition Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/create-address-edition /api-reference/preview.json put /gb/organizations/{organization_id}/employees/{employee_id}/address `If-Match` carries the `edition` of the slice the range starts in, as read. A satellite not yet written is created by a PUT with `If-None-Match: *` instead, on a range that runs to `9999-12-31`. The response's `ETag` is the edition written. # Create Core Edition Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/create-core-edition /api-reference/preview.json put /gb/organizations/{organization_id}/employees/{employee_id}/core `If-Match` carries the `edition` of the slice the range starts in, as read. A satellite not yet written is created by a PUT with `If-None-Match: *` instead, on a range that runs to `9999-12-31`. The response's `ETag` is the edition written. # Create Employee Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/create-employee /api-reference/preview.json post /gb/organizations/{organization_id}/employees # Create Employees Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/create-employees /api-reference/preview.json post /gb/organizations/{organization_id}/employees/list Each item is validated and created on its own: an item that fails is reported in `errors` with its index, and the others are still created. The response is `200` however many items fail. Item errors carry the validation codes of the single create, with `field` relative to the item, and its codes: `HUB_DUPLICATE_EXTERNAL_REF`, `GB_RTI_ID_DUPLICATE`, `ONE_OR_MORE_PAY_GROUP_NOT_FOUND`, `PAY_GROUP_IS_IN_RUNNING_PAYROLL`, `WAGE_TYPE_NOT_FOUND`, `SACRIFICE_NOT_ALLOWED`. A body that is not an array, is empty or holds more than 100 items is rejected with `422` and nothing is created. # Create Job Edition Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/create-job-edition /api-reference/preview.json put /gb/organizations/{organization_id}/employees/{employee_id}/job `If-Match` carries the `edition` of the slice the range starts in, as read. A satellite not yet written is created by a PUT with `If-None-Match: *` instead, on a range that runs to `9999-12-31`. The response's `ETag` is the edition written. # Create Tax Edition Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/create-tax-edition /api-reference/preview.json put /gb/organizations/{organization_id}/employees/{employee_id}/tax `If-Match` carries the `edition` of the slice the range starts in, as read. A satellite not yet written is created by a PUT with `If-None-Match: *` instead, on a range that runs to `9999-12-31`. The response's `ETag` is the edition written. # Get Address Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-address /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/address `ETag` is the edition read: send it as `If-Match` on the next PUT. # Get Address Editions Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-address-editions /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/address/editions The resolved timeline, ordered by `valid_from`: oldest slice first, or latest first with `order=desc`. # Get Address Protocol Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-address-protocol /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/address/protocol Every edition ever written, cancellations included, ordered by `edition`: the order they were written in, or newest first with `order=desc`. # Get Core Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-core /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/core `ETag` is the edition read: send it as `If-Match` on the next PUT. # Get Core Editions Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-core-editions /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/core/editions The resolved timeline, ordered by `valid_from`: oldest slice first, or latest first with `order=desc`. # Get Core Protocol Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-core-protocol /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/core/protocol Every edition ever written, cancellations included, ordered by `edition`: the order they were written in, or newest first with `order=desc`. # Get Employee Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-employee /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id} # Get Employee Status Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-employee-status /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/status # Get Job Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-job /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/job `ETag` is the edition read: send it as `If-Match` on the next PUT. # Get Job Editions Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-job-editions /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/job/editions The resolved timeline, ordered by `valid_from`: oldest slice first, or latest first with `order=desc`. # Get Job Protocol Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-job-protocol /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/job/protocol Every edition ever written, cancellations included, ordered by `edition`: the order they were written in, or newest first with `order=desc`. # Get Tax Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-tax /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/tax `ETag` is the edition read: send it as `If-Match` on the next PUT. # List Employees Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/list-employees /api-reference/preview.json get /gb/organizations/{organization_id}/employees Each item is a summary: the employee hub with its `core`, `job`, `tax` satellites. Get one by id for every satellite. # Introduction Source: https://docs.intermezzo.ai/index Welcome to the home of Intermezzo.ai API documentation Dashboard Light Dashboard Dark ## Intermezzo is your Modern Global Payroll API Platform Intergrate with our easy to use API platform to manage your global payroll processing and tax filing. Instantly calculate accurate net pay from gross salary with all applicable benefits, deductions, reimbursements and taxes. Manage payroll cost effectively across multiple countries and jurisdictions. Stay compliant with automatic updates to tax codes and regulations across all jurisdictions. Eliminate manual tax filing with our automated system that handles all submissions. # Pagination Source: https://docs.intermezzo.ai/pagination Paginate through large result sets efficiently All list endpoints support pagination to help manage large datasets. Use pagination parameters to control the number of results and navigate through pages. ## Overview The Intermezzo API uses cursor-based pagination for list endpoints to efficiently handle large result sets. Pagination parameters are passed as query parameters in your requests. ## Pagination Parameters | Parameter | Type | Default | Description | | - | - | - | - | | `page` | integer | 1 | Page number (minimum: 1) | | `size` | integer | 10 | Items per page (range: 1-100) | | `sort_by` | string | null | Field to sort results by | | `sort_order` | string | "asc" | Sort order: "asc" or "desc" | The maximum page size is 100 items. Requests with `size` greater than 100 will return an error. ## Making Paginated Requests ```bash Basic Pagination theme={null} curl -X GET "https://api.intermezzo.ai/v1/resources?page=1&size=20" \ -H "Authorization: Bearer " ``` ```bash With Sorting theme={null} curl -X GET "https://api.intermezzo.ai/v1/resources?page=2&size=25&sort_by=created_at&sort_order=desc" \ -H "Authorization: Bearer " ``` ```json Response theme={null} { "items": [ { "id": "resource_123", "name": "Example Resource", "created_at": "2024-01-15T10:30:00Z" }, { "id": "resource_124", "name": "Another Resource", "created_at": "2024-01-14T15:45:00Z" } ], "meta": { "total": 150, "page": 2, "size": 25, "pages": 6, "has_next": true, "has_prev": true } } ``` ## Response Structure All paginated responses include two main sections: ### items An array containing the actual data for the current page. ### meta Pagination metadata containing: * `total`: Total number of items across all pages * `page`: Current page number * `size`: Number of items per page * `pages`: Total number of pages * `has_next`: Boolean indicating if there's a next page * `has_prev`: Boolean indicating if there's a previous page ## Advanced Filtering You can combine pagination with search and filtering capabilities: ```bash Search with Pagination theme={null} curl -X GET "https://api.intermezzo.ai/v1/resources?page=1&size=10&search=query&search_fields=name,description" \ -H "Authorization: Bearer " ``` ```bash Include Relations theme={null} curl -X GET "https://api.intermezzo.ai/v1/resources?page=1&size=10&include=author,tags" \ -H "Authorization: Bearer " ``` ## Best Practices * Start with smaller page sizes (10-25) and increase as needed * Always check `has_next` before requesting the next page * Use sorting to ensure consistent pagination results * Cache pagination metadata to reduce API calls ## Error Handling The API will return appropriate errors for invalid pagination parameters: ```json Invalid Page Size theme={null} { "error": "validation_error", "message": "size must be between 1 and 100", "details": { "field": "size", "value": 150 } } ``` ```json Invalid Sort Order theme={null} { "error": "validation_error", "message": "sort_order must be 'asc' or 'desc'", "details": { "field": "sort_order", "value": "invalid" } } ``` # Authentication Source: https://docs.intermezzo.ai/preview/auth Identity and Access Management API access requires obtaining OAuth client credentials from Intermezzo. Please [contact us](mailto:support@intermezzo.ai) to get your credentials. ## Authentication Intermezzo API uses OAuth 2 access tokens to authenticate requests. The token is passed in the Authorization header of the request. ```bash theme={null} Authorization: Bearer ``` All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail. # Token Request To obtain an access token, make a POST request to the token endpoint with your client credentials. Your `client_id` and `client_secret` provide access to all your data, so keep them secure. Do not share them publicly by checking them into GitHub or client side code. ```bash Preview Request theme={null} curl --request POST \ --url https://auth-preview.intermezzo.ai/oauth/token \ --header 'content-type: application/json' \ --data '{ "client_id":"your_preview_client_id", "client_secret":"your_preview_client_secret", "audience":"https://api-preview.intermezzo.ai", "grant_type":"client_credentials" }' ``` ```json Response theme={null} { "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6ImF0K2p3dCIsImtpZCI6Ii1rT1pHWHpUUmRFbDZxRUhYazRJNiJ9...", "expires_in": 86400, "token_type": "Bearer" } ``` ## Making Requests Send API requests to `https://preview.intermezzo.ai`, passing the access token in the Authorization header. The `audience` value in the token request identifies the API to the authorization server; it is not the address of the API. ```bash Example Request theme={null} curl --request GET \ --url https://preview.intermezzo.ai/gb/wage-types \ --header 'Authorization: Bearer ' ``` ## Token Expiration and Renewal Access tokens issued through the client credentials flow have a limited lifetime. The lifetime is per client credential and set according to the security policy of the client. The client credentials grant does not support refresh tokens by design. The client can use its credentials (client\_id and client\_secret) to obtain a new access token. ### Getting a New Access Token When your access token expires, simply make a new request to the token endpoint using the same client credentials Consider implementing automatic token renewal in your application by monitoring the `expires_in` value and requesting a new token before the current one expires if you need longer sessions for machine-to-machine authentication. ## User Authentication For applications that need to authenticate end users (not just machine-to-machine communication), Intermezzo provides several OAuth 2.0 flows designed for different application types and security requirements. ### Authorization Code Flow The Authorization Code Flow is the most secure flow for traditional web applications that can securely store client secrets on the server side. ```bash Initiate Authorization theme={null} # Redirect user to authorization endpoint https://auth-preview.intermezzo.ai/authorize? response_type=code& client_id=your_client_id& redirect_uri=https://yourapp.com/callback& scope=openid profile email offline_access& state=random_state_value ``` ```bash Exchange Code for Tokens theme={null} curl --request POST \ --url https://auth-preview.intermezzo.ai/oauth/token \ --header 'content-type: application/json' \ --data '{ "grant_type": "authorization_code", "client_id": "your_client_id", "client_secret": "your_client_secret", "code": "authorization_code_from_callback", "redirect_uri": "https://yourapp.com/callback" }' ``` ```json User Authentication Response theme={null} { "access_token": "eyJhbGciOiJSUzI1NiIs...", "refresh_token": "v1.MjAxNi0wMS0xM...", "id_token": "eyJ0eXAiOiJKV1QiLC...", "token_type": "Bearer", "expires_in": 3600, "scope": "openid profile email" } ``` ### Authorization Code Flow with PKCE For Single-Page Applications (SPAs) and mobile applications that cannot securely store client secrets, use the Authorization Code Flow with Proof Key for Code Exchange (PKCE). ```bash Generate PKCE Challenge theme={null} # Generate code_verifier (43-128 character random string) code_verifier="dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk" # Create code_challenge (SHA256 hash of verifier, base64url encoded) code_challenge="E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM" ``` ```bash Initiate Authorization with PKCE theme={null} https://auth-preview.intermezzo.ai/authorize? response_type=code& client_id=your_client_id& redirect_uri=https://yourapp.com/callback& scope=openid profile email offline_access& state=random_state_value& code_challenge=E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM& code_challenge_method=S256 ``` ```bash Exchange Code with PKCE theme={null} curl --request POST \ --url https://auth-preview.intermezzo.ai/oauth/token \ --header 'content-type: application/json' \ --data '{ "grant_type": "authorization_code", "client_id": "your_client_id", "code": "authorization_code_from_callback", "redirect_uri": "https://yourapp.com/callback", "code_verifier": "dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk" }' ``` ### Refresh Tokens User authentication flows support refresh tokens, which allow applications to obtain new access tokens without requiring users to re-authenticate. ```bash Using Refresh Token theme={null} curl --request POST \ --url https://auth-preview.intermezzo.ai/oauth/token \ --header 'content-type: application/json' \ --data '{ "grant_type": "refresh_token", "client_id": "your_client_id", "client_secret": "your_client_secret", "refresh_token": "v1.MjAxNi0wMS0xM..." }' ``` ```json Refresh Response theme={null} { "access_token": "eyJhbGciOiJSUzI1NiIs...", "refresh_token": "v1.MjAxNi0wMS0xM...", "token_type": "Bearer", "expires_in": 3600, "scope": "openid profile email" } ``` Refresh tokens are sensitive credentials. Store them securely and never expose them in client-side code or logs. For SPAs, consider using secure storage mechanisms or implementing refresh token rotation. ### Token Types and Usage **Access Token**: Used to authenticate API requests. Include in the Authorization header for protected endpoints. **ID Token**: Contains user identity information. Used by the client application to establish user sessions and display user profile data. **Refresh Token**: Long-lived credential used to obtain new access tokens. Only available when `offline_access` scope is requested. ### Flow Comparison | Flow Type | Application Type | Client Secret Required | Refresh Token Support | | - | - | - | - | | Client Credentials | Machine-to-machine | ✅ Yes | ❌ No | | Authorization Code | Traditional web apps | ✅ Yes | ✅ Yes | | Authorization Code + PKCE | SPAs, mobile apps | ❌ No | ✅ Yes | ### Best Practices * Always use HTTPS for all authentication endpoints * Include the `offline_access` scope to receive refresh tokens * Implement proper state parameter validation to prevent CSRF attacks * For PKCE, use cryptographically secure random values for code\_verifier * Store refresh tokens securely and implement proper rotation policies # Request IDs Source: https://docs.intermezzo.ai/requestid Facilitates tracking and debugging of API requests. Each API request has an associated request identifier. You can find this value in the response headers, under `x-request-id`. To expedite the resolution process, provide the request identifier when you contact us about a specific request. # Add Kit Day Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/add-kit-day /api-reference/preview.json post /gb/organizations/{organization_id}/employees/{employee_id}/absences/{absence_id}/kit-days Record one KIT day (appends an edition, D6). # Approve Payroll Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/approve-payroll /api-reference/preview.json post /gb/organizations/{organization_id}/payrolls/{payroll_status_id}/approve Approve a payrun for GB employees. This endpoint approves the payrun and updates GB-specific cumulative values (YTD gross, tax, taxable pay, allowances, and pension contributions). Both operations run within a single transaction - if cumulative values update fails, the payrun approval will be rolled back. If any payslips have NMW compliance warnings, approval is blocked unless force_approve=True is passed to acknowledge the violations. # Approve wage type Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/approve-wage-type /api-reference/preview.json post /gb/wage-types/{wage_type_code}/approve Approve a draft wage type version. If approving closes an existing version, sets its valid_to. Requires write:wage_types scope. # Connect to an existing NEST employer Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/connect-to-an-existing-nest-employer /api-reference/preview.json post /gb/organizations/{organization_id}/pension/nest/link Connects the organisation to an employer already registered with NEST, by its employer reference. Nothing is created in NEST: the employer's groups and payment sources are read and recorded. The employer must have granted Intermezzo delegate access in NEST. Returns 202 with a submission ID; poll /nest/status for the outcome. # Create Absence Scheme Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/create-absence-scheme /api-reference/preview.json post /gb/organizations/{organization_id}/absence-schemes Create an occupational absence scheme with its first terms edition. # Create Absence Scheme Assignment Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/create-absence-scheme-assignment /api-reference/preview.json post /gb/organizations/{organization_id}/absence-scheme-assignments Assign a scheme at organization, pay-group or employee level. Replaces (closes) the target's open assignment from `valid_from`. # Create Bank Edition Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/create-bank-edition /api-reference/preview.json put /gb/organizations/{organization_id}/employees/{employee_id}/bank `If-Match` carries the `edition` of the slice the range starts in, as read. A satellite not yet written is created by a PUT with `If-None-Match: *` instead, on a range that runs to `9999-12-31`. The response's `ETag` is the edition written. # Create Compensation Edition Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/create-compensation-edition /api-reference/preview.json put /gb/organizations/{organization_id}/employees/{employee_id}/compensation `If-Match` carries the `edition` of the slice the range starts in, as read. A satellite not yet written is created by a PUT with `If-None-Match: *` instead, on a range that runs to `9999-12-31`. The response's `ETag` is the edition written. # Create Insurance Edition Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/create-insurance-edition /api-reference/preview.json put /gb/organizations/{organization_id}/employees/{employee_id}/insurance `If-Match` carries the `edition` of the slice the range starts in, as read. A satellite not yet written is created by a PUT with `If-None-Match: *` instead, on a range that runs to `9999-12-31`. The response's `ETag` is the edition written. # Create P11D Batch Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/create-p11d-batch /api-reference/preview.json post /gb/organizations/{organization_id}/exb/p11ds # Create P46 Car Batch Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/create-p46-car-batch /api-reference/preview.json post /gb/organizations/{organization_id}/exb/p46cars Create a batch of P46 Car records for an organization. # Create pension scheme Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/create-pension-scheme /api-reference/preview.json post /gb/organizations/{organization_id}/pension/schemes Create a new workplace pension scheme for an organization. Multiple schemes per organization are supported. The first scheme created is automatically set as the default. # Create wage type Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/create-wage-type /api-reference/preview.json post /gb/wage-types Create a new wage type (draft status). Requires write:wage_types scope. # Create wage type version Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/create-wage-type-version /api-reference/preview.json put /gb/wage-types/{wage_type_code}/versions Create a new version of an existing wage type (draft status). Requires write:wage_types scope. # Delete Absence Scheme Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/delete-absence-scheme /api-reference/preview.json delete /gb/organizations/{organization_id}/absence-schemes/{scheme_id} Retire a scheme. Refused while any assignment still points at it. # Delete P11D Batch Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/delete-p11d-batch /api-reference/preview.json post /gb/organizations/{organization_id}/exb/p11ds/batch-delete # Delete P46 Car Batch Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/delete-p46-car-batch /api-reference/preview.json post /gb/organizations/{organization_id}/exb/p46cars/batch-delete Soft-delete a batch of P46 Car records. All-or-nothing: rejected if any id is unknown / doesn't belong to the org / is already soft-deleted (404), or if any car is tied to an in-flight or successful submission (409). # Delete Pay Items Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/delete-pay-items /api-reference/preview.json post /gb/organizations/{organization_id}/payruns/{payrun_id}/pay-items/delete Batch soft-delete DRAFT CALLER pay-items by id and/or caller key: marks them is_deleted (retained for audit, excluded from reads), not a hard delete. Idempotent; refuses VALUED/STANDING/ADMIN_ENTRY and CONSUMED; per-target outcome. # Deprecate wage type Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/deprecate-wage-type /api-reference/preview.json post /gb/wage-types/{wage_type_code}/deprecate Deprecate the current approved version by setting its valid_to date. Requires write:wage_types scope. # Download Report Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/download-report /api-reference/preview.json get /gb/organizations/{organization_id}/reports/{report_id}/download Poll/download a generated report. READY → presigned URL; PENDING/GENERATING → still generating (url=None); FAILED → unavailable (url=None). # Download stored BACS file Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/download-stored-bacs-file /api-reference/preview.json get /gb/organizations/{organization_id}/payrolls/{payroll_status_id}/bacs-file/download Returns a 302 redirect to a presigned GCS URL for the stored BACS file. Use file_type=TXT (default) for the Standard 18 bank submission file, or file_type=CSV for the human-readable CSV snapshot. Both files are generated and stored at approval time — requires task SUCCESS. # End Absence Scheme Assignment Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/end-absence-scheme-assignment /api-reference/preview.json delete /gb/organizations/{organization_id}/absence-scheme-assignments/{assignment_id} End an open assignment at `valid_to` (default today); the target is statutory-only from then unless a lower-precedence assignment covers it. # Enrol employee in pension scheme Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/enrol-employee-in-pension-scheme /api-reference/preview.json post /gb/organizations/{organization_id}/employees/{employee_id}/pension/enrol Records an employee's enrolment in the workplace pension scheme. Use this to record auto-enrolment triggered by eligibility assessment, voluntary opt-in by a non-eligible jobholder, or a worker choosing to join. If a membership record does not yet exist, one is created automatically. Returns 409 if the employee is already actively enrolled — use the opt-out endpoint first if re-enrolment is needed after a status change. # Export P32 for a tax year with cumulative totals Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/export-p32-for-a-tax-year-with-cumulative-totals /api-reference/preview.json get /gb/organizations/{organization_id}/p32/{tax_year}/export Returns all available months with running cumulative sums. Suitable for PDF/Excel generation. # Generate Bank Detail Change Audit Report Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/generate-bank-detail-change-audit-report /api-reference/preview.json post /gb/organizations/{organization_id}/reports/bank-detail-change-audit # Generate Fps Summary Report Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/generate-fps-summary-report /api-reference/preview.json post /gb/organizations/{organization_id}/reports/fps-summary # Generate Gtn Report Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/generate-gtn-report /api-reference/preview.json post /gb/organizations/{organization_id}/reports/gtn # Generate High Earners Report Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/generate-high-earners-report /api-reference/preview.json post /gb/organizations/{organization_id}/reports/high-earners Queue a High Earners workbook for the tax year. # Generate Payroll Liability Report Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/generate-payroll-liability-report /api-reference/preview.json post /gb/organizations/{organization_id}/reports/payroll-liability # Generate Pension Report Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/generate-pension-report /api-reference/preview.json post /gb/organizations/{organization_id}/reports/pension # Generate Variance Report Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/generate-variance-report /api-reference/preview.json post /gb/organizations/{organization_id}/reports/variance # Generate Ytd Report Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/generate-ytd-report /api-reference/preview.json post /gb/organizations/{organization_id}/employees/{employee_id}/reports/ytd # Get Absence Scheme Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-absence-scheme /api-reference/preview.json get /gb/organizations/{organization_id}/absence-schemes/{scheme_id} Latest terms edition of one scheme. # Get auto-enrolment assessments Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-auto-enrolment-assessments /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/pension/assessments Returns the auto-enrolment eligibility assessment log for an employee, most recent first. An assessment record is written at each payroll approval for employees who go through the AE assessment path (i.e. not already ACTIVE or OPTED_OUT). Each record captures worker category, qualifying earnings, age, eligibility trigger, and whether auto-enrolment was performed. Already-enrolled or opted-out employees do not generate assessment records. # Get Awe Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-awe /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/awe Compute AWE at the supplied anchor (SI 1986/1960 reg 21). Full-precision result; the caller applies 90%, prescribed caps, and HMRC rounding. NO_EARNINGS (a starter with no elapsed pay day) is a 200 with awe=null, not an error; an earnings-history data gap is a structured error (GB_EARNINGS_HISTORY_GAP). # Get BACS file task status Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-bacs-file-task-status /api-reference/preview.json get /gb/organizations/{organization_id}/payrolls/{payroll_status_id}/tasks/bacs-file/status Return the current status of the BACS file generation task for a payrun. # Get Bank Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-bank /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/bank `ETag` is the edition read: send it as `If-Match` on the next PUT. # Get Bank Editions Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-bank-editions /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/bank/editions The resolved timeline, ordered by `valid_from`: oldest slice first, or latest first with `order=desc`. # Get Bank Protocol Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-bank-protocol /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/bank/protocol Every edition ever written, cancellations included, ordered by `edition`: the order they were written in, or newest first with `order=desc`. # Get Compensation Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-compensation /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/compensation `ETag` is the edition read: send it as `If-Match` on the next PUT. # Get Compensation Editions Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-compensation-editions /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/compensation/editions The resolved timeline, ordered by `valid_from`: oldest slice first, or latest first with `order=desc`. # Get Compensation Protocol Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-compensation-protocol /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/compensation/protocol Every edition ever written, cancellations included, ordered by `edition`: the order they were written in, or newest first with `order=desc`. # Get Eps Submission Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-eps-submission /api-reference/preview.json get /gb/organizations/{organization_id}/eps/{eps_id} Get a single EPS submission with current SM state. # Get Exb Submission Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-exb-submission /api-reference/preview.json get /gb/organizations/{organization_id}/exb/p11ds/submissions/{submission_id} Get a single EXB submission with current state machine state. # Get Family Pay Claim Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-family-pay-claim /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/absences/{absence_id}/claim The claim view: eligibility, the frozen average weekly earnings figure with its source, and the weekly entitlement schedule. This GET has a WRITE side effect: it materialises the claim if it does not already exist (taking the employee's absence lock to do so), so what is returned is always the exact claim the payroll run will use rather than a preview of one. A claim that already exists is read without locking. # Get FPS submission details Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-fps-submission-details /api-reference/preview.json get /gb/organizations/{organization_id}/payrolls/{payroll_status_id}/fps # Get High Earner Detail Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-high-earner-detail /api-reference/preview.json get /gb/organizations/{organization_id}/reports/high-earners/{tax_year}/employees/{employee_id} Threshold Income, Adjusted Income, applicable Annual Allowance, and the annualisation inputs behind one flagged employee's row. 404s when the employee is not in the report — either they have no snapshot for the tax year, or their annualised gross is below the threshold. # Get Insurance Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-insurance /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/insurance `ETag` is the edition read: send it as `If-Match` on the next PUT. # Get Insurance Editions Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-insurance-editions /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/insurance/editions The resolved timeline, ordered by `valid_from`: oldest slice first, or latest first with `order=desc`. # Get Insurance Protocol Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-insurance-protocol /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/insurance/protocol Every edition ever written, cancellations included, ordered by `edition`: the order they were written in, or newest first with `order=desc`. # Get Latest Pension Assessment Preview Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-latest-pension-assessment-preview /api-reference/preview.json get /gb/organizations/{organization_id}/payrolls/{payroll_status_id}/tasks/payroll-calculation/latest/pension-preview Pension assessment preview for the latest payroll calculation task. Returns per-employee pension assessment results after calculation but before approval. Includes all workers — both those assessed via the AE eligibility flow and those on the skip path (ACTIVE members and OPTED_OUT workers). # Get NEST connection status Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-nest-connection-status /api-reference/preview.json get /gb/organizations/{organization_id}/pension/nest/status The organisation's NEST connection (null when not connected) and its latest setup, link or verify operation. # Get P32 for a full tax year Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-p32-for-a-full-tax-year /api-reference/preview.json get /gb/organizations/{organization_id}/p32/{tax_year} Returns 12 monthly records. Months with no FPS/EPS data are null. # Get P32 for a single tax month Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-p32-for-a-single-tax-month /api-reference/preview.json get /gb/organizations/{organization_id}/p32/{tax_year}/{tax_month} # Get P46 Car Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-p46-car /api-reference/preview.json get /gb/organizations/{organization_id}/exb/p46cars/{car_id} Get a single P46 Car record by id. # Get Payroll Calculation Results By Status Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-payroll-calculation-results-by-status /api-reference/preview.json get /gb/organizations/{organization_id}/payrolls/{payroll_status_id}/tasks/payroll-calculation/latest/results # Get Payroll Calculation Task Results Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-payroll-calculation-task-results /api-reference/preview.json get /gb/organizations/{organization_id}/payrolls/{payroll_status_id}/tasks/payroll-calculation/{task_id}/results # Get Payroll Task Status Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-payroll-task-status /api-reference/preview.json get /gb/organizations/{organization_id}/payrolls/{payroll_status_id}/tasks/payroll-calculation/{task_id}/status # Get Pension Assessment Preview Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-pension-assessment-preview /api-reference/preview.json get /gb/organizations/{organization_id}/payrolls/{payroll_status_id}/tasks/payroll-calculation/{task_id}/pension-preview Pension assessment preview for a specific payroll calculation task. Returns per-employee pension assessment results after calculation but before approval. Includes all workers — both those assessed via the AE eligibility flow and those on the skip path (ACTIVE members and OPTED_OUT workers). # Get pension membership Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-pension-membership /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/pension/membership Returns the current pension membership state for an employee, including enrolment status, worker category, entry route, and key dates. Returns 404 if no membership record exists yet (employee has never been assessed or enrolled). # Get pension membership history Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-pension-membership-history /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/pension/membership/history Returns the full version history of an employee's pension membership, ordered from the earliest to the most recent record. Each entry represents a status change (enrolment, opt-out, re-enrolment). Required for statutory audit trails as mandated by The Pensions Regulator. Returns 404 if no membership record exists yet. # Get pension scheme Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-pension-scheme /api-reference/preview.json get /gb/organizations/{organization_id}/pension/schemes/{scheme_id} Get a specific workplace pension scheme by its stable handle ID. # Get pension scheme history Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-pension-scheme-history /api-reference/preview.json get /gb/organizations/{organization_id}/pension/schemes/{scheme_id}/history Return all configuration versions for a pension scheme, ordered oldest-first. Each entry includes its valid_from and valid_to dates. # Get Tax Editions Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-tax-editions /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/tax/editions The resolved timeline, ordered by `valid_from`: oldest slice first, or latest first with `order=desc`. # Get Tax Protocol Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-tax-protocol /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/tax/protocol Every edition ever written, cancellations included, ordered by `edition`: the order they were written in, or newest first with `order=desc`. # Get test-in-live FPS submission details Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-test-in-live-fps-submission-details /api-reference/preview.json get /gb/organizations/{organization_id}/payrolls/{payroll_status_id}/fps/test-in-live # Get wage type by code Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-wage-type-by-code /api-reference/preview.json get /gb/wage-types/{wage_type_code} Get a single wage type by its code (e.g., UK-E-003). # Get wage type versions Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-wage-type-versions /api-reference/preview.json get /gb/wage-types/{wage_type_code}/versions Get all versions of a wage type (version history). # Get wage types by category Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-wage-types-by-category /api-reference/preview.json get /gb/wage-types/categories/{category} Get all wage types in a specific category. # List Absence Scheme Assignments Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/list-absence-scheme-assignments /api-reference/preview.json get /gb/organizations/{organization_id}/absence-scheme-assignments Open assignments (or all with `include_ended`), optionally filtered. # List Absence Scheme Editions Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/list-absence-scheme-editions /api-reference/preview.json get /gb/organizations/{organization_id}/absence-schemes/{scheme_id}/editions Every terms edition, oldest first. Editions are never rewritten, so a superseded edition still reads `valid_to: null`; the next edition's `valid_from` is where it stopped applying. # List Absence Schemes Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/list-absence-schemes /api-reference/preview.json get /gb/organizations/{organization_id}/absence-schemes The organization's schemes, latest terms edition of each. # List Earnings History Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/list-earnings-history /api-reference/preview.json get /gb/organizations/{organization_id}/employees/{employee_id}/earnings-history Raw earnings-history rows over a pay-date range. The client-side valuation escape hatch: lets a Positive Pay Input client compute deemed (Alabaster-uplifted) AWE itself and, later, its 52-week holiday arithmetic. # List Eps Submissions Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/list-eps-submissions /api-reference/preview.json get /gb/organizations/{organization_id}/eps List EPS submissions for an organization (cursor-paginated, newest first). # List Exb Submissions Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/list-exb-submissions /api-reference/preview.json get /gb/organizations/{organization_id}/exb/p11ds/submissions List EXB submissions for an organization. # List High Earners Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/list-high-earners /api-reference/preview.json get /gb/organizations/{organization_id}/reports/high-earners/{tax_year} Employees whose annualised gross exceeds £100,000 for the tax year. # List P11Ds Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/list-p11ds /api-reference/preview.json get /gb/organizations/{organization_id}/exb/p11ds # List P46 Cars Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/list-p46-cars /api-reference/preview.json get /gb/organizations/{organization_id}/exb/p46cars List P46 Car records for an organization with their summarized status. Each item carries a `status` field computed from its most recently created submission's FSM state. Cars with no submission are `waiting_for_submission`. # List Pay Items Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/list-pay-items /api-reference/preview.json get /gb/organizations/{organization_id}/payruns/{payrun_id}/pay-items List a payrun's DRAFT pay-items. Repeatable `employee_id` filters to those employees; omit for all employees in the run. DRAFT is implicit. # List pension schemes Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/list-pension-schemes /api-reference/preview.json get /gb/organizations/{organization_id}/pension/schemes List all workplace pension schemes configured for an organisation. # List Reports Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/list-reports /api-reference/preview.json get /gb/organizations/{organization_id}/reports Existing reports for an org+type+tax period, one entry per format already generated. A format with no entry has not been generated yet — the client offers to generate it directly rather than seeing an empty row. `employee_id` (repeatable) scopes to one or more employees' reports (YTD, whose period is always the tax year, optionally capped at `tax_month`'s end — mirrors the period math in `ytd.generate_ytd_report`). Omitted, this is org-wide (GTN, variance), with `tax_month` as a single-month window. `report_type` and `employee_id` must agree on scope — an employee-scoped type (YTD) without `employee_id`, or an org-wide type with one, is rejected rather than silently returning `[]` (indistinguishable from "nothing generated yet"). # List wage types Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/list-wage-types /api-reference/preview.json get /gb/wage-types Get paginated list of GB wage types with optional filters. # Manually trigger P32 recompute for a tax month Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/manually-trigger-p32-recompute-for-a-tax-month /api-reference/preview.json post /gb/organizations/{organization_id}/p32/{tax_year}/{tax_month}/recompute # Override Claim Awe Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/override-claim-awe /api-reference/preview.json post /gb/organizations/{organization_id}/employees/{employee_id}/absences/{absence_id}/claim/awe-override Manually set the average weekly earnings used for this claim, for cases where the earnings history is incomplete. While an override is in place, the figure is no longer recalculated automatically; the acting user and timestamp are recorded for audit. The override replaces the earnings figure only; service and evidence rules still apply. An employee who does not meet the continuous-service test remains ineligible whatever figure is supplied here. # Patch P46 Car Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/patch-p46-car /api-reference/preview.json patch /gb/organizations/{organization_id}/exb/p46cars/{car_id} Partially update a P46 Car's content. Rejected if the car is tied to a submission, which is in progress or successfully processed. # Preview P11Db Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/preview-p11db /api-reference/preview.json get /gb/organizations/{organization_id}/exb/p11ds/submissions/p11db-preview Preview P11D(b) calculation without submitting. # Re-check the NEST employer Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/re-check-the-nest-employer /api-reference/preview.json post /gb/organizations/{organization_id}/pension/nest/verify Re-reads the connected employer's setup from NEST and refreshes readiness, e.g. after the employer finished set-up in NEST. Returns 202 with a submission ID; poll /nest/status for the outcome. # Record Birth Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/record-birth /api-reference/preview.json post /gb/organizations/{organization_id}/employees/{employee_id}/absences/{absence_id}/birth Record the actual birth date (appends an edition, D23). # Record employee opt-out Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/record-employee-opt-out /api-reference/preview.json post /gb/organizations/{organization_id}/employees/{employee_id}/pension/opt-out Records an employee's decision to opt out of the pension scheme. The membership status is updated to OPTED_OUT and the opt-out date is stored. Contribution refunds (if within the statutory one-month opt-out window) are applied separately in the next payroll run and are not handled here. Returns 409 if the employee is not currently actively enrolled. # Record Evidence Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/record-evidence /api-reference/preview.json post /gb/organizations/{organization_id}/employees/{employee_id}/absences/{absence_id}/evidence Record that MAT B1 / medical evidence is held (appends an edition, D16). The receipt date is stored in the content as `evidence_received_at`; the edition's `created_at` is transaction time, not the receipt date. Repeating this POST is a no-op: it returns the current edition unchanged. # Register a new NEST employer Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/register-a-new-nest-employer /api-reference/preview.json post /gb/organizations/{organization_id}/pension/nest/setup Registers the organisation as a new employer with NEST (Set Up New Employer). The scheme in the body must have provider=NEST and submission method API; it defines the employer's first NEST group. On success the connection is AWAITING_EMPLOYER: NEST emails the primary contact, who must accept NEST's terms and create a payment source in NEST before a verify reports READY. Returns 202 with a submission ID; poll /nest/status for the outcome. # Request repayment of a P32 surplus Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/request-repayment-of-a-p32-surplus /api-reference/preview.json post /gb/organizations/{organization_id}/p32/{tax_year}/{tax_month}/request-repayment # Run Fps Test In Live Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/run-fps-test-in-live /api-reference/preview.json post /gb/organizations/{organization_id}/payrolls/{payroll_status_id}/fps/test-in-live Submit a Test-in-Live (TIL) FPS to HMRC. Uses the calculated payslip data to submit an FPS with message class HMRC-PAYE-RTI-FPS-TIL. HMRC processes it as a test without affecting live payroll records. Can be run after payroll calculation, before approval. # Run Payroll Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/run-payroll /api-reference/preview.json post /gb/organizations/{organization_id}/payrolls # Submit Eps Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/submit-eps /api-reference/preview.json post /gb/organizations/{organization_id}/eps Submit an EPS to HMRC. At least one section must be provided. # Submit P11D Exb Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/submit-p11d-exb /api-reference/preview.json post /gb/organizations/{organization_id}/exb/p11ds/submissions Submit all P11Ds for an organization as an EXB submission to HMRC. We recommended to preview the p11db before submiting # Update Absence Scheme Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/update-absence-scheme /api-reference/preview.json put /gb/organizations/{organization_id}/absence-schemes/{scheme_id} Append a new terms edition effective from `valid_from`; earlier editions are kept, so past periods re-derive identically. # Update pension scheme Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/update-pension-scheme /api-reference/preview.json patch /gb/organizations/{organization_id}/pension/schemes/{scheme_id} Partially update a workplace pension scheme. Creates a new configuration version effective from valid_from. Only provided fields are updated. Returns 404 if the scheme does not exist. # Update per-employee pension rates Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/update-per-employee-pension-rates /api-reference/preview.json patch /gb/organizations/{organization_id}/employees/{employee_id}/pension/rates Update an employee's per-employee pension contribution rates. Creates a new membership history version effective from the specified valid_from date. Override rates must be >= the scheme minimums (HMRC AE compliance). If tax_treatment is overridden, wage_type_code must also be provided. # Validate a BACS file Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/validate-a-bacs-file /api-reference/preview.json post /gb/organizations/{organization_id}/payrolls/bacs-file/validate Upload and validate a BACS 0/1/9 format payment file. The file is not saved. # Generate Employee P45 Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/generate-employee-p45 /api-reference/preview.json post /gb/organizations/{organization_id}/reports/p45/employees/{employee_id}/generate Issue the employee's P45 and return the certificate. 201 if this call issued a new P45; 200 if one already existed (idempotent — use ``/reissue`` for a deliberate new one). # Generate P45 Leavers Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/generate-p45-leavers /api-reference/preview.json post /gb/organizations/{organization_id}/reports/p45-leavers/{tax_year}/generate Trigger the tax-year Leavers Summary (CSV/XLSX). # Generate P60 Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/generate-p60 /api-reference/preview.json post /gb/organizations/{organization_id}/reports/p60/{tax_year}/generate # Get Employee P45 Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-employee-p45 /api-reference/preview.json get /gb/organizations/{organization_id}/reports/p45/employees/{employee_id} The employee's current P45 certificate (JSON). 404 if none issued yet. # Get Employee P45 Pdf Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-employee-p45-pdf /api-reference/preview.json get /gb/organizations/{organization_id}/reports/p45/employees/{employee_id}/pdf Download the employee's current P45 as a PDF. Rendered on demand from the frozen issuance snapshot (deterministic). 404 if none issued yet. # Get Employee P60 Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-employee-p60 /api-reference/preview.json get /gb/organizations/{organization_id}/reports/p60/{tax_year}/employees/{employee_id} Full P60 certificate (JSON) for one employee. 404 if not yet generated. # Get Employee P60 Pdf Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/get-employee-p60-pdf /api-reference/preview.json get /gb/organizations/{organization_id}/reports/p60/{tax_year}/employees/{employee_id}/pdf Download one employee's P60 as PDF. Rendered on demand from the snapshot (single row → fast); the immutable snapshot makes the render deterministic. 404 if not yet generated. # List P60 Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/list-p60 /api-reference/preview.json get /gb/organizations/{organization_id}/reports/p60/{tax_year} Per-employee P60 summary rows for the tax year (empty until a generate completes). # Reissue Employee P45 Source: https://docs.intermezzo.ai/api-reference/preview/great-britain/reissue-employee-p45 /api-reference/preview.json post /gb/organizations/{organization_id}/reports/p45/employees/{employee_id}/reissue Reissue the employee's P45 — a deliberate correction that **always** inserts a new ``gb_p45_issuance`` row chained to the current one (``reissued_from_id``), preserving the audit trail.