---
title: "Create payment intent for invoice"
method: POST
path: "/invoice-payments/payment-intent"
tags: ["Invoice Payments"]
---

# Create payment intent for invoice

`POST /invoice-payments/payment-intent`

Creates a Stripe PaymentIntent for paying an invoice. This is a public endpoint that uses the invoice token for authentication.

## Request body

- object
  - `token` string, required — Invoice token for authentication

## Response `200`

Payment intent created

- object
  - `clientSecret` string, required
  - `amount` number, required
  - `currency` string, required
  - `stripeAccountId` string, required

## Other responses

- `400` — Invalid request or invoice not payable
- `404` — Invoice not found

---

[API](https://skmtc.net/midday-ai/apis/midday-api.md) · [All operations](https://skmtc.net/midday-ai/apis/midday-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/midday-ai/midday-api/versions/c0df9243c1b0/schema)
