---
title: "PUT /accounts/{id}/stripe_attach_payment_method/"
method: PUT
path: "/accounts/{id}/stripe_attach_payment_method/"
tags: ["accounts"]
---

# PUT /accounts/{id}/stripe_attach_payment_method/

`PUT /accounts/{id}/stripe_attach_payment_method/`

Action to (re)set the account stripe customer and payment method to new values.
By default the attached method will also be set as default.
If this is not desired, you can send

    'set_default': False

## Path parameters

- `id` string, uuid, required

## Query parameters

- `format` 'json' | 'xlsx'

## Request body

- AccountStripePaymentMethodAttach
  - `stripe_customer_id` string
  - `stripe_payment_method_id` string, required — Reflects current default payment method. For reference only.
  - `set_default` boolean

## Response `200`

## Changes

- **2026-07-13** `2557a8fec764` — 2 info
  - media type `application/json; version=2.4.12` was changed to `application/json; version=2.4.13` for the response status `200`
  - media type `application/xlsx; version=2.4.12` was changed to `application/xlsx; version=2.4.13` for the response status `200`
- **2022-10-13** `b89c1b3e6d09` — 2 info
  - media type `application/json; version=2.4.11` was changed to `application/json; version=2.4.12` for the response status `200`
  - media type `application/xlsx; version=2.4.11` was changed to `application/xlsx; version=2.4.12` for the response status `200`
- **2022-09-20** `2823b16250b7` — 2 info
  - media type `application/json; version=2.4.10` was changed to `application/json; version=2.4.11` for the response status `200`
  - media type `application/xlsx; version=2.4.10` was changed to `application/xlsx; version=2.4.11` for the response status `200`
- **2022-09-16** `025494408062` — 2 info
  - media type `application/json; version=2.4.5` was changed to `application/json; version=2.4.10` for the response status `200`
  - media type `application/xlsx; version=2.4.5` was changed to `application/xlsx; version=2.4.10` for the response status `200`
- **2022-09-08** `486e2fd12f8f` — 2 info
  - media type `application/json; version=2.3.5` was changed to `application/json; version=2.4.5` for the response status `200`
  - media type `application/xlsx; version=2.3.5` was changed to `application/xlsx; version=2.4.5` for the response status `200`

[Full history](https://skmtc.dev/oeklo/apis/gsmtasks-project-api/changes/accounts/:id/stripe_attach_payment_method/put.md)

---

[API](https://skmtc.dev/oeklo/apis/gsmtasks-project-api.md) · [All operations](https://skmtc.dev/oeklo/apis/gsmtasks-project-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/oeklo/gsmtasks-project-api/revisions/2557a8fec764/schema)
