---
title: "Seed a contractor rate"
method: POST
path: "/v1/sandbox/contractors/employments/{employment_id}/rates"
tags: ["Testing & Sandbox", "Sandbox"]
---

# Seed a contractor rate

`POST /v1/sandbox/contractors/employments/{employment_id}/rates`

## Request

- Base URL: `https://gateway.remote.com`
- URL: `https://gateway.remote.com/v1/sandbox/contractors/employments/{employment_id}/rates`
- Auth: one of:
  - OAuth 2
    - Authorization code: `/auth/oauth2/authorize`
    - Token URL: `/auth/oauth2/token`
  - OAuth 2
    - Client credentials
    - Token URL: `/auth/oauth2/token`
  - HTTP bearer

Sets the contractor's main rate, the same way an employer's rate edit does. A main rate without a
`service_start_date` is updated in place and keeps its `id`. A main rate with one belongs to a
Statement of Work and is kept: seeding adds a new main rate beside it, and the list endpoint
returns both while that Statement of Work is in force. This lets the rate endpoints be exercised
without going through contract signature. Without `statement_of_work`, Contractor of Record
contractors, including ones not active yet, and Contractor Management Plus contractors whose
contract is signed cannot be seeded, since their Statement of Work sets the rate: the endpoint
returns `422`.

The currency is derived from the legal entity the contractor is paid in by. A rate in a
currency the contractor cannot be paid in is rejected with `422`.

With `statement_of_work`, the rate comes from a signed Statement of Work instead, made from
Remote's templates as signature makes one, so the rate carries the Statement of Work's service
dates and its contract documents are listed and open like any other. A contractor with no signed
Contractor Services Agreement from Remote's template gets one, signed, which holds their first
Statement of Work and sets the main rate. Each later seed adds a Statement of Work document, whose
rate is the main rate only when the contractor has none. This works for Contractor Management,
Contractor Management Plus and Contractor of Record contractors, whether or not Statements of Work
are turned on for the company, but only for an active contractor. The company's owner makes and
signs the documents for the company, so the partner needs only the contractor rate permissions
this endpoint asks for. No email or in-app notification is sent, and the checks an employer's rate
change goes through, such as a Contractor of Record contractor's risk reserve, are skipped. As
when an employer makes a new contract document, the contractor's documents that are not signed
yet, such as a draft agreement, are archived. The `contract_document.status.changed` webhook fires
for the signed document and for each archived one, as when an employer makes and signs a document.
Without `pay_frequency` a rate is invoiced monthly; a `one_off` rate is paid on completion of the
services and takes no `pay_frequency`.

The Statement of Work goes through the contractor's own contract details form, so its rules apply:
for a Contractor Management Plus contractor a `service_start_date` in the past is rejected with
`422`, while other contractors' Statements of Work may start in the past. A name another Statement
of Work of the contractor already has with the same start date, a blank name, an end date before
the start date, an `amount` with more than two decimal places or a `pay_frequency` on a `one_off`
rate is rejected with `422`, and nothing is seeded. Seeds without a name are never treated as
duplicates. A contractor whose Contractor Management Plus upgrade waits for its agreement to be
signed is rejected with `422` too: seed once the upgrade has started, which happens shortly after
the agreement is signed, or cancel the upgrade with a `downgrade` first.

This endpoint is only available in Sandbox, otherwise it will respond with a 404.

## 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).

## Path parameters

- `employment_id` string, required

## Headers

- `Authorization` string, required

## Request body

- SandboxCreateContractorRateParams: Parameters for seeding a contractor rate in Sandbox.
  - `amount` string, required: The amount paid per `type`, in the major unit, e.g. 103.83.
  - `pay_frequency` 'weekly' | 'bi_weekly' | 'semi_monthly' | 'monthly', nullable: How often the contractor is paid. Must be null or omitted for a `one_off` rate.
  - `statement_of_work` SandboxStatementOfWorkParams: Seeds the rate from a signed Statement of Work, whether or not Statements of Work are turned on for the company. Omit it to set the main rate as an employer's rate edit does.
    - `name` string, nullable: The Statement of Work's name, which can't be blank. Another Statement of Work of the contractor with the same name, ignoring case and spaces, can't start on the same date.
    - `service_end_date` string, date, nullable: The last day of the services. Omit it for services with no end date.
    - `service_start_date` string, date, required: The day the services start, and the rate with them.
  - `type` 'hourly' | 'daily' | 'weekly' | 'monthly' | 'one_off', required: The unit the amount is paid per.

## Response `201`

Created

- SandboxContractorRateResponse: The contractor rate that was seeded.
  - `data` ContractorRate, required: A rate configured for a contractor, with the dates of the contract it is paid under and, when a Statement of Work established it, that Statement of Work's service dates. `type` discriminates the payment mode: `one_off` is a single payment on completion of services; any other value is paid per pay period, where `type` is the calculation unit and `pay_frequency` the invoicing cadence. `type` and `pay_frequency` list every value Remote stores. A new value is announced as an API change before it appears.
    - `amount` MoneyResponse, required: Monetary amount and currency. `amount` is a decimal string in the major unit, e.g. 109.87.
      - `amount` string, required
      - `currency` CurrencyWithoutSlug, required: Currency structure without the slug, eg: built from ex_money
        - `code` string, required
        - `name` string, required
        - `symbol` string, required
    - `contract_expiration_date` string, date, nullable, required: Expiration date of the contractor's active contract (or the last active one for ended engagements). This is not a termination date. Null for an open-ended contract, and when the contractor has no contract on record.
    - `contract_start_date` string, date, nullable, required: Date the contractor started working under their active contract (or the last active one for ended engagements). This is the work start date, which can precede the date the contract became effective. Null when the contractor has no contract on record.
    - `id` string, uuid, required: Unique identifier of the rate.
    - `pay_frequency` 'weekly' | 'bi_weekly' | 'semi_monthly' | 'monthly', nullable, required: How often the contractor is paid. Always null for `one_off` rates. Can be null for a recurring rate when the company did not record a frequency.
    - `service_end_date` string, date, nullable, required: Planned end date of those services. The engagement continues month to month after it until the Statement of Work is replaced or ended, so the rate stays listed. Null for open-ended services and whenever `service_start_date` is null.
    - `service_start_date` string, date, nullable, required: Date the services under the Statement of Work that established this rate begin. Null when no Statement of Work record established the rate: one the company recorded itself, or one signed before Remote recorded service terms.
    - `statement_of_work` ContractorRateStatementOfWork, nullable, required: The Statement of Work that established the rate. Null when no Statement of Work record backs the rate: a rate the company entered or edited itself, or a rate from a Statement of Work signed before Remote kept a record of each Statement of Work. When the company edits a rate after its Statement of Work is signed, the edit is listed as a new main rate with a null `statement_of_work`, and the signed rate stays listed with its reference while that Statement of Work is in force. The main rate is listed whatever its Statement of Work's state, so its reference can name one that was later replaced or ended. A new version of a signed Statement of Work is a new record: its rate has a new `id` and a `version` one higher. The Statement of Work's name is on its document: read it from the contract documents endpoints with `contract_document_id`.
      - `contract_document_id` string, required: ID of the signed document that carries the Statement of Work, as the contract documents endpoints return it. For a Statement of Work inside a Contractor Services Agreement, the agreement's document.
      - `id` string, uuid, required: Unique identifier of this version of the Statement of Work. Edits made before signature keep it; each new version gets a new one.
      - `version` integer, required: 1 for a new Statement of Work, one higher for each new version that replaces it.
    - `type` 'hourly' | 'daily' | 'weekly' | 'monthly' | 'one_off', required: The unit the amount is paid per.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `422`: Unprocessable Entity
- `429`: Too many requests

## Changes

- **2026-12-01** `830df2c44d2d`: 1 info
  - the `message` response's property pattern `Not Found` was removed for the status `404`
- **2026-11-23** `2c3fd61067d8`: 1 info
  - added the new optional request property `statement_of_work`
- **2026-11-12** `2bf176b04bfd`: 1 info
  - added the required property `data/statement_of_work` to the response with the `201` status
- **2026-10-29** `08a94261fea3`: 1 info
  - the endpoint scheme security `OAuth2CompanyManagerAssertion` was added to the API
- **2026-10-28** `38d518261d22`: 3 info
  - the endpoint scheme security `CustomerAPIToken` was added to the API
  - the endpoint scheme security `OAuth2AuthorizationCode` was added to the API
  - the endpoint scheme security `CustomerAPIToken AND OAuth2AuthorizationCode` was removed from the API

[Operation history](https://skmtc.dev/remote-com/apis/remote-api/changes/v1/sandbox/contractors/employments/:employment_id/rates/post.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)
