---
title: "Attach payment method for account"
method: POST
path: "/account/{account_id}/payment_methods"
tags: ["Account"]
deprecated: true
---

# Attach payment method for account

`POST /account/{account_id}/payment_methods`

> **Deprecated.**

The API endpoint /v1/account/{account\_id}/payment\_methods is deprecated. Use https://api.aiven.io/v1/organization/{organization\_id}/payment-method/credit-cards instead. It will be removed on 2026-07-17.

## Path parameters

- `account_id` string, required

## Request body

- AccountAttachPaymentMethodRequestBody — AccountAttachPaymentMethodRequestBody
  - `payment_method_id` string, required — Unique identifier for a Stripe payment method

## Response `200`

Response

- AccountAttachPaymentMethodResponse — AccountAttachPaymentMethodResponse
  - `card` object, required — User credit card information
    - `brand` string, required — Brand
    - `card_id` string, required — Credit card ID
    - `country` string, required — Country
    - `country_code` string, required — Two letter ISO country code
    - `exp_month` integer, required — Expiration month
    - `exp_year` integer, required — Expiration year
    - `last4` string, required — Credit card last four digits
    - `name` string, required — Name on the credit card
    - `organization_id` string — Organization ID
    - `projects` string[], required — List of projects the card is assigned to
  - `errors` object[] — List of errors occurred during request processing
    - `message` string, required — Printable error message
    - `more_info` string — URL to the documentation of the error
    - `status` integer, required — HTTP error status code
  - `message` string — Printable result of the request

---

[API](https://skmtc.net/aiven/apis/aiven-api-documentation.md) · [All operations](https://skmtc.net/aiven/apis/aiven-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aiven/aiven-api-documentation/versions/ecaeabf1da31/schema)
