PaymentAccount
Creates payment account based on an existing authorization created prior externally with the Payment Service Provider
Changed on<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/v1/payment-accounts/by-stored-payment-method
Request
- Base URLhttps://api.apaleo.com (the document declares no server; this is the origin it was published from)
- URLhttps://api.apaleo.com/booking/v1/payment-accounts/by-stored-payment-method
- AuthOAuth 2Implicit: https://identity.apaleo.com/connect/authorizeScopes: 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
Example request
{
"target": {
"type": "Booking",
"id": "KYKXKLWL"
},
"payerReference": "4c5b0e9d-819e-481f-bc32-85068267e641",
"storedPaymentMethodId": "K9DTTJQD4HNG5S82",
"isVirtual": false,
"accountDetails": {
"accountNumber": "1111",
"accountHolder": "John Doe",
"expiryMonth": "8",
"expiryYear": "2018",
"paymentMethod": "visa",
"payerEmail": "john@example.com"
}
}Response
Created
Example response
{
"id": "UBMFXUFH"
}Changes
- info
endpoint added
- info