Pular para o conteúdo principal
POST
Charge service fees to an account

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Cabeçalhos

X-Idempotency
string

Required. Idempotency key of the charge, unique per account: a retry with the same key and body returns the recorded charge with X-Idempotency-Replayed, a different body under the same key answers 409 (0084).

Parâmetros de caminho

organization_id
string
obrigatório

Organization ID (UUID)

ledger_id
string
obrigatório

Ledger ID (UUID)

account_id
string
obrigatório

Account ID (UUID)

Corpo

application/json
serviceCodes
string[] | null
obrigatório

Service codes to charge, 1 to 100. Each occurrence is one unit; codes are normalized to trimmed upper case.

Required array length: 1 - 100 elements
Exemplo:
description
string

Description of the charge, also used as the description of the fee transaction.

Maximum string length: 256
Exemplo:

"Tarifas de serviço de outubro"

metadata
object

Flat metadata of the charge, also written to the fee transaction.

Resposta

Created

accountId
string
obrigatório
Exemplo:

"00000000-0000-0000-0000-000000000000"

accountPlanId
string
obrigatório

Account plan active for the account when the charge was taken; null when the account had none.

Exemplo:

"00000000-0000-0000-0000-000000000000"

accountPlanVersion
integer<int64>
obrigatório

Version of the account plan in effect when the charge was taken; 0 when the account had no plan.

Exemplo:

1

assetCode
string
obrigatório

Asset of the account the charge was taken in.

Exemplo:

"BRL"

createdAt
string<date-time>
obrigatório
Exemplo:

"2026-10-22T12:00:00Z"

feeTransactionIds
string[] | null
obrigatório

Fee transactions that charged the charged items; empty when nothing was charged.

id
string
obrigatório
Exemplo:

"00000000-0000-0000-0000-000000000000"

items
object[] | null
obrigatório

One item per service code of the request, in request order.

ledgerId
string
obrigatório
Exemplo:

"00000000-0000-0000-0000-000000000000"

organizationId
string
obrigatório
Exemplo:

"00000000-0000-0000-0000-000000000000"

period
string
obrigatório

Monthly quota period (YYYY-MM) the units were counted in, in the plan timezone.

Exemplo:

"2026-10"

totalAmount
string
obrigatório

Sum of the amounts of the charged items.

Exemplo:

"15"

description
string
Exemplo:

"Tarifas de serviço de outubro"

metadata
object