---
title: "Generate a payment intent for a product"
method: POST
path: "/v1/payments"
tags: ["payments"]
---

# Generate a payment intent for a product

`POST /v1/payments`

## Request body

- HttpPaymentProductRequest
  - `country_id` integer, required
  - `product_id` integer, required
  - `quantity` integer
  - `region_id` integer, required

## Response `200`

OK

- object

## Other responses

- `400` — Bad Request
- `409` — Rejected. Branch on code: ALREADY_PURCHASED (the business already owns the product) or PAYMENT_IN_PROGRESS (a pending intent is blocking a second one). message carries the customer-facing text.
- `500` — Internal Server Error

---

[API](https://skmtc.dev/earnation/apis/earnation-api.md) · [All operations](https://skmtc.dev/earnation/apis/earnation-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/earnation/earnation-api/revisions/1219d1bf2177/schema)
