---
title: "Create an earning code"
method: POST
path: "/earning_codes (COPY)"
---

# Create an earning code

`POST /earning_codes (COPY)`

## Request

- Base URL: `https://sandbox.checkhq.com`
- URL: `https://sandbox.checkhq.com/earning_codes (COPY)`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/checkhq/apis/check-api/docs/earning_codes%20(COPY)/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- object
  - `company` string, required
  - `name` string, required
  - `type` string, required
  - `metadata` string, json: Additional loosely structured information to associate with the earning code

## Response `200`

200

- object

## Other responses

- `400`: 400

## Changes

- **2026-11-03** `5a54f5eb888b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/checkhq/apis/check-api/changes/earning_codes%20%28COPY%29/post.md)

---

[API](https://skmtc.dev/checkhq/apis/check-api.md) - [All operations](https://skmtc.dev/checkhq/apis/check-api/llms.txt) - [OpenAPI document](https://skmtc.dev/checkhq/apis/check-api/revisions/5a54f5eb888b?raw)
