Initiate a DARF payment
Initiates a DARF (federal tax) payment with specific tax fields.
Authorizations
JWT bearer token issued by the identity provider.
Headers
Tenant organization ID. Accepted but ignored: the tenant is determined by the credentials you authenticate with, so sending this header, or sending a different value in it, changes nothing.
Client-supplied idempotency key. Required in practice even though the schema marks it optional: a request that omits this header is refused with 400 PBP-0012.
Body
Fine amount as a decimal string, up to two decimal places. Must be non-negative.
32"5.00"
Interest amount as a decimal string, up to two decimal places. Must be non-negative.
32"10.00"
Principal amount as a decimal string, up to two decimal places. Must be positive.
32"100.00"
Midaz account the payment settles from.
Taxpayer name, up to 80 bytes (UTF-8; accented characters count as more than one byte).
"Fulano de Tal"
Taxpayer person type: F for an individual (CPF, 11 digits) or J for a legal entity (CNPJ, 14 digits). It must agree with taxId: a length that does not match the person type, or a failing check digit, is refused with 400 PBP-0200.
"F"
Tax period reference date, YYYY-MM-DD.
"2026-04-01"
Taxpayer CPF or CNPJ, digits only. Its length and check digits are validated against personType.
"12345678909"
Federal treasury revenue code (codigo da receita): the four zero-padded digits listed in the tax code catalogue the provider publishes as TaxMessageCodes.pdf. Send the four digits alone — the service prefixes them with TRC_ on the way to the provider, and a value that already carries that prefix is forwarded unchanged. The code is not checked against the catalogue here; an unknown code is refused by the provider.
"0086"
DARF type: S for Simples, N for Normal.
"S"
Optional free-text description carried on the payment.
Optional due date, YYYY-MM-DD.
Optional free-text history carried on the payment.
Optional reference number carried to the tax authority.
Optional total income amount as a decimal string.
32Optional total income percentage as a decimal string.
32
