---
title: "Create Payment"
method: POST
path: "/provider/customer_invoices/{customer_invoice_id}/payments"
tags: ["CustomerInvoicePayment"]
---

# Create Payment

`POST /provider/customer_invoices/{customer_invoice_id}/payments`

## Path parameters

- `customer_invoice_id` string, required

## Request body

- ProviderPaymentsControllerCreateBody
  - `amount_in_cents` number, double — When creating a payment you can add an amount_in_cents, if no amount is included, we will set the payment amount = due_in_cents.
  - `external` boolean — When creating a payment, processed payments are required to include `process: true`, mark-as-paid payments are required to include `external: true` as an attribute. The request fails if it does not contain only one of these attributes.
  - `memo` string
  - `process` boolean — When creating a payment, processed payments are required to include `process: true`, mark-as-paid payments are required to include `external: true` as an attribute. The request fails if it does not contain only one of these attributes.
  - `paid_at` string, date — When creating a payment you can specify the date, if no a date is included, we will set it to the `Hint.today` date. Date must be formatted as YYYY-MM-DD.
  - `source` PaymentSource
    - `id` string, required
    - `type` string, required

## Response `200`

Successful response

- PublicPaymentBlueprintOne
  - `id` string
  - `error_message` string
  - `memo` string
  - `status` string
  - `date` string, date-time
  - `amount_in_cents` integer
  - `external` boolean
  - `external_type` string
  - `source` PublicSourceBlueprintLeaf
    - `id` string
    - `type` string

---

[API](https://skmtc.net/hint/apis/partner-endpoints.md) · [All operations](https://skmtc.net/hint/apis/partner-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hint/partner-endpoints/revisions/a92ae2a6fa90/schema)
