---
title: "Create a payment"
method: POST
path: "/api/payments"
tags: ["Payments"]
---

# Create a payment

`POST /api/payments`

## Request

- Base URL: `https://api.doctofam.com`
- URL: `https://api.doctofam.com/api/payments`
- Auth: one of:
  - HTTP basic
  - API key in header `Authorization`

Records a payment in your clinic and emits `payment.created` to your webhook subscriptions. Requires the `payments:write` scope.

## Response `200`

The created payment

## Other responses

- `403`: API key is missing the `payments:write` scope

---

[API](https://skmtc.dev/doctofam/apis/doctofam-api.md) · [All operations](https://skmtc.dev/doctofam/apis/doctofam-api/llms.txt) · [OpenAPI document](https://skmtc.dev/doctofam/apis/doctofam-api/revisions/435b0ab34960?raw)
