---
title: "Show the Contractor Invoice Sequence"
method: GET
path: "/v1/contractor-invoice-sequence"
tags: ["Contractors", "Invoices"]
---

# Show the Contractor Invoice Sequence

`GET /v1/contractor-invoice-sequence`

## Request

- Base URL: `https://gateway.remote.com`
- URL: `https://gateway.remote.com/v1/contractor-invoice-sequence`
- Auth: one of:
  - OAuth 2
    - Authorization code: `/auth/oauth2/authorize`
    - Token URL: `/auth/oauth2/token` scopes: `https://gateway.remote.com/company.manage`
  - OAuth 2
    - Authorization code: `/auth/oauth2/authorize`
    - Token URL: `/auth/oauth2/token` scopes: `invoices:read`
  - OAuth 2
    - Authorization code: `/auth/oauth2/authorize`
    - Token URL: `/auth/oauth2/token` scopes: `all:read`
  - OAuth 2
    - Authorization code: `/auth/oauth2/authorize`
    - Token URL: `/auth/oauth2/token` scopes: `all:write`
  - OAuth 2
    - Client credentials
    - Token URL: `/auth/oauth2/token` scopes: `invoices:read`
  - OAuth 2
    - Client credentials
    - Token URL: `/auth/oauth2/token` scopes: `all:read`
  - OAuth 2
    - Client credentials
    - Token URL: `/auth/oauth2/token` scopes: `all:write`
  - HTTP bearer

Shows the company's contractor invoice sequence: the pattern its contractor invoice numbers follow.

Returns 404 when the company has no sequence, or when its sequence is turned off. In that case invoice
numbers aren't generated from a sequence, and the number sent when creating an invoice schedule is used.
When the sequence is enabled, invoice numbers come from it and a number sent on a schedule is not used.

## 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 | Manage invoices (`invoices`) | View invoices (`invoices:read`) | Manage invoices (`invoices:write`) |
| Company-scoped access token (assertion) | Manage invoices (`invoices`) | View invoices (`invoices:read`) | Manage invoices (`invoices:write`) |
| Customer API token | Manage invoices (`invoices`) | View invoices (`invoices:read`) | Manage invoices (`invoices:write`) |

## Response `200`

Success

- ContractorInvoiceSequenceResponse: Response schema to show the company's contractor invoice sequence
  - `data` object, required
    - `contractor_invoice_sequence` ContractorInvoiceSequence, required: The company's contractor invoice sequence. When it is enabled, invoice numbers are generated from it and a number sent on an invoice schedule is not used.
      - `enabled` boolean, required
      - `fields` ContractorInvoiceSequenceField[], required: Ordered list of fields that make up the invoice number.
        - `custom_field_definition_slug` string
        - `format` string
        - `initial_number` integer
        - `padding` integer
        - `reset_frequency` string
        - `scope` 'company' | 'contractor'
        - `text` string
        - `type` 'date_format' | 'text' | 'invoice_counter' | 'custom_field' | 'employment_short_slug', required
      - `id` string, uuid, required: A unique identifier in UUID v4 format.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

## Changes

- **2026-12-01** `777f36f27c65`: 4 info
  - the security scope `https://gateway.remote.com/company.manage` was added to the endpoint's security scheme `OAuth2AuthorizationCode`
  - the security scope `invoices:read` was added to the endpoint's security scheme `OAuth2CompanyManagerAssertion`
  - the security scope `all:write` was removed from the endpoint's security scheme `OAuth2AuthorizationCode`
  - the security scope `all:write` was removed from the endpoint's security scheme `OAuth2CompanyManagerAssertion`
- **2026-12-01** `a7797b614386`: 4 info
  - the security scope `https://gateway.remote.com/company.manage` was added to the endpoint's security scheme `OAuth2AuthorizationCode`
  - the security scope `invoices:read` was added to the endpoint's security scheme `OAuth2CompanyManagerAssertion`
  - the security scope `all:write` was removed from the endpoint's security scheme `OAuth2AuthorizationCode`
  - the security scope `all:write` was removed from the endpoint's security scheme `OAuth2CompanyManagerAssertion`
- …earlier changes not shown

[Operation history](https://skmtc.dev/remote-com/apis/remote-api/changes/v1/contractor-invoice-sequence/get.md)

---

[API](https://skmtc.dev/remote-com/apis/remote-api.md) - [All operations](https://skmtc.dev/remote-com/apis/remote-api/llms.txt) - [OpenAPI document](https://skmtc.dev/remote-com/apis/remote-api/revisions/777f36f27c65?raw)
