---
title: "Update payment settings"
method: PUT
path: "/_api/billing/paymentsettings"
tags: ["Administration"]
---

# Update payment settings

`PUT /_api/billing/paymentsettings`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/macrometa/apis/macrometa-api-reference/docs/_api/billing/paymentsettings/put.ts> (a function with typed inputs; its response is checked against the schema)

Update payment settings for given tenant.

 **Note**: This API is not applicable for system tenants `_mm` and `demo`.

## Headers

- `tenant` string, string

## Request body

- PaymentUpdate
  - `payment_method_id` string, string: Payment Method ID

## Response `200`

Successfully updated payment settings.

- ResponseBillingCode200
  - `code` integer: HTTP response code.
  - `error` boolean: Flag if there is an error in response. *False* for this response.
  - `message` string: Message from server

## Other responses

- `400`: Failed due to missing or malformed data. Verify that all parameters are complete.
- `401`: Failed because you do not have administrator permissions.

---

[API](https://skmtc.dev/macrometa/apis/macrometa-api-reference.md) - [All operations](https://skmtc.dev/macrometa/apis/macrometa-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/macrometa/apis/macrometa-api-reference/revisions/2006b6d7f31d?raw)
