---
title: "Create Portal Payment"
method: POST
path: "/api/v1/portal/{token}/invoices/{invoice_id}/pay"
tags: ["portal", "portal"]
---

# Create Portal Payment

`POST /api/v1/portal/{token}/invoices/{invoice_id}/pay`

## Request

- Base URL: `https://api.peil.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.peil.app/api/v1/portal/{token}/invoices/{invoice_id}/pay`
- Auth: none declared

Client-initiated Mollie payment for an unpaid invoice. The amount is taken
from the invoice server-side — the (unauthenticated) client can't influence
it — and the money is collected into the freelancer's own Mollie account.

## Path parameters

- `token` string, required
- `invoice_id` integer, required

## Query parameters

- `slug` string, nullable

## Response `200`

Successful Response

- PayResponse
  - `checkout_url` string, required

## Other responses

- `422`: Validation Error

---

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