---
title: "Create a payment from checkout token"
method: POST
path: "/checkout/payments"
tags: ["Checkout"]
---

# Create a payment from checkout token

`POST /checkout/payments`

## Request

- Base URL: `https://public-api.alternativepayments.io`
- URL: `https://public-api.alternativepayments.io/checkout/payments`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/alternativepayments/apis/alternative-payments/docs/checkout/payments/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a payment for the invoice associated with the checkout token. Customer ID and invoice ID are extracted from the token.

## Headers

- `Idempotency-Key` string

## Request body

- CheckoutCreatePaymentInput: Create payment request body
  - `amount` string
  - `idempotency_key` string, uuid
  - `payment_date` string
  - `payment_method` 'card' | 'standard_ach'
  - `payment_method_id` string

## Response `201`

Created

- CheckoutCreatePaymentResponse: Create payment response
  - `message` string
  - `status` string

## Other responses

- `400`: Bad Request
- `422`: Unprocessable Entity

## Changes

- **2026-10-07** `4e3a31effa3f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/alternativepayments/apis/alternative-payments/changes/checkout/payments/post.md)

---

[API](https://skmtc.dev/alternativepayments/apis/alternative-payments.md) - [All operations](https://skmtc.dev/alternativepayments/apis/alternative-payments/llms.txt) - [OpenAPI document](https://skmtc.dev/alternativepayments/apis/alternative-payments/revisions/281251358a5b?raw)
