---
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`

---

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