PATCH
Ajustar dia de fechamento

Authorizations

Authorization
string
header
required

HTTP Basic com o token como usuário e o secret como senha: curl -u dpz_tk_…:dpz_sk_…. Crie a chave em https://despezzas.com/settings/api-keys.

Path Parameters

cardId
string
required

Identificador do cartão.

Example:

"c4d5e6f7-0a1b-4c2d-9e3f-4a5b6c7d8e9f"

Body

application/json
closing_day
integer
required

Novo dia de fechamento (1–31).

Example:

5

bill_id
string | null

Fatura de referência (alternativa a edition_date).

Example:

null

due_day
integer

Novo dia de vencimento (1–31). Ignorado em cartões Open Finance (o banco define).

Example:

12

edition_date
string

Mês de referência (YYYY-MM-DD).

Example:

"2026-09-01"

edition_type
enum<string>

Alcance: só a fatura de edition_date/bill_id, dela em diante, ou todas.

Available options:
THIS,
THIS_AND_NEXT,
ALL
Example:

"THIS_AND_NEXT"

Response

Sucesso.

updated
integer
required

Quantas faturas foram recalculadas.

Example:

4

bill
null | object

A fatura de referência recalculada (null quando o alcance é ALL).