API Reference
Create a one-step charge
/v1/charge/one-stephttps://cobrancas.efi.mimicr.dev · provider: https://cobrancas-h.api.efipay.com.brCreates the charge and sets the payment method in the same call: the body of Create a charge plus payment with banking_billet or credit_card.
For a boleto, the response carries the linha digitável and the Bolix Pix QR Code, with status waiting. For a card, the analysis is immediate: approved (becomes paid within seconds) or unpaid with refusal, still HTTP 200. In homologation, the card's last digit decides: 1 (invalid data), 2 (security) and 3 (try again later) are refused; any other is approved.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Body
application/jsonItems.
Show child attributes
Name of the item, product or service (1 to 255 characters).
"Meu Produto"Unit price in cents (integer greater than zero). 5990 = R$ 59.90.
5990Quantity. Default 1.
1Payment split (marketplace). Charges with marketplace accept no discount and no card refund.
Show child attributes
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.
12Accounts 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
Efí account identifier of the receiver (32 hexadecimal characters).
"473f6abd05d8a850a046395ed5544138"Share of the item, in hundredths (9000 = 90%). Send percentage or fixed.
Fixed amount in cents. Requires mode 1.
Shippings.
Show child attributes
Shipping description.
"Frete"Shipping amount in cents.
1000Efí account that receives the shipping. Always present in the response.
Show child attributes
Your application's own identifier (up to 255 characters) or null.
"pedido-1042"URL that receives the notification POST (notification=<token>) on every status change, or null.
"https://sua-app.dev/webhooks/efi"Payment method: send exactly one, banking_billet or credit_card.
Show child attributes
Bank boleto. In Mimicr, every boleto is a Bolix: besides the bank 364 (Efí) linha digitável, it carries a Pix QR Code.
Show child attributes
Payer. A boleto requires name and cpf (or juridical_person); a card also requires email and phone_number.
Show child attributes
Full name, with first and last name.
"Gorbadoc Oldbuck"CPF, 11 digits.
"94271564656"E-mail. Required for cards.
"oldbuck@efipay.com.br"Phone with area code (^[1-9]{2}9?[0-9]{8}$). Required for cards.
"5144916523"Date of birth, YYYY-MM-DD. Required for card subscriptions.
"1977-01-15"Show child attributes
Street.
"Avenida Juscelino Kubitschek"Number.
"909"Neighborhood.
"Bauxita"CEP (postal code), 8 digits.
"35400000"City.
"Ouro Preto"Address complement.
State (UF).
"MG"Legal entity. When present, name and cpf are no longer required.
Show child attributes
Corporate name (1 to 255 characters).
"Empresa Exemplo Ltda"CNPJ, 14 digits.
"99794567000144"Due date, YYYY-MM-DD, today or later.
"2026-10-26"Show child attributes
currency (cents) or percentage (1500 = 15%).
currencypercentageDiscount amount.
500Discount for paying until until_date.
Show child attributes
currency or percentage.
currencypercentageDiscount amount.
Discount deadline, YYYY-MM-DD, between issue and due date.
"2026-10-24"Boleto fine, interest and write-off. Boletos under R$ 10.00 get no fine or interest.
Show child attributes
Fine after the due date, in hundredths of a percent (0 to 1000; 200 = 2%).
200Interest 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
Interest amount.
Type.
dailymonthlyDays 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.
89Message printed on the boleto: up to 4 lines of 100 characters, separated by \n.
"Pagável em qualquer banco"Credit card.
Show child attributes
Payer. A boleto requires name and cpf (or juridical_person); a card also requires email and phone_number.
Show child attributes
Full name, with first and last name.
"Gorbadoc Oldbuck"CPF, 11 digits.
"94271564656"E-mail. Required for cards.
"oldbuck@efipay.com.br"Phone with area code (^[1-9]{2}9?[0-9]{8}$). Required for cards.
"5144916523"Date of birth, YYYY-MM-DD. Required for card subscriptions.
"1977-01-15"Show child attributes
Street.
"Avenida Juscelino Kubitschek"Number.
"909"Neighborhood.
"Bauxita"CEP (postal code), 8 digits.
"35400000"City.
"Ouro Preto"Address complement.
State (UF).
"MG"Legal entity. When present, name and cpf are no longer required.
Show child attributes
Corporate name (1 to 255 characters).
"Empresa Exemplo Ltda"CNPJ, 14 digits.
"99794567000144"Card token generated by Efí's JavaScript library (40 hexadecimal characters). In Mimicr, create it with the cobrancas.card_token action; the card's last digit decides the analysis: 1, 2 and 3 are refused, any other is approved.
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa5"Number of installments, 1 to 12. Always 1 in subscriptions.
1Show child attributes
Street.
"Avenida Juscelino Kubitschek"Number.
"909"Neighborhood.
"Bauxita"CEP (postal code), 8 digits.
"35400000"City.
"Ouro Preto"Address complement.
State (UF).
"MG"Show child attributes
currency (cents) or percentage (1500 = 15%).
currencypercentageDiscount amount.
500Charge message.
Free trial days before the first charge (1 to 365). Card subscriptions only.
On a retry (retry), stores the new card for the next charges.
Responses
200Boleto issued or card result (including a refusal).
200.
200Boleto issued or card result, depending on the payment method.
BilletResult
Boleto linha digitável (bank 364).
"36490.00001 01000.001600 41050.126113 1 16110000005990"Bolix Pix QR Code.
Show child attributes
Bolix Pix copia e cola (BR Code).
QR Code image (data:image/svg+xml;base64,…).
Boleto page.
Boleto page.
Show child attributes
Boleto PDF.
Due date.
"2026-10-26"Charge identifier.
1000001waiting after issuing.
newwaitingidentifiedapprovedpaidunpaidrefundedcontestedcanceledsettledexpiredlink"waiting"Total in cents (after the discount, if any).
5990Payment method.
banking_billetCardResult
Installments.
1Amount of each installment, in cents.
5990Charge identifier.
approved (becomes paid within seconds) or unpaid when refused.
newwaitingidentifiedapprovedpaidunpaidrefundedcontestedcanceledsettledexpiredlink"approved"Present when the card was refused (HTTP 200, status unpaid).
Show child attributes
Refusal reason.
"Dados do cartão inválidos."Whether it's worth retrying with the same card.
Total in cents.
Payment method.
credit_card400Validation error (3500034), due date in the past (4600007), too many installments (4600089), invalid discount (3500073, 4600521, 4600523).
Numeric error code, from Efí's error table (e.g. 3500034).
3500034Error name (e.g. validation_error, invalid_status, property_does_not_exists).
"validation_error"Error text, or an object with the invalid property (a JSON Pointer-style path, like /items/0/value) and the message.
Texto
Propriedade
Invalid property.
"/payment/banking_billet/customer/name"Error message.
"O nome deve ter nome e sobrenome."401Token missing, invalid, expired (600 s) or from another API: 3500008 unauthorized.
Numeric error code, from Efí's error table (e.g. 3500034).
3500034Error name (e.g. validation_error, invalid_status, property_does_not_exists).
"validation_error"Error text, or an object with the invalid property (a JSON Pointer-style path, like /items/0/value) and the message.
Texto
Propriedade
Invalid property.
"/payment/banking_billet/customer/name"Error message.
"O nome deve ter nome e sobrenome."