---
title: "Create Split"
method: POST
path: "/api/partners/split-bill"
tags: ["Partners"]
---

# Create Split

`POST /api/partners/split-bill`

## Request

- Base URL: `https://api.earmarkiq.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.earmarkiq.app/api/partners/split-bill`
- Auth: HTTP bearer

Create a new bill split between partners.

## Request body

- SplitBillCreate
  - `description` string, required
  - `total_amount` union, required
    - number
    - string
  - `split_type` string
  - `user1_share` union
    - number
    - string
  - `user2_share` union
    - number
    - string
  - `i_paid` boolean
  - `transaction_id` string, uuid, nullable

## Response `201`

Successful Response

- SplitBillResponse
  - `id` string, required
  - `description` string, required
  - `total_amount` number, required
  - `split_type` string, required
  - `user1_share` number, required
  - `user2_share` number, required
  - `settled` boolean, required
  - `created_at` string, required
  - `settled_at` string, nullable, required
  - `you_paid` boolean, nullable, required
  - `your_share` number, required
  - `their_share` number, required
  - `transaction_id` string, nullable, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/earmarkiq/apis/earmark-api.md) · [All operations](https://skmtc.dev/earmarkiq/apis/earmark-api/llms.txt) · [OpenAPI document](https://skmtc.dev/earmarkiq/apis/earmark-api/revisions/4a2c41907105?raw)
