API Reference
API Pix: authenticationPOSTGet a token
Billing · AuthenticationPOSTGet a token (Billing)
Billing · NotificationsGETGet a notification
Billing · Carnês

Create a carnê

POST/v1/carnet
Base URL: https://cobrancas.efi.mimicr.dev · provider: https://cobrancas-h.api.efipay.com.br

Creates a carnê: a series of boletos (Bolix) due monthly from expire_at, one charge per parcel. With split_items: true, the items' value is split across the parcels; otherwise each parcel is worth the items' total.

The carnê starts up_to_date. The carnê and its parcels share the same notification token (carnet and carnet_charge events). In the response, parcel is a string.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Body

application/json
itemsobject[]required

Items.

Show child attributes
namestringrequired

Name of the item, product or service (1 to 255 characters).

Example: "Meu Produto"
valueintegerrequired

Unit price in cents (integer greater than zero). 5990 = R$ 59.90.

Example: 5990
amountinteger

Quantity. Default 1.

Example: 1
marketplaceobject

Payment split (marketplace). Charges with marketplace accept no discount and no card refund.

Show child attributes
modeinteger

1: Efí's fee is charged only to the issuing account; 2 (default): the fee is split proportionally among the receivers. Fixed-value repasses require mode 1.

12
repassesobject[]required

Accounts that receive part of the item. The same account twice on the same item isn't allowed; the percentages can't add up to more than 100%.

Show child attributes
payee_codestringrequired

Efí account identifier of the receiver (32 hexadecimal characters).

Example: "473f6abd05d8a850a046395ed5544138"
percentageinteger

Share of the item, in hundredths (9000 = 90%). Send percentage or fixed.

fixedinteger

Fixed amount in cents. Requires mode 1.

customerobjectrequired

Payer. A boleto requires name and cpf (or juridical_person); a card also requires email and phone_number.

Show child attributes
namestring

Full name, with first and last name.

Example: "Gorbadoc Oldbuck"
cpfstring

CPF, 11 digits.

Example: "94271564656"
emailstring

E-mail. Required for cards.

Example: "oldbuck@efipay.com.br"
phone_numberstring

Phone with area code (^[1-9]{2}9?[0-9]{8}$). Required for cards.

Example: "5144916523"
birthstring

Date of birth, YYYY-MM-DD. Required for card subscriptions.

Example: "1977-01-15"
addressobject
Show child attributes
streetstringrequired

Street.

Example: "Avenida Juscelino Kubitschek"
numberstringrequired

Number.

Example: "909"
neighborhoodstringrequired

Neighborhood.

Example: "Bauxita"
zipcodestringrequired

CEP (postal code), 8 digits.

Example: "35400000"
citystringrequired

City.

Example: "Ouro Preto"
complementstring | null

Address complement.

statestringrequired

State (UF).

Example: "MG"
juridical_personobject

Legal entity. When present, name and cpf are no longer required.

Show child attributes
corporate_namestringrequired

Corporate name (1 to 255 characters).

Example: "Empresa Exemplo Ltda"
cnpjstringrequired

CNPJ, 14 digits.

Example: "99794567000144"
expire_atstringrequired

Due date of the first parcel, YYYY-MM-DD.

Example: "2026-10-26"
repeatsintegerrequired

Number of parcels, 2 to 24.

Example: 3
split_itemsboolean

Splits the items' value across the parcels.

configurationsobject

Boleto fine, interest and write-off. Boletos under R$ 10.00 get no fine or interest.

Show child attributes
fineinteger

Fine after the due date, in hundredths of a percent (0 to 1000; 200 = 2%).

Example: 200
interestobject

Interest after the due date: an integer (daily, 1 to 33, 33 = 0.033% a day) or a {value, type} object with type daily or monthly (monthly, 1 to 1000).

Diário
Com tipo
valueinteger

Interest amount.

typestring

Type.

dailymonthly
days_to_write_offinteger

Days after the due date during which the boleto can still be paid (0 to 120). In Mimicr, the default is 89; after that, the charge goes to expired.

Example: 89
messagestring

Boleto message.

metadataobject
Show child attributes
custom_idstring | null

Your application's own identifier (up to 255 characters) or null.

Example: "pedido-1042"
notification_urlstring | null

URL that receives the notification POST (notification=<token>) on every status change, or null.

Example: "https://sua-app.dev/webhooks/efi"

Responses

200Carnê created.
codeintegerrequired

200.

Example: 200
dataobjectrequired
Show child attributes
carnet_idintegerrequired

Carnê identifier.

Example: 10011
statusstringrequired

up_to_date, unpaid (a parcel is overdue), finished (all resolved) or canceled.

up_to_dateunpaidfinishedcanceled
Example: "up_to_date"
repeatsinteger

Number of parcels (lookup only).

coverstring

Carnê cover.

linkstring

Carnê page.

carnet_linkstring

Carnê page (creation only).

pdfobject
Show child attributes
carnetstring

Carnê PDF.

coverstring

Cover PDF.

valueinteger

Carnê total in cents (lookup only).

custom_idstring | null

Your identifier.

notification_urlstring | null

Notification URL.

split_itemsboolean

Whether the items' value was split across the parcels.

chargesobject[]required

Parcels, one charge each.

Show child attributes
charge_idintegerrequired

Charge of the parcel.

Example: 1000012
statusstringrequired

Parcel status.

newwaitingidentifiedapprovedpaidunpaidrefundedcontestedcanceledsettledexpiredlink
parcelobjectrequired

Parcel number: a string on creation ("1"), an integer on lookup (1), as in Efí's examples.

Texto
Inteiro
valueinteger

Parcel amount in cents.

Example: 7500
expire_atstring

Due date.

Example: "2026-10-26"
urlstring

Parcel page.

parcel_linkstring

Parcel page (creation only).

pdfobject
Show child attributes
chargestring

PDF.

barcodestring

Linha digitável.

pixobject
Show child attributes
qrcodestring

Pix copia e cola.

configurationsobject

Lookup only.

Show child attributes
interestinteger

Interest.

fineinteger

Fine.

created_atstring

Creation.

historyobject[]

History.

Show child attributes
messagestring

Message.

Example: "Cobrança criada"
created_atstring

YYYY-MM-DD HH:mm:ss.

400repeats under 2 (3500041) or over 24 (4600059), due date in the past (4600007), validation (3500034).
codeintegerrequired

Numeric error code, from Efí's error table (e.g. 3500034).

Example: 3500034
errorstringrequired

Error name (e.g. validation_error, invalid_status, property_does_not_exists).

Example: "validation_error"
error_descriptionobjectrequired

Error text, or an object with the invalid property (a JSON Pointer-style path, like /items/0/value) and the message.

Texto
Propriedade
propertystring

Invalid property.

Example: "/payment/banking_billet/customer/name"
messagestring

Error message.

Example: "O nome deve ter nome e sobrenome."
401Token missing, invalid, expired (600 s) or from another API: 3500008 unauthorized.
codeintegerrequired

Numeric error code, from Efí's error table (e.g. 3500034).

Example: 3500034
errorstringrequired

Error name (e.g. validation_error, invalid_status, property_does_not_exists).

Example: "validation_error"
error_descriptionobjectrequired

Error text, or an object with the invalid property (a JSON Pointer-style path, like /items/0/value) and the message.

Texto
Propriedade
propertystring

Invalid property.

Example: "/payment/banking_billet/customer/name"
messagestring

Error message.

Example: "O nome deve ter nome e sobrenome."