---
title: "Criar Forma de Pagamento"
method: POST
path: "/customers/{customer_id}/payment_methods"
---

# Criar Forma de Pagamento

`POST /customers/{customer_id}/payment_methods`

Cria uma forma de pagamento de cliente.

## Path parameters

- `customer_id` string, required

## Request body

- object
  - `description` string, required — Descrição
  - `token` string, required — Token de Pagamento <a href="https://dev.iugu.com/docs/tokenização" target="_blank">criar</a>
  - `set_as_default` boolean — Se "true" define esta Forma de Pagamento como padrão do Cliente, ou seja, para executar cobranças automáticas no cartão salvo.

## Response `200`

200

- object
  - `id` string
  - `description` string
  - `item_type` string
  - `customer_id` string
  - `data` object
    - `brand` string
    - `holder_name` string
    - `display_number` string
    - `bin` string
    - `year` integer
    - `month` integer
    - `last_digits` string
    - `first_digits` string
    - `masked_number` string
    - `fingerprint` string
    - `issuer` string
    - `card_type` string
    - `foreign_card` string

## Other responses

- `400` — 400

---

[API](https://skmtc.net/iugu/apis/tokens-de-api.md) · [All operations](https://skmtc.net/iugu/apis/tokens-de-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/iugu/tokens-de-api/revisions/4590fc729d1e/schema)
