---
title: "Platform owner: create a partner and their code; application_id marks that application accepted"
method: POST
path: "/api/v1/platform/partners"
---

# Platform owner: create a partner and their code; application_id marks that application accepted

`POST /api/v1/platform/partners`

## Request

- Base URL: `http://127.0.0.1:4310`
- URL: `http://127.0.0.1:4310/api/v1/platform/partners`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `sfb_session`

## Request body

- object
  - `name` string, required
  - `business` string, nullable
  - `email` string, email, nullable
  - `phone` string, nullable
  - `percent` number: Share of subscription fees, default 20
  - `months` integer: Months from the first payment the fee runs for, default 12
  - `notes` string, nullable
  - `code` string, required: Partner code for the link ?ref=CODE; stored upper case and never changed once issued
  - `application_id` string, uuid

## Response `201`

OK

- object

## Other responses

- `400`: Validation error
- `401`: Unauthenticated
- `403`: Forbidden
- `404`: Not found
- `409`: Conflict or invalid state

---

[API](https://skmtc.dev/scalingfirm/apis/tsf-booking-api.md) · [All operations](https://skmtc.dev/scalingfirm/apis/tsf-booking-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scalingfirm/apis/tsf-booking-api/revisions/81704199cd37?raw)
