---
updatedAt: 2026-10-01T08:53:12.000Z
agentTools:
  projectIndex: https://developer.remote.com/llms.txt
---

# Show Contractor Invoice pay-in details

Shows how the payment that collects a Contractor Invoice is paid in, and where to send it.

`bank_accounts` carries Remote's receiving accounts while `status` is `awaiting_payment`.
It is null once the funds are in flight or received, while the payment sits on a compliance
hold (`blocked`) or is partly paid (`partially_paid`, where `amount_due` overstates what
remains and Remote follows up with the balance directly), and whenever Remote has no
account to publish.

`pay_in_method` says whether a transfer is yours to send at all: Remote collects
`direct_debit`, `card` and `prefunding_credit` payments itself, and a transfer would pay the
same invoices twice. That holds after a failed or disputed collection too: the payment reads
`awaiting_payment` with its method unchanged until the company retries it in Remote, so a
failed debit is not an invitation to wire, even when accounts are present. Accounts can
differ from one payment to the next, so read them before every transfer rather than storing
them.

The endpoint answers 404 only while no payment stands behind the invoice. A passing
database fault surfaces as a 504 or a 500; retry either.

## Authentication

This endpoint accepts any one of the following token types:

- **Company-scoped access token** (`OAuth2AuthorizationCode`) — obtained by a company manager through the Authorization Code flow or the Refresh Token flow. See [Authentication for partners](https://developer.remote.com/docs/authentication-for-partners).
- **Company-scoped access token (assertion)** (`OAuth2CompanyManagerAssertion`) — obtained through the `urn:ietf:params:oauth:grant-type:jwt-bearer` grant for a company manager. See [OAuth Assertion](https://developer.remote.com/docs/authorization-method-oauth-assertion).
- **Customer API token** (`CustomerAPIToken`) — generated by the customer on their Integration Settings page, with the scopes they choose there. See [Authorization for customers](https://developer.remote.com/docs/authorization-for-customers).

## Scopes

Any one of the scopes in a token type's row is enough. `all:read` and `all:write` work too.

| Token type | Category | Read only Scope | Write only Scope (read access implicit) |
|---|---|---|---|
| Company-scoped access token | View pay-in bank details (`pay_in_details`) | View pay-in details (`pay_in_details:read`) | - |
| Company-scoped access token (assertion) | View pay-in bank details (`pay_in_details`) | View pay-in details (`pay_in_details:read`) | - |
| Customer API token | View pay-in bank details (`pay_in_details`) | View pay-in details (`pay_in_details:read`) | - |

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "CurrencyCode": {
        "description": "Currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format.",
        "example": "BRL",
        "maxLength": 3,
        "minLength": 3,
        "nullable": false,
        "title": "CurrencyCode",
        "type": "string"
      },
      "ActionError": {
        "properties": {
          "action": {
            "description": "The action that lead to the error message.",
            "type": "string"
          },
          "code": {
            "description": "An error code that describes the nature of the error.",
            "type": "string"
          },
          "message": {
            "description": "A developer friendly error message that gives details on what the error was and how it may be remedied.",
            "type": "string"
          }
        },
        "required": [
          "code",
          "message",
          "action"
        ],
        "title": "ActionError",
        "type": "object"
      },
      "ContractorInvoicePayInDetailsResponse": {
        "additionalProperties": false,
        "description": "Response schema to show the pay-in details of a Contractor Invoice",
        "example": {
          "data": {
            "pay_in_details": {
              "amount_due": 350000,
              "bank_accounts": [
                {
                  "account_holder": "Remote Technology Services, Inc",
                  "account_number": "70123456789",
                  "ach_routing_number": "021000089",
                  "address": {
                    "city": "New York",
                    "country": "United States",
                    "name": "Community Federal Savings Bank",
                    "postal_code": "10013",
                    "state": "NY",
                    "street": "388 Greenwich Street"
                  },
                  "bank_code": null,
                  "bank_name": "Citibank N.A.",
                  "branch_code": null,
                  "branch_name": null,
                  "bsb_code": null,
                  "charge": "OUR",
                  "clearing_code": null,
                  "cnaps_code": null,
                  "iban": null,
                  "ifsc": null,
                  "institution_number": null,
                  "intermediary_bank_code": null,
                  "sort_code": null,
                  "swift": "CITIUS33",
                  "transit_number": null,
                  "wire_routing_number": "021000089"
                }
              ],
              "currency": "USD",
              "due_date": "2024-06-15",
              "pay_in_method": "bank_transfer",
              "reference": "TR0000000042",
              "status": "awaiting_payment"
            }
          }
        },
        "properties": {
          "data": {
            "additionalProperties": false,
            "properties": {
              "pay_in_details": {
                "$ref": "#/components/schemas/ContractorInvoicePayInDetails"
              }
            },
            "required": [
              "pay_in_details"
            ],
            "type": "object"
          }
        },
        "required": [
          "data"
        ],
        "title": "ContractorInvoicePayInDetailsResponse",
        "type": "object"
      },
      "ContractorInvoicePayInMethod": {
        "description": "How Remote collects this payment: `bank_transfer` when the company wires it, `direct_debit` for a mandate-based collection, `card`, `prefunding_credit` when prefunded balance covers it, and `other` for anything else. Wire when this reads `bank_transfer`; Remote collects `direct_debit`, `card` and `prefunding_credit` itself and a transfer would pay twice. `not_selected` means Remote has not recorded a collection method: for Contractor of Record that lasts until the company starts the payment, so confirm the arrangement before wiring.",
        "enum": [
          "bank_transfer",
          "direct_debit",
          "card",
          "prefunding_credit",
          "other",
          "not_selected"
        ],
        "example": "bank_transfer",
        "title": "ContractorInvoicePayInMethod",
        "type": "string"
      },
      "NotFoundResponse": {
        "description": "Returned when the requested resource does not exist or is not accessible with the current authentication credentials.",
        "example": {
          "message": "{resource} not found"
        },
        "properties": {
          "message": {
            "description": "A message indicating which resource was not found.",
            "pattern": "Not Found",
            "type": "string"
          }
        },
        "title": "NotFoundResponse",
        "type": "object"
      },
      "UnprocessableEntityResponse": {
        "anyOf": [
          {
            "properties": {
              "errors": {
                "type": "object"
              }
            },
            "required": [
              "errors"
            ],
            "type": "object"
          },
          {
            "properties": {
              "message": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "$ref": "#/components/schemas/ParameterError"
                  },
                  {
                    "items": {
                      "$ref": "#/components/schemas/ParameterError"
                    },
                    "title": "ParameterErrors",
                    "type": "array"
                  },
                  {
                    "$ref": "#/components/schemas/ActionError"
                  },
                  {
                    "items": {
                      "$ref": "#/components/schemas/ActionError"
                    },
                    "title": "ActionErrors",
                    "type": "array"
                  }
                ]
              }
            },
            "required": [
              "message"
            ],
            "type": "object"
          }
        ],
        "example": {
          "errors": {
            "some_field": [
              "is invalid"
            ]
          }
        },
        "title": "UnprocessableEntityResponse",
        "type": "object"
      },
      "PayInBankAccount": {
        "additionalProperties": false,
        "description": "One of Remote's receiving accounts for this payment. Every key is always present and is `null` when the account does not carry it, so a program can bind to a fixed key set. This differs from the employer API's pay-in details in three ways: `address` is an object rather than a formatted string, each identifier has exactly one spelling, and the key set never varies by rail.",
        "example": {
          "account_holder": "Remote Technology Services, Inc",
          "account_number": "70123456789",
          "ach_routing_number": "021000089",
          "address": {
            "city": "New York",
            "country": "United States",
            "name": "Community Federal Savings Bank",
            "postal_code": "10013",
            "state": "NY",
            "street": "388 Greenwich Street"
          },
          "bank_code": null,
          "bank_name": "Citibank N.A.",
          "branch_code": null,
          "branch_name": null,
          "bsb_code": null,
          "charge": "OUR",
          "clearing_code": null,
          "cnaps_code": null,
          "iban": null,
          "ifsc": null,
          "institution_number": null,
          "intermediary_bank_code": null,
          "sort_code": null,
          "swift": "CITIUS33",
          "transit_number": null,
          "wire_routing_number": "021000089"
        },
        "properties": {
          "account_holder": {
            "example": "Remote Technology Services, Inc",
            "nullable": true,
            "type": "string"
          },
          "account_number": {
            "example": "70123456789",
            "nullable": true,
            "type": "string"
          },
          "ach_routing_number": {
            "example": "021000089",
            "nullable": true,
            "type": "string"
          },
          "address": {
            "$ref": "#/components/schemas/PayInBankAccountAddress"
          },
          "bank_code": {
            "nullable": true,
            "type": "string"
          },
          "bank_name": {
            "example": "Citibank N.A.",
            "nullable": true,
            "type": "string"
          },
          "branch_code": {
            "nullable": true,
            "type": "string"
          },
          "branch_name": {
            "nullable": true,
            "type": "string"
          },
          "bsb_code": {
            "nullable": true,
            "type": "string"
          },
          "charge": {
            "description": "Details of charge to select when sending the wire, so the full amount reaches Remote.",
            "enum": [
              "OUR",
              "BEN",
              "SHA"
            ],
            "type": "string"
          },
          "clearing_code": {
            "nullable": true,
            "type": "string"
          },
          "cnaps_code": {
            "nullable": true,
            "type": "string"
          },
          "iban": {
            "nullable": true,
            "type": "string"
          },
          "ifsc": {
            "nullable": true,
            "type": "string"
          },
          "institution_number": {
            "nullable": true,
            "type": "string"
          },
          "intermediary_bank_code": {
            "nullable": true,
            "type": "string"
          },
          "sort_code": {
            "nullable": true,
            "type": "string"
          },
          "swift": {
            "example": "CITIUS33",
            "nullable": true,
            "type": "string"
          },
          "transit_number": {
            "nullable": true,
            "type": "string"
          },
          "wire_routing_number": {
            "example": "021000089",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "account_holder",
          "bank_name",
          "address",
          "iban",
          "account_number",
          "swift",
          "ach_routing_number",
          "wire_routing_number",
          "sort_code",
          "bsb_code",
          "ifsc",
          "cnaps_code",
          "clearing_code",
          "institution_number",
          "transit_number",
          "bank_code",
          "branch_code",
          "branch_name",
          "intermediary_bank_code",
          "charge"
        ],
        "title": "PayInBankAccount",
        "type": "object"
      },
      "ContractorInvoicePaymentStatus": {
        "description": "Where the payment stands: `awaiting_payment` means Remote has not received the funds and the payment is still expected, `processing` that a collection is in flight, and `paid` that Remote has received the funds. `partially_paid` means Remote received some of the amount but not all of it, because the company underpaid or part of a collection failed after the rest settled; `amount_due` still shows the original total rather than what remains, and Remote follows up with the company on the outstanding balance directly. `blocked` means the payment is on a compliance hold: the reference stays valid, and the payment returns to `awaiting_payment` once Remote lifts it.",
        "enum": [
          "awaiting_payment",
          "partially_paid",
          "blocked",
          "processing",
          "paid"
        ],
        "example": "awaiting_payment",
        "title": "ContractorInvoicePaymentStatus",
        "type": "string"
      },
      "PayInBankAccountAddress": {
        "additionalProperties": false,
        "description": "The address the rail publishes with the account, or `null` when it publishes none. `name` is who the rail named on the address, usually its owner, but some accounts pair Remote's entity name with the bank's street, so do not derive whose premises these are from `name` alone. A null `name` means the rail did not say whose address it is.",
        "example": {
          "city": "New York",
          "country": "United States",
          "name": "Community Federal Savings Bank",
          "postal_code": "10013",
          "state": "NY",
          "street": "388 Greenwich Street"
        },
        "nullable": true,
        "properties": {
          "city": {
            "nullable": true,
            "type": "string"
          },
          "country": {
            "nullable": true,
            "type": "string"
          },
          "name": {
            "description": "The name the rail attached to the address, usually its owner (the bank, or the account holder), though not guaranteed to match the street beside it. Null when the rail publishes an address without naming anyone.",
            "nullable": true,
            "type": "string"
          },
          "postal_code": {
            "nullable": true,
            "type": "string"
          },
          "state": {
            "nullable": true,
            "type": "string"
          },
          "street": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "name",
          "street",
          "city",
          "state",
          "postal_code",
          "country"
        ],
        "title": "PayInBankAccountAddress",
        "type": "object"
      },
      "UuidSlug": {
        "description": "A unique identifier in UUID v4 format.",
        "example": "663e0b79-c893-45ff-a1b2-f6dcabc098b5",
        "format": "uuid",
        "title": "UuidSlug",
        "type": "string"
      },
      "TooManyRequestsResponse": {
        "description": "Returned when the API rate limit has been exceeded (HTTP 429). Wait before retrying. Check the `Retry-After` response header for the recommended wait time.",
        "example": {
          "message": "Too many requests"
        },
        "properties": {
          "message": {
            "pattern": "Too many requests",
            "type": "string"
          }
        },
        "title": "TooManyRequestsResponse",
        "type": "object"
      },
      "BadRequestResponse": {
        "description": "Returned when the request is malformed or contains invalid parameters. The message may be a simple string or a structured object with a code and detailed message.",
        "example": {
          "message": "invalid {resource}"
        },
        "oneOf": [
          {
            "properties": {
              "message": {
                "description": "A human-readable error message describing what was wrong with the request.",
                "type": "string"
              }
            },
            "required": [
              "message"
            ],
            "type": "object"
          },
          {
            "properties": {
              "message": {
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  }
                },
                "required": [
                  "code",
                  "message"
                ],
                "type": "object"
              }
            },
            "type": "object"
          }
        ],
        "title": "BadRequestResponse",
        "type": "object"
      },
      "NullableDate": {
        "description": "Optional UTC date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format",
        "example": "2021-07-01",
        "format": "date",
        "nullable": true,
        "title": "NullableDate",
        "type": "string"
      },
      "UnauthorizedResponse": {
        "description": "Returned when the request does not include valid authentication credentials. Ensure you are passing a valid OAuth2 access token or API token in the Authorization header.",
        "example": {
          "message": "Unauthorized"
        },
        "properties": {
          "message": {
            "pattern": "Unauthorized",
            "type": "string"
          }
        },
        "required": [
          "message"
        ],
        "title": "UnauthorizedResponse",
        "type": "object"
      },
      "ContractorInvoicePaymentReference": {
        "description": "The reference to quote when paying: the transaction receipt number, or the Remote invoice number for Contractor of Record. Put it in the transfer memo, with the company name; Remote matches an incoming transfer on it.",
        "example": "TR0000000042",
        "title": "ContractorInvoicePaymentReference",
        "type": "string"
      },
      "ParameterError": {
        "example": {
          "code": "invalid_param",
          "message": "Invalid parameter",
          "param": "employment_id"
        },
        "properties": {
          "code": {
            "description": "An error code that describes the nature of the error.",
            "type": "string"
          },
          "message": {
            "description": "A developer friendly error message that gives details on what the error was and how it may be remedied.",
            "type": "string"
          },
          "param": {
            "description": "The parameter that lead to the error message.",
            "type": "string"
          }
        },
        "required": [
          "code",
          "message",
          "param"
        ],
        "title": "ParameterError",
        "type": "object"
      },
      "ContractorInvoicePayInDetails": {
        "additionalProperties": false,
        "description": "What the company needs to pay this invoice: the payment it belongs to, how that payment is collected, and Remote's receiving accounts for it. `bank_accounts` is null once the funds are in flight or received, while the payment is on a compliance hold (`status: blocked`) or partly paid (`status: partially_paid`), and whenever Remote can publish no account. `pay_in_method` says whether a transfer is yours to send.",
        "example": {
          "amount_due": 350000,
          "bank_accounts": [
            {
              "account_holder": "Remote Technology Services, Inc",
              "account_number": "70123456789",
              "ach_routing_number": "021000089",
              "address": {
                "city": "New York",
                "country": "United States",
                "name": "Community Federal Savings Bank",
                "postal_code": "10013",
                "state": "NY",
                "street": "388 Greenwich Street"
              },
              "bank_code": null,
              "bank_name": "Citibank N.A.",
              "branch_code": null,
              "branch_name": null,
              "bsb_code": null,
              "charge": "OUR",
              "clearing_code": null,
              "cnaps_code": null,
              "iban": null,
              "ifsc": null,
              "institution_number": null,
              "intermediary_bank_code": null,
              "sort_code": null,
              "swift": "CITIUS33",
              "transit_number": null,
              "wire_routing_number": "021000089"
            }
          ],
          "currency": "USD",
          "due_date": "2024-06-15",
          "pay_in_method": "bank_transfer",
          "reference": "TR0000000042",
          "status": "awaiting_payment"
        },
        "properties": {
          "amount_due": {
            "$ref": "#/components/schemas/ContractorInvoicePaymentAmountDue"
          },
          "bank_accounts": {
            "description": "Remote's receiving accounts for this payment, present while `status` is `awaiting_payment` and the rail can publish them. Null for every other status, including `partially_paid`: `amount_due` there overstates what remains, so wiring against it would pay twice, and Remote follows up with the balance directly. Whether you should wire is a separate question that `pay_in_method` answers: Remote collects direct debit, card and prefunded payments itself.",
            "items": {
              "$ref": "#/components/schemas/PayInBankAccount"
            },
            "nullable": true,
            "type": "array"
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "due_date": {
            "$ref": "#/components/schemas/NullableDate"
          },
          "pay_in_method": {
            "$ref": "#/components/schemas/ContractorInvoicePayInMethod"
          },
          "reference": {
            "$ref": "#/components/schemas/ContractorInvoicePaymentReference"
          },
          "status": {
            "$ref": "#/components/schemas/ContractorInvoicePaymentStatus"
          }
        },
        "required": [
          "reference",
          "amount_due",
          "currency",
          "due_date",
          "status",
          "pay_in_method",
          "bank_accounts"
        ],
        "title": "ContractorInvoicePayInDetails",
        "type": "object"
      },
      "ForbiddenResponse": {
        "description": "Returned when the authenticated user or token does not have permission to perform the requested action. Check that the token has the required OAuth2 scopes and that the user has the necessary role.",
        "example": {
          "message": "Forbidden"
        },
        "properties": {
          "message": {
            "pattern": "Forbidden",
            "type": "string"
          }
        },
        "required": [
          "message"
        ],
        "title": "ForbiddenResponse",
        "type": "object"
      },
      "ContractorInvoicePaymentAmountDue": {
        "description": "Total amount of the payment in cents, shared by every invoice in it. This is the amount the payment was raised for, not a running balance: when `status` is `partially_paid` Remote has already received part of it and the outstanding balance is lower. Remote contacts the company directly with that balance; it is not published here.",
        "example": 350000,
        "title": "ContractorInvoicePaymentAmountDue",
        "type": "integer"
      }
    },
    "securitySchemes": {
      "CustomerAPIToken": {
        "description": "Authenticate using API Key generated by the customer in their Integration Settings page.\n",
        "scheme": "bearer",
        "type": "http"
      },
      "OAuth2": {
        "description": "Authenticate using OAuth 2.0 protocol.\n",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "/auth/oauth2/authorize",
            "scopes": {
              "company_department:read": "View departments: Read and list company departments",
              "webhook:write": "Manage webhooks: Set webhook callbacks and replay webhooks",
              "magic_link:write": "Create magic links: Create magic links",
              "offboarding:write": "Manage offboarding: Creates offboarding requests",
              "custom_field:write": "Manage custom fields: Create custom fields",
              "address:write": "Manage addresses: Create and update employee residential address",
              "expense:read": "View expenses: List and read expenses",
              "employment:write": "Manage employments: Create and update employments",
              "identity_verification:write": "Manage identity verification: Write identity verification data",
              "timesheet:write": "Manage timesheets: Create timesheets",
              "travel_letter:write": "Manage travel letters: Create travel letters",
              "all:read": "Read only: List and retrieve information about all resources",
              "incentive:read": "View incentives: List incentives and recurring incentives",
              "personal_detail:read": "View personal details: Read employee personal information",
              "invoices:write": "Manage invoices: Create invoices",
              "work_authorization:write": "Manage work authorizations: Create work authorization requests",
              "timeoff:write": "Manage timeoffs: Create, update and cancel timeoffs",
              "company_structure:read": "View company structure: Show company structure",
              "benefit_renewal:write": "Manage benefit renewals: Update benefit renewal requests",
              "benefit_offer:read": "View benefit offers: List benefit offers",
              "employment_documents": "Manage employment documents: Manage employment documents",
              "onboarding:write": "Manage onboarding: Cancel onboarding",
              "https://gateway.remote.com/company.manage": "Legacy scope. A new request for it gets `all:write`; tokens authorized before late March 2026 may still hold it. Many endpoints accept it, but not all: see the endpoint's `security` in the OpenAPI file",
              "project:write": "Manage projects: Create and update company projects and their leads and team members",
              "pay_in_details:read": "View pay-in details: Read the payment reference and Remote's bank details for paying contractor invoices",
              "payroll_run:read": "View payroll runs: List and show payroll runs",
              "risk_reserve:write": "Manage risk reserves: Create risk reserves for a company",
              "invoices": "Manage invoices: Manage invoices",
              "resignation_letter:read": "View resignation letters: Read resignation letters",
              "resignation:read": "View resignations: Read resignation requests",
              "convert_currency:read": "Convert currencies: Convert currencies",
              "all:write": "Full Access: Grant access to all scopes based on your current role permissions",
              "https://gateway.remote.com/employment.manage": "Legacy scope. A new request for it gets `all:write`; tokens authorized before late March 2026 may still hold it. Many endpoints accept it, but not all: see the endpoint's `security` in the OpenAPI file",
              "employments": "Manage employments: Create and manage employments",
              "probation_document:read": "View probation documents: Read probation completion letters and probation extensions documents",
              "company_admin": "Manage company resources: Create and manage company resources",
              "payroll": "Manage payroll runs: Manage payroll runs and calendars",
              "help_center_article:read": "View help articles: Read help center articles",
              "timesheet:read": "View timesheets: Read timesheets",
              "custom_field_value:write": "Manage custom field values: Create custom field values",
              "company_currencies:read": "View company currencies: List company supported currencies",
              "payslip:read": "View payslips: List and show employee's payslip",
              "pay_item:write": "Manage pay items: Create pay items for employments",
              "resignation:write": "Manage resignations: Validate resignation requests",
              "custom_field:read": "View custom fields: List custom fields",
              "payroll_calendar:read": "View payroll calendars: List payroll calendars",
              "contract_amendment:write": "Manage contract amendments: Create contract amendments",
              "offboarding:read": "View offboarding requests: Read and list offboarding requests",
              "timeoff:read": "View timeoffs: Read and list timeoffs",
              "pay_in_details": "View pay-in bank details: Read the payment reference and Remote's receiving bank accounts for paying invoices",
              "probation_document:write": "Manage probation documents: Create probation completion letters and probation extensions documents",
              "country:read": "View countries: Read and list countries",
              "webhook:read": "View webhooks: Read webhooks callback logs",
              "company_department:write": "Manage departments: Create company departments",
              "company_manager:read": "View managers: Read and list company managers",
              "pay_item:read": "View pay items: List pay items for employments",
              "contract_amendment:read": "View contract amendments: List and show contract amendments",
              "company:read": "View companies: Read and list companies",
              "sso_configuration:write": "Manage SSO: Set SSO configuration",
              "benefit_offer:write": "Manage benefit offers: Create benefit offers",
              "contract_eligibility:write": "Manage contract eligibility: Create contract eligibility for an employment",
              "benefit_renewal:read": "View benefit renewals: List benefit renewal requests",
              "background_check:read": "View background checks: Read and show background check requests",
              "custom_field_value:read": "View custom field values: List custom field values",
              "expense:write": "Manage expenses: Create expenses",
              "identity_verification:read": "View identity verification: Read identity verification data",
              "address:read": "View addresses: Read employee residential address",
              "document:write": "Manage documents: Write and update documents",
              "time_and_attendance": "Manage timeoffs: Manage timeoffs, leave-policies and timesheets",
              "employment_payments": "Manage expenses: Manage expenses and incentives",
              "form:read": "View forms: Read json schema forms",
              "work_authorization:read": "View work authorizations: List work authorization requests",
              "invoices:read": "View invoices: Read and list invoices",
              "incentive:write": "Manage incentives: Create incentives",
              "employment:read": "View employments: List and read employments",
              "contract:read": "View contracts: List employment contracts",
              "projects": "Manage projects: Create and manage company projects and their leads and team members",
              "company_manager:write": "Manage managers: Create and delete company managers",
              "travel_letter:read": "View travel letters: Read travel letters",
              "project:read": "View projects: List and read company projects",
              "document:read": "View documents: Read and list documents",
              "sso_configuration:read": "View SSO configuration: Read SSO configuration"
            },
            "tokenUrl": "/auth/oauth2/token"
          },
          "clientCredentials": {
            "scopes": {
              "all:read": "Read only: List and retrieve information about all resources",
              "all:write": "Full Access: Grant access to all scopes based on your current role permissions",
              "company:read": "View companies: Read and list companies",
              "company:write": "Manage companies: Create, Read and update companies",
              "company_admin": "Manage company resources: Create and manage company resources",
              "company_management": "Manage companies: Create and manage companies",
              "convert_currency:read": "Convert currencies: Convert currencies",
              "country:read": "View countries: Read and list countries",
              "employment_documents": "Manage employment documents: Manage employment documents",
              "employment_payments": "Manage expenses: Manage expenses and incentives",
              "employments": "Manage employments: Create and manage employments",
              "help_center_article:read": "View help articles: Read help center articles",
              "https://gateway.remote.com/company.manage": "Legacy scope, kept as sent. Some endpoints accept it, not all: see the endpoint's `security` in the OpenAPI file",
              "https://gateway.remote.com/employment.manage": "Legacy scope, kept as sent. Some endpoints accept it, not all: see the endpoint's `security` in the OpenAPI file",
              "invoices": "Manage invoices: Manage invoices",
              "payroll": "Manage payroll runs: Manage payroll runs and calendars",
              "payroll_calendar:read": "View payroll calendars: List payroll calendars",
              "pricing_plan:read": "View pricing plans: List pricing plans",
              "pricing_plan:write": "Manage pricing plans: Create pricing plans",
              "time_and_attendance": "Manage timeoffs: Manage timeoffs, leave-policies and timesheets",
              "webhook:read": "View webhooks: Read webhooks callback logs",
              "webhook:write": "Manage webhooks: Set webhook callbacks and replay webhooks"
            },
            "tokenUrl": "/auth/oauth2/token"
          }
        },
        "type": "oauth2"
      },
      "OAuth2AuthorizationCode": {
        "description": "Authenticate as the token authorizer using `authorization_code` / `refresh_token` grants in the OAuth 2.0 protocol.\n",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "/auth/oauth2/authorize",
            "refreshUrl": "/auth/oauth2/token",
            "scopes": {
              "company_department:read": "View departments: Read and list company departments",
              "webhook:write": "Manage webhooks: Set webhook callbacks and replay webhooks",
              "magic_link:write": "Create magic links: Create magic links",
              "offboarding:write": "Manage offboarding: Creates offboarding requests",
              "custom_field:write": "Manage custom fields: Create custom fields",
              "address:write": "Manage addresses: Create and update employee residential address",
              "expense:read": "View expenses: List and read expenses",
              "employment:write": "Manage employments: Create and update employments",
              "identity_verification:write": "Manage identity verification: Write identity verification data",
              "timesheet:write": "Manage timesheets: Create timesheets",
              "travel_letter:write": "Manage travel letters: Create travel letters",
              "all:read": "Read only: List and retrieve information about all resources",
              "incentive:read": "View incentives: List incentives and recurring incentives",
              "personal_detail:read": "View personal details: Read employee personal information",
              "invoices:write": "Manage invoices: Create invoices",
              "work_authorization:write": "Manage work authorizations: Create work authorization requests",
              "timeoff:write": "Manage timeoffs: Create, update and cancel timeoffs",
              "company_structure:read": "View company structure: Show company structure",
              "benefit_renewal:write": "Manage benefit renewals: Update benefit renewal requests",
              "benefit_offer:read": "View benefit offers: List benefit offers",
              "employment_documents": "Manage employment documents: Manage employment documents",
              "onboarding:write": "Manage onboarding: Cancel onboarding",
              "https://gateway.remote.com/company.manage": "Legacy scope. A new request for it gets `all:write`; tokens authorized before late March 2026 may still hold it. Many endpoints accept it, but not all: see the endpoint's `security` in the OpenAPI file",
              "project:write": "Manage projects: Create and update company projects and their leads and team members",
              "pay_in_details:read": "View pay-in details: Read the payment reference and Remote's bank details for paying contractor invoices",
              "payroll_run:read": "View payroll runs: List and show payroll runs",
              "risk_reserve:write": "Manage risk reserves: Create risk reserves for a company",
              "invoices": "Manage invoices: Manage invoices",
              "resignation_letter:read": "View resignation letters: Read resignation letters",
              "resignation:read": "View resignations: Read resignation requests",
              "convert_currency:read": "Convert currencies: Convert currencies",
              "all:write": "Full Access: Grant access to all scopes based on your current role permissions",
              "https://gateway.remote.com/employment.manage": "Legacy scope. A new request for it gets `all:write`; tokens authorized before late March 2026 may still hold it. Many endpoints accept it, but not all: see the endpoint's `security` in the OpenAPI file",
              "employments": "Manage employments: Create and manage employments",
              "probation_document:read": "View probation documents: Read probation completion letters and probation extensions documents",
              "company_admin": "Manage company resources: Create and manage company resources",
              "payroll": "Manage payroll runs: Manage payroll runs and calendars",
              "help_center_article:read": "View help articles: Read help center articles",
              "timesheet:read": "View timesheets: Read timesheets",
              "custom_field_value:write": "Manage custom field values: Create custom field values",
              "company_currencies:read": "View company currencies: List company supported currencies",
              "payslip:read": "View payslips: List and show employee's payslip",
              "pay_item:write": "Manage pay items: Create pay items for employments",
              "resignation:write": "Manage resignations: Validate resignation requests",
              "custom_field:read": "View custom fields: List custom fields",
              "payroll_calendar:read": "View payroll calendars: List payroll calendars",
              "contract_amendment:write": "Manage contract amendments: Create contract amendments",
              "offboarding:read": "View offboarding requests: Read and list offboarding requests",
              "timeoff:read": "View timeoffs: Read and list timeoffs",
              "pay_in_details": "View pay-in bank details: Read the payment reference and Remote's receiving bank accounts for paying invoices",
              "probation_document:write": "Manage probation documents: Create probation completion letters and probation extensions documents",
              "country:read": "View countries: Read and list countries",
              "webhook:read": "View webhooks: Read webhooks callback logs",
              "company_department:write": "Manage departments: Create company departments",
              "company_manager:read": "View managers: Read and list company managers",
              "pay_item:read": "View pay items: List pay items for employments",
              "contract_amendment:read": "View contract amendments: List and show contract amendments",
              "company:read": "View companies: Read and list companies",
              "sso_configuration:write": "Manage SSO: Set SSO configuration",
              "benefit_offer:write": "Manage benefit offers: Create benefit offers",
              "contract_eligibility:write": "Manage contract eligibility: Create contract eligibility for an employment",
              "benefit_renewal:read": "View benefit renewals: List benefit renewal requests",
              "background_check:read": "View background checks: Read and show background check requests",
              "custom_field_value:read": "View custom field values: List custom field values",
              "expense:write": "Manage expenses: Create expenses",
              "identity_verification:read": "View identity verification: Read identity verification data",
              "address:read": "View addresses: Read employee residential address",
              "document:write": "Manage documents: Write and update documents",
              "time_and_attendance": "Manage timeoffs: Manage timeoffs, leave-policies and timesheets",
              "employment_payments": "Manage expenses: Manage expenses and incentives",
              "form:read": "View forms: Read json schema forms",
              "work_authorization:read": "View work authorizations: List work authorization requests",
              "invoices:read": "View invoices: Read and list invoices",
              "incentive:write": "Manage incentives: Create incentives",
              "employment:read": "View employments: List and read employments",
              "contract:read": "View contracts: List employment contracts",
              "projects": "Manage projects: Create and manage company projects and their leads and team members",
              "company_manager:write": "Manage managers: Create and delete company managers",
              "travel_letter:read": "View travel letters: Read travel letters",
              "project:read": "View projects: List and read company projects",
              "document:read": "View documents: Read and list documents",
              "sso_configuration:read": "View SSO configuration: Read SSO configuration"
            },
            "tokenUrl": "/auth/oauth2/token"
          }
        },
        "type": "oauth2"
      },
      "OAuth2CompanyManagerAssertion": {
        "description": "Authenticate as a company manager using the `urn:ietf:params:oauth:grant-type:jwt-bearer` grant in the OAuth2 protocol,\nwith an assertion whose subject is `urn:remote-api:company-manager:user:<user_id>`, where `<user_id>` is the\ncompany manager's Remote `user_id`. Each user belongs to one company.\n\nOpenAPI has no flow type for this grant, so it is declared as a client credentials flow. Request the token\nfrom the token URL with this grant type and a signed assertion, not with `client_credentials`.\n\nRemote must allow the integration to act on behalf of users, and the integration must manage the user's company.\nRemote can also limit an integration to grants that carry a user's consent, such as the Authorization Code flow;\nthis grant is then refused.\n\nThe token acts as that company manager, and is accepted wherever a company manager's token from the\nAuthorization Code flow is.\n",
        "flows": {
          "clientCredentials": {
            "scopes": {
              "company_department:read": "View departments: Read and list company departments",
              "webhook:write": "Manage webhooks: Set webhook callbacks and replay webhooks",
              "magic_link:write": "Create magic links: Create magic links",
              "offboarding:write": "Manage offboarding: Creates offboarding requests",
              "custom_field:write": "Manage custom fields: Create custom fields",
              "address:write": "Manage addresses: Create and update employee residential address",
              "expense:read": "View expenses: List and read expenses",
              "employment:write": "Manage employments: Create and update employments",
              "identity_verification:write": "Manage identity verification: Write identity verification data",
              "timesheet:write": "Manage timesheets: Create timesheets",
              "travel_letter:write": "Manage travel letters: Create travel letters",
              "all:read": "Read only: List and retrieve information about all resources",
              "incentive:read": "View incentives: List incentives and recurring incentives",
              "personal_detail:read": "View personal details: Read employee personal information",
              "invoices:write": "Manage invoices: Create invoices",
              "work_authorization:write": "Manage work authorizations: Create work authorization requests",
              "timeoff:write": "Manage timeoffs: Create, update and cancel timeoffs",
              "company_structure:read": "View company structure: Show company structure",
              "benefit_renewal:write": "Manage benefit renewals: Update benefit renewal requests",
              "benefit_offer:read": "View benefit offers: List benefit offers",
              "employment_documents": "Manage employment documents: Manage employment documents",
              "onboarding:write": "Manage onboarding: Cancel onboarding",
              "https://gateway.remote.com/company.manage": "Legacy scope. A request that includes it gets a token with only `all:write`, so no assertion token holds it. Request `all:write` or a narrower scope instead",
              "project:write": "Manage projects: Create and update company projects and their leads and team members",
              "pay_in_details:read": "View pay-in details: Read the payment reference and Remote's bank details for paying contractor invoices",
              "payroll_run:read": "View payroll runs: List and show payroll runs",
              "risk_reserve:write": "Manage risk reserves: Create risk reserves for a company",
              "invoices": "Manage invoices: Manage invoices",
              "resignation_letter:read": "View resignation letters: Read resignation letters",
              "resignation:read": "View resignations: Read resignation requests",
              "convert_currency:read": "Convert currencies: Convert currencies",
              "all:write": "Full Access: Grant access to all scopes based on your current role permissions",
              "https://gateway.remote.com/employment.manage": "Legacy scope. A request that includes it gets a token with only `all:write`, so no assertion token holds it. Request `all:write` or a narrower scope instead",
              "employments": "Manage employments: Create and manage employments",
              "probation_document:read": "View probation documents: Read probation completion letters and probation extensions documents",
              "company_admin": "Manage company resources: Create and manage company resources",
              "payroll": "Manage payroll runs: Manage payroll runs and calendars",
              "help_center_article:read": "View help articles: Read help center articles",
              "timesheet:read": "View timesheets: Read timesheets",
              "custom_field_value:write": "Manage custom field values: Create custom field values",
              "company_currencies:read": "View company currencies: List company supported currencies",
              "payslip:read": "View payslips: List and show employee's payslip",
              "pay_item:write": "Manage pay items: Create pay items for employments",
              "resignation:write": "Manage resignations: Validate resignation requests",
              "custom_field:read": "View custom fields: List custom fields",
              "payroll_calendar:read": "View payroll calendars: List payroll calendars",
              "contract_amendment:write": "Manage contract amendments: Create contract amendments",
              "offboarding:read": "View offboarding requests: Read and list offboarding requests",
              "timeoff:read": "View timeoffs: Read and list timeoffs",
              "pay_in_details": "View pay-in bank details: Read the payment reference and Remote's receiving bank accounts for paying invoices",
              "probation_document:write": "Manage probation documents: Create probation completion letters and probation extensions documents",
              "country:read": "View countries: Read and list countries",
              "webhook:read": "View webhooks: Read webhooks callback logs",
              "company_department:write": "Manage departments: Create company departments",
              "company_manager:read": "View managers: Read and list company managers",
              "pay_item:read": "View pay items: List pay items for employments",
              "contract_amendment:read": "View contract amendments: List and show contract amendments",
              "company:read": "View companies: Read and list companies",
              "sso_configuration:write": "Manage SSO: Set SSO configuration",
              "benefit_offer:write": "Manage benefit offers: Create benefit offers",
              "contract_eligibility:write": "Manage contract eligibility: Create contract eligibility for an employment",
              "benefit_renewal:read": "View benefit renewals: List benefit renewal requests",
              "background_check:read": "View background checks: Read and show background check requests",
              "custom_field_value:read": "View custom field values: List custom field values",
              "expense:write": "Manage expenses: Create expenses",
              "identity_verification:read": "View identity verification: Read identity verification data",
              "address:read": "View addresses: Read employee residential address",
              "document:write": "Manage documents: Write and update documents",
              "time_and_attendance": "Manage timeoffs: Manage timeoffs, leave-policies and timesheets",
              "employment_payments": "Manage expenses: Manage expenses and incentives",
              "form:read": "View forms: Read json schema forms",
              "work_authorization:read": "View work authorizations: List work authorization requests",
              "invoices:read": "View invoices: Read and list invoices",
              "incentive:write": "Manage incentives: Create incentives",
              "employment:read": "View employments: List and read employments",
              "contract:read": "View contracts: List employment contracts",
              "projects": "Manage projects: Create and manage company projects and their leads and team members",
              "company_manager:write": "Manage managers: Create and delete company managers",
              "travel_letter:read": "View travel letters: Read travel letters",
              "project:read": "View projects: List and read company projects",
              "document:read": "View documents: Read and list documents",
              "sso_configuration:read": "View SSO configuration: Read SSO configuration"
            },
            "tokenUrl": "/auth/oauth2/token",
            "x-grantType": "urn:ietf:params:oauth:grant-type:jwt-bearer"
          }
        },
        "type": "oauth2"
      }
    }
  },
  "info": {
    "title": "Contractors",
    "version": "2.0.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/v1/contractor-invoices/{id}/pay-in-details": {
      "get": {
        "callbacks": {},
        "deprecated": false,
        "description": "Shows how the payment that collects a Contractor Invoice is paid in, and where to send it.\n\n`bank_accounts` carries Remote's receiving accounts while `status` is `awaiting_payment`.\nIt is null once the funds are in flight or received, while the payment sits on a compliance\nhold (`blocked`) or is partly paid (`partially_paid`, where `amount_due` overstates what\nremains and Remote follows up with the balance directly), and whenever Remote has no\naccount to publish.\n\n`pay_in_method` says whether a transfer is yours to send at all: Remote collects\n`direct_debit`, `card` and `prefunding_credit` payments itself, and a transfer would pay the\nsame invoices twice. That holds after a failed or disputed collection too: the payment reads\n`awaiting_payment` with its method unchanged until the company retries it in Remote, so a\nfailed debit is not an invitation to wire, even when accounts are present. Accounts can\ndiffer from one payment to the next, so read them before every transfer rather than storing\nthem.\n\nThe endpoint answers 404 only while no payment stands behind the invoice. A passing\ndatabase fault surfaces as a 504 or a 500; retry either.\n\n## Authentication\n\nThis endpoint accepts any one of the following token types:\n\n- **Company-scoped access token** (`OAuth2AuthorizationCode`) — obtained by a company manager through the Authorization Code flow or the Refresh Token flow. See [Authentication for partners](https://developer.remote.com/docs/authentication-for-partners).\n- **Company-scoped access token (assertion)** (`OAuth2CompanyManagerAssertion`) — obtained through the `urn:ietf:params:oauth:grant-type:jwt-bearer` grant for a company manager. See [OAuth Assertion](https://developer.remote.com/docs/authorization-method-oauth-assertion).\n- **Customer API token** (`CustomerAPIToken`) — generated by the customer on their Integration Settings page, with the scopes they choose there. See [Authorization for customers](https://developer.remote.com/docs/authorization-for-customers).\n\n## Scopes\n\nAny one of the scopes in a token type's row is enough. `all:read` and `all:write` work too.\n\n| Token type | Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|---|\n| Company-scoped access token | View pay-in bank details (`pay_in_details`) | View pay-in details (`pay_in_details:read`) | - |\n| Company-scoped access token (assertion) | View pay-in bank details (`pay_in_details`) | View pay-in details (`pay_in_details:read`) | - |\n| Customer API token | View pay-in bank details (`pay_in_details`) | View pay-in details (`pay_in_details:read`) | - |",
        "operationId": "get_v1_contractor-invoices_id_pay-in-details",
        "parameters": [
          {
            "description": "Contractor invoice identifier",
            "example": "9faabd0f-884d-4003-ae66-5e4920f194bf",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/UuidSlug"
            },
            "x-resource-type": "contractor_invoice"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContractorInvoicePayInDetailsResponse"
                }
              }
            },
            "description": "Pay-in details"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnprocessableEntityResponse"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequestsResponse"
                }
              }
            },
            "description": "Too many requests"
          }
        },
        "security": [
          {
            "OAuth2AuthorizationCode": [
              "https://gateway.remote.com/company.manage"
            ]
          },
          {
            "OAuth2AuthorizationCode": [
              "pay_in_details:read"
            ]
          },
          {
            "OAuth2AuthorizationCode": [
              "all:read"
            ]
          },
          {
            "OAuth2AuthorizationCode": [
              "all:write"
            ]
          },
          {
            "OAuth2CompanyManagerAssertion": [
              "pay_in_details:read"
            ]
          },
          {
            "OAuth2CompanyManagerAssertion": [
              "all:read"
            ]
          },
          {
            "OAuth2CompanyManagerAssertion": [
              "all:write"
            ]
          },
          {
            "CustomerAPIToken": []
          }
        ],
        "summary": "Show Contractor Invoice pay-in details",
        "tags": [
          "Invoices"
        ]
      }
    }
  },
  "security": [
    {
      "OAuth2": []
    }
  ],
  "servers": [
    {
      "url": "https://gateway.remote.com/",
      "variables": {}
    },
    {
      "url": "https://gateway.remote-sandbox.com/",
      "variables": {}
    }
  ],
  "tags": [
    {
      "name": "Employments"
    }
  ],
  "webhooks": {
    "contractor_invoice.employer_paid": {
      "post": {
        "deprecated": false,
        "description": "This event is triggered when Remote has confirmed receipt of the employer's\nfunds for a contractor invoice (the associated outstanding payment moves to\n`paid_in`). Payout to the contractor has not happened yet.\n\nThe payload is stateless. Use the contractor invoice ID and employment ID to retrieve current details.\n",
        "operationId": "contractor_invoice.employer_paid",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "example": {
                  "company_id": "123-example",
                  "contractor_invoice_id": "123-example",
                  "employment_id": "123-example",
                  "event_type": "contractor_invoice.employer_paid"
                },
                "properties": {
                  "company_id": {
                    "description": "The unique identifier of the related company.",
                    "type": "string"
                  },
                  "contractor_invoice_id": {
                    "description": "The unique identifier of the contractor invoice.",
                    "type": "string"
                  },
                  "employment_id": {
                    "description": "The unique identifier of the related employment.",
                    "type": "string"
                  },
                  "event_type": {
                    "description": "The webhook event type identifier.",
                    "type": "string"
                  }
                },
                "required": [
                  "event_type",
                  "contractor_invoice_id",
                  "employment_id",
                  "company_id"
                ]
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Any 200 response confirms that the webhook was delivered."
          }
        },
        "security": [],
        "summary": "contractor_invoice.employer_paid",
        "tags": [
          "Invoices"
        ]
      }
    },
    "contractor_invoice.funds_returned": {
      "post": {
        "deprecated": false,
        "description": "This event is triggered when the payout of a contractor invoice is returned — the funds were sent but the\ncontractor's bank rejected them, for example because of incorrect bank details. It is sent once per invoice:\nif a retry fails or is returned again, the event is not sent again.\n\nThe payload is stateless. Use the contractor invoice ID and employment ID to retrieve current details.\n",
        "operationId": "contractor_invoice.funds_returned",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "example": {
                  "company_id": "123-example",
                  "contractor_invoice_id": "123-example",
                  "employment_id": "123-example",
                  "event_type": "contractor_invoice.funds_returned"
                },
                "properties": {
                  "company_id": {
                    "description": "The unique identifier of the related company.",
                    "type": "string"
                  },
                  "contractor_invoice_id": {
                    "description": "The unique identifier of the contractor invoice.",
                    "type": "string"
                  },
                  "employment_id": {
                    "description": "The unique identifier of the related employment.",
                    "type": "string"
                  },
                  "event_type": {
                    "description": "The webhook event type identifier.",
                    "type": "string"
                  }
                },
                "required": [
                  "event_type",
                  "contractor_invoice_id",
                  "employment_id",
                  "company_id"
                ]
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Any 200 response confirms that the webhook was delivered."
          }
        },
        "security": [],
        "summary": "contractor_invoice.funds_returned",
        "tags": [
          "Invoices"
        ]
      }
    },
    "contractor_invoice.issued": {
      "post": {
        "deprecated": false,
        "description": "This event is triggered when a contractor invoice is issued for the first time —\neither submitted by the contractor on creation, or transitioned out of `draft`.\n\nThe payload is stateless. Use the contractor invoice ID and employment ID to retrieve current details.\n",
        "operationId": "contractor_invoice.issued",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "example": {
                  "company_id": "123-example",
                  "contractor_invoice_id": "123-example",
                  "employment_id": "123-example",
                  "event_type": "contractor_invoice.issued"
                },
                "properties": {
                  "company_id": {
                    "description": "The unique identifier of the related company.",
                    "type": "string"
                  },
                  "contractor_invoice_id": {
                    "description": "The unique identifier of the contractor invoice.",
                    "type": "string"
                  },
                  "employment_id": {
                    "description": "The unique identifier of the related employment.",
                    "type": "string"
                  },
                  "event_type": {
                    "description": "The webhook event type identifier.",
                    "type": "string"
                  }
                },
                "required": [
                  "event_type",
                  "contractor_invoice_id",
                  "employment_id",
                  "company_id"
                ]
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Any 200 response confirms that the webhook was delivered."
          }
        },
        "security": [],
        "summary": "contractor_invoice.issued",
        "tags": [
          "Invoices"
        ]
      }
    },
    "contractor_invoice.paid_out": {
      "post": {
        "deprecated": false,
        "description": "This event is triggered when a contractor invoice has been paid out — funds\nhave been delivered to the contractor. This is the terminal lifecycle event.\n\nThe payload is stateless. Use the contractor invoice ID and employment ID to retrieve current details.\n",
        "operationId": "contractor_invoice.paid_out",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "example": {
                  "company_id": "123-example",
                  "contractor_invoice_id": "123-example",
                  "employment_id": "123-example",
                  "event_type": "contractor_invoice.paid_out"
                },
                "properties": {
                  "company_id": {
                    "description": "The unique identifier of the related company.",
                    "type": "string"
                  },
                  "contractor_invoice_id": {
                    "description": "The unique identifier of the contractor invoice.",
                    "type": "string"
                  },
                  "employment_id": {
                    "description": "The unique identifier of the related employment.",
                    "type": "string"
                  },
                  "event_type": {
                    "description": "The webhook event type identifier.",
                    "type": "string"
                  }
                },
                "required": [
                  "event_type",
                  "contractor_invoice_id",
                  "employment_id",
                  "company_id"
                ]
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Any 200 response confirms that the webhook was delivered."
          }
        },
        "security": [],
        "summary": "contractor_invoice.paid_out",
        "tags": [
          "Invoices"
        ]
      }
    },
    "contractor_invoice.pay_out_failed": {
      "post": {
        "deprecated": false,
        "description": "This event is triggered when the payout of a contractor invoice fails — the funds could not be sent to the\ncontractor, for example because of an issue with the contractor's bank details. It is sent once per invoice:\nif a retry fails again, the event is not sent again.\n\nThe payload is stateless. Use the contractor invoice ID and employment ID to retrieve current details.\n",
        "operationId": "contractor_invoice.pay_out_failed",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "example": {
                  "company_id": "123-example",
                  "contractor_invoice_id": "123-example",
                  "employment_id": "123-example",
                  "event_type": "contractor_invoice.pay_out_failed"
                },
                "properties": {
                  "company_id": {
                    "description": "The unique identifier of the related company.",
                    "type": "string"
                  },
                  "contractor_invoice_id": {
                    "description": "The unique identifier of the contractor invoice.",
                    "type": "string"
                  },
                  "employment_id": {
                    "description": "The unique identifier of the related employment.",
                    "type": "string"
                  },
                  "event_type": {
                    "description": "The webhook event type identifier.",
                    "type": "string"
                  }
                },
                "required": [
                  "event_type",
                  "contractor_invoice_id",
                  "employment_id",
                  "company_id"
                ]
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Any 200 response confirms that the webhook was delivered."
          }
        },
        "security": [],
        "summary": "contractor_invoice.pay_out_failed",
        "tags": [
          "Invoices"
        ]
      }
    },
    "contractor_invoice.payment_initiated": {
      "post": {
        "deprecated": false,
        "description": "This event is triggered when an employer initiates payment on a contractor invoice\nfor the first time (transition to `pending_payment` from `issued` or `approved`).\n\nThe payload is stateless. Use the contractor invoice ID and employment ID to retrieve current details.\n",
        "operationId": "contractor_invoice.payment_initiated",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "example": {
                  "company_id": "123-example",
                  "contractor_invoice_id": "123-example",
                  "employment_id": "123-example",
                  "event_type": "contractor_invoice.payment_initiated"
                },
                "properties": {
                  "company_id": {
                    "description": "The unique identifier of the related company.",
                    "type": "string"
                  },
                  "contractor_invoice_id": {
                    "description": "The unique identifier of the contractor invoice.",
                    "type": "string"
                  },
                  "employment_id": {
                    "description": "The unique identifier of the related employment.",
                    "type": "string"
                  },
                  "event_type": {
                    "description": "The webhook event type identifier.",
                    "type": "string"
                  }
                },
                "required": [
                  "event_type",
                  "contractor_invoice_id",
                  "employment_id",
                  "company_id"
                ]
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Any 200 response confirms that the webhook was delivered."
          }
        },
        "security": [],
        "summary": "contractor_invoice.payment_initiated",
        "tags": [
          "Invoices"
        ]
      }
    },
    "employment.contractor_management_plan.updated": {
      "post": {
        "deprecated": false,
        "description": "This event is triggered when a contractor's plan changes between Contractor Management (CM)\nand Contractor Management Plus (CM+).\n\nThe payload is stateless. Use the employment endpoint to retrieve the current plan details.\n",
        "operationId": "employment.contractor_management_plan.updated",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "example": {
                  "company_id": "129d02bc-dd6a-11ed-ac99-cb057df06a33",
                  "employment_id": "2614f814-b08e-4c8e-8c4d-ddbcc4692d99",
                  "event_type": "employment.contractor_management_plan.updated"
                },
                "properties": {
                  "company_id": {
                    "description": "The unique identifier of the related company.",
                    "type": "string"
                  },
                  "employment_id": {
                    "description": "The unique identifier of the related employment.",
                    "type": "string"
                  },
                  "event_type": {
                    "description": "The webhook event type identifier.",
                    "type": "string"
                  }
                },
                "required": [
                  "event_type",
                  "employment_id",
                  "company_id"
                ]
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Any 200 response confirms that the webhook was delivered."
          }
        },
        "security": [],
        "summary": "employment.contractor_management_plan.updated",
        "tags": [
          "Employments"
        ]
      }
    },
    "employment.contractor_of_record_termination.cancelled": {
      "post": {
        "deprecated": false,
        "description": "This event is triggered when a contractor of record termination request is cancelled.\n\nThe payload is stateless. Use the termination request ID and employment ID to retrieve the current details.\n",
        "operationId": "employment.contractor_of_record_termination.cancelled",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "example": {
                  "company_id": "123-example",
                  "employment_id": "123-example",
                  "event_type": "employment.contractor_of_record_termination.cancelled",
                  "termination_request_id": "123-example"
                },
                "properties": {
                  "company_id": {
                    "description": "The unique identifier of the related company.",
                    "type": "string"
                  },
                  "employment_id": {
                    "description": "The unique identifier of the related employment.",
                    "type": "string"
                  },
                  "event_type": {
                    "description": "The webhook event type identifier.",
                    "type": "string"
                  },
                  "termination_request_id": {
                    "description": "The unique identifier of the termination request.",
                    "type": "string"
                  }
                },
                "required": [
                  "event_type",
                  "termination_request_id",
                  "employment_id",
                  "company_id"
                ]
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Any 200 response confirms that the webhook was delivered."
          }
        },
        "security": [],
        "summary": "employment.contractor_of_record_termination.cancelled",
        "tags": [
          "Employments"
        ]
      }
    },
    "employment.cor_hiring.invoice_created": {
      "post": {
        "deprecated": false,
        "description": "This event is triggered when a invoice report is created for a employment.",
        "operationId": "employment.cor_hiring.invoice_created",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "example": {
                  "company_id": "f2a1b3c4-d5e6-7f8g-9h0i-j1k2l3m4n5o6",
                  "employment_id": "f8e9d2c7-3a1b-4f5c-9e6d-8b7a2c1d0e3f",
                  "event_type": "employment.cor_hiring.invoice_created",
                  "invoice_report_id": "c7f8e9d2-3a1b-4f5c-9e6d-8b7a2c1d0e3f"
                },
                "properties": {
                  "company_id": {
                    "type": "string"
                  },
                  "employment_id": {
                    "type": "string"
                  },
                  "event_type": {
                    "type": "string"
                  },
                  "invoice_report_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "event_type",
                  "employment_id",
                  "invoice_report_id",
                  "company_id"
                ]
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Any 200 response confirms that the webhook was delivered."
          }
        },
        "security": [],
        "summary": "employment.cor_hiring.invoice_created",
        "tags": [
          "COR Hiring"
        ]
      }
    },
    "employment.cor_hiring.proof_of_payment_accepted": {
      "post": {
        "deprecated": false,
        "description": "This event is triggered when a proof of payment is accepted for a contractor of record employment.",
        "operationId": "employment.cor_hiring.proof_of_payment_accepted",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "example": {
                  "company_id": "f2a1b3c4-d5e6-7f8g-9h0i-j1k2l3m4n5o6",
                  "employment_id": "f8e9d2c7-3a1b-4f5c-9e6d-8b7a2c1d0e3f",
                  "event_type": "employment.cor_hiring.proof_of_payment_accepted",
                  "proof_of_payment_id": "c7f8e9d2-3a1b-4f5c-9e6d-8b7a2c1d0e3f"
                },
                "properties": {
                  "company_id": {
                    "type": "string"
                  },
                  "employment_id": {
                    "type": "string"
                  },
                  "event_type": {
                    "type": "string"
                  },
                  "proof_of_payment_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "event_type",
                  "employment_id",
                  "proof_of_payment_id",
                  "company_id"
                ]
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Any 200 response confirms that the webhook was delivered."
          }
        },
        "security": [],
        "summary": "employment.cor_hiring.proof_of_payment_accepted",
        "tags": [
          "COR Hiring"
        ]
      }
    },
    "employment.cor_hiring.proof_of_payment_submitted": {
      "post": {
        "deprecated": false,
        "description": "This event is triggered when a proof of payment is submitted for a contractor of record employment.",
        "operationId": "employment.cor_hiring.proof_of_payment_submitted",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "example": {
                  "company_id": "f2a1b3c4-d5e6-7f8g-9h0i-j1k2l3m4n5o6",
                  "employment_id": "f8e9d2c7-3a1b-4f5c-9e6d-8b7a2c1d0e3f",
                  "event_type": "employment.cor_hiring.proof_of_payment_submitted",
                  "proof_of_payment_id": "c7f8e9d2-3a1b-4f5c-9e6d-8b7a2c1d0e3f"
                },
                "properties": {
                  "company_id": {
                    "type": "string"
                  },
                  "employment_id": {
                    "type": "string"
                  },
                  "event_type": {
                    "type": "string"
                  },
                  "proof_of_payment_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "event_type",
                  "employment_id",
                  "proof_of_payment_id",
                  "company_id"
                ]
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Any 200 response confirms that the webhook was delivered."
          }
        },
        "security": [],
        "summary": "employment.cor_hiring.proof_of_payment_submitted",
        "tags": [
          "COR Hiring"
        ]
      }
    }
  }
}
```