---
title: "Create revenue type"
method: POST
path: "/admin/revenue_types"
tags: ["Revenue types"]
---

# Create revenue type

`POST /admin/revenue_types`

## Request

- Base URL: `https://api.pipelinecrm.com/api/v3`
- URL: `https://api.pipelinecrm.com/api/v3/admin/revenue_types`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer and API key in header `app-key`
  - API key in query parameter `api_key` and API key in query parameter `app_key`

## Request body

- object
  - `revenue_type` RevenueTypeWritable
    - `created_at` string: Timestamp when the record was created (time zone in user's time zone).
    - `updated_at` string: Timestamp when the record was last touched (time zone in user's time zone).
    - `name` string: The name of the revenue type
    - `position` integer: The position in a list that this revenue type should appear in
    - `is_default` boolean: There can only be one default revenue type at a time. Setting this to `true` for a revenue type will update all other revenue types to not be the default

## Response `200`

Successful Response

- RevenueTypeAll
  - `id` integer: Unique identifier
  - `created_at` string: Timestamp when the record was created (time zone in user's time zone).
  - `updated_at` string: Timestamp when the record was last touched (time zone in user's time zone).
  - `name` string: The name of the revenue type
  - `position` integer: The position in a list that this revenue type should appear in
  - `is_default` boolean: There can only be one default revenue type at a time. Setting this to `true` for a revenue type will update all other revenue types to not be the default

## Other responses

- `403`: The credentials are valid but this user may not perform the action (permissions, a read-only token, or API access switched off).

---

[API](https://skmtc.dev/pipelinecrm/apis/pipeline-crm-api.md) · [All operations](https://skmtc.dev/pipelinecrm/apis/pipeline-crm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pipelinecrm/apis/pipeline-crm-api/revisions/53ebfcc83597?raw)
