---
title: "Creates the authorization based on an existing pre-authorization created prior directly with the payment service provider"
method: POST
path: "/booking/v1/authorizations/by-authorization"
tags: ["Authorization"]
---

# Creates the authorization based on an existing pre-authorization created prior directly with the payment service provider

`POST /booking/v1/authorizations/by-authorization`

Creates the authorization based on an existing pre-authorization created prior directly with the payment service provider. For the pre-authorization, please ensure to set the respective metadata
in the original authorization request. The flow type has to be set to <i>BlockNHold</i>. For more information, please refer to the documentation of <a href="https://apaleo.dev/guides/pay-integration/authorizations" target="_blank">how to do an authorization hold for future charges</a>.<br>You must have this scope: 'authorizations.manage'.

## Headers

- `Idempotency-Key` string

## Request body

- CreateAuthorizationRequest
  - `target` AuthorizationTargetModel, required
    - `type` 'Booking' | 'Reservation', required — Authorization target type
    - `id` string, required — Booking or reservation id
    - `propertyId` string, required — The id of the property the authorization is to be created for. When target is Reservation, the property must be the same the reservation.
  - `amount` MonetaryValueModel, required
    - `amount` number, double, required
    - `currency` string, required
  - `transactionReference` string, required — Reference to the original authorization transaction

## Response `201`

Authorization was created and will be processed

- AuthorizationCreatedModel
  - `id` string, required — Created authorization id

## Other responses

- `400` — Bad request.
- `401` — You are unauthorized.
- `403` — Forbidden.
- `404` — The Request-URI could not be found.
- `415` — Unsupported media type.
- `422` — Validation errors in the request body or query params.
- `499` — Client closed request.
- `500` — An unexpected error occurred.
- `503` — The server is currently unavailable. Please try later.

---

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