---
title: "Create"
method: POST
path: "/api/cp/payment"
tags: ["Payment"]
---

# Create

`POST /api/cp/payment`

Create a new Payment record.

## Request body

- PaymentInput
  - `id` integer — Id
  - `company_id` integer, required — Company Id
  - `payment_time` string, date-time, required — Payment Time
  - `description` string — Description
  - `total` number, required — Total
  - `tax_rate` number — Tax Rate
  - `invoice_id` integer — Invoice Id
  - `currency` string — Currency
  - `override_xe` number — Override Xe
  - `payment_fee` number — Payment Fee
  - `status` 'Completed' | 'Pending' | 'Canceled' — Status
  - `payment_id` string — Payment Id
  - `charge_id` string — Charge Id
  - `reconciliation_id` string — Reconciliation Id
  - `tax_paid` number — Tax Paid

## Response `200`

Successful response

- CreateResponse
  - `id` union — The ID of the newly created record
    - integer
    - string
  - `status` string — Operation status

## Other responses

- `400` — Bad Request - Invalid parameters or request body
- `401` — Authentication information is missing or invalid
- `403` — Access denied - insufficient permissions or dependency access failure
- `409` — Conflict - foreign key or unique constraint violation on write
- `500` — Internal server error

---

[API](https://skmtc.dev/connexcs/apis/connexcs-control-panel-api.md) · [All operations](https://skmtc.dev/connexcs/apis/connexcs-control-panel-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/connexcs/connexcs-control-panel-api/revisions/54bc2ed6edae/schema)
