---
title: "Creates payment account based on an existing authorization created prior externally with the Payment Service Provider"
method: POST
path: "/booking/v1/payment-accounts/by-authorization"
tags: ["PaymentAccount"]
---

# Creates payment account based on an existing authorization created prior externally with the Payment Service Provider

`POST /booking/v1/payment-accounts/by-authorization`

## Request

- Base URL: `https://api.apaleo.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.apaleo.com/booking/v1/payment-accounts/by-authorization`
- Auth: OAuth 2
  - Implicit: `https://identity.apaleo.com/connect/authorize`
  - Scopes: `payment-accounts.manage`, `admin`

<br>You must have this scope: 'payment-accounts.manage'.<br>For fine-grained clients, you must have this permission: 'core.payment_accounts.create'.

## Headers

- `Idempotency-Key` string

## Request body

- CreateAuthorizationPaymentAccountRequest
  - `target` PaymentAccountTargetModel, required
    - `type` 'Booking' | 'Reservation', required: Payment account target type
    - `id` string, required: Booking or reservation id
  - `transactionReference` string, required: Reference to the original authorization transaction

## Response `201`

Created

- PaymentAccountCreatedModel
  - `id` string, required: Created payment account 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.

## Changes

> 6 revisions in range; 1 not diffed.

- **2026-09-01** `6510a7df7143`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/apaleo/apis/apaleo-booking-api/changes/booking/v1/payment-accounts/by-authorization/post.md)

---

[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.dev/apaleo/apis/apaleo-booking-api/revisions/0d255d2a27e9?raw)
