---
title: "Sets payment account details"
method: PUT
path: "/booking/v0-nsfw/payment-account-actions/{paymentAccountId}/set-details"
tags: ["PaymentAccountActions"]
---

# Sets payment account details

`PUT /booking/v0-nsfw/payment-account-actions/{paymentAccountId}/set-details`

## 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-account-actions/{paymentAccountId}/set-details`
- Auth: OAuth 2
  - Implicit: `https://identity.apaleo.com/connect/authorize`
  - Scopes: `payments.admin`, `admin`

<br>You must have this scope: 'payments.admin'.<br>For fine-grained clients, you must have this permission: 'core.payment_accounts.commit'.

## Path parameters

- `paymentAccountId` string, required

## Request body

- SetPaymentAccountDetailsRequest
  - `paymentTransactionId` string, nullable: Transaction Id of payment account in the payment service payment transaction log Should match payment account Transaction Id if it has been already set, otherwise it will be used to set the Transaction Id of the payment account
  - `accountDetails` PaymentAccountDetailsModel
    - `accountNumber` string, nullable: The last 4 characters of the card or account number
    - `accountHolder` string, nullable: The account or card holder
    - `expiryMonth` string, nullable: The credit card's expiration month
    - `expiryYear` string, nullable: The credit card's expiration year
    - `paymentMethod` string, nullable: The payment method (e.g. visa)
    - `payerEmail` string, email, nullable: The email address of the shopper / customer
  - `payerReference` string, required: The reference used to uniquely identify the shopper (e.g. user ID or account ID).
  - `storedPaymentMethodId` string, required: The stored payment method id

## Response `204`

No Content

## 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-not-safe-for-work.md) - [All operations](https://skmtc.dev/apaleo/apis/apaleo-booking-api-not-safe-for-work/llms.txt) - [OpenAPI document](https://skmtc.dev/apaleo/apis/apaleo-booking-api-not-safe-for-work/revisions/a1b6a2f6b879?raw)
