---
title: "Create a payment link for a booking"
method: POST
path: "/v2/reservations/bookings/{id}/quote/paymentLink"
tags: ["Reservations"]
---

# Create a payment link for a booking

`POST /v2/reservations/bookings/{id}/quote/paymentLink`

## Request

- Base URL: `https://api.lodgify.com`
- URL: `https://api.lodgify.com/v2/reservations/bookings/{id}/quote/paymentLink`
- Auth: API key in header `X-ApiKey`
- TypeScript: <https://skmtc.dev/lodgify/apis/lodgify-public-api-v1/docs/v2/reservations/bookings/:id/quote/paymentLink/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` integer, required

## Request body

- LodgifyApiPublicReservationsModelsV12CreatePaymentLinkDto: Represents the amount to be paid through the website
  - `amount` number, double: Amount to request

## Response `200`

OK

- LodgifyApiPublicReservationsModelsV12PaymentLinkCreatedDto: Represents the result of a request to create a payment link.
  - `succeeded` boolean: Indicates whether the payment link was successfully created. Returns true if the link was created with the specified amount. Returns false if creation failed, for example due to a pending scheduled payment or if the requested amount could not be enforced.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/lodgify/apis/lodgify-public-api-v1.md) - [All operations](https://skmtc.dev/lodgify/apis/lodgify-public-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/lodgify/apis/lodgify-public-api-v1/revisions/ddf40757d411?raw)
