PaymentAccount

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

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

post/booking/v0-nsfw/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/v0-nsfw/payment-accounts/by-authorization
  • Auth
    OAuth 2
    Implicit: https://identity.apaleo.com/connect/authorize
    Scopes: payment-accounts.manage, admin

Headers

Idempotency-Keystring

Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours.

Request body

transactionReferencestring required

Reference to the original authorization transaction

Example request

{
  "target": {
    "type": "Booking",
    "id": "KYKXKLWL"
  },
  "transactionReference": "K9DTTJQD4HNG5S82"
}

Response

Created

idstring required

Created payment account id

Example response

{
  "id": "UBMFXUFH"
}

Changes

No operation changes recorded.