API Reference
Get a charge
/v1/charge/{id}https://cobrancas.efi.mimicr.dev · provider: https://cobrancas-h.api.efipay.com.brReturns the charge with items, payer, payment method, history and, when there is one, the payment link. payment is absent while the status is new; for carnê parcels, payment.method is carnet. For a legal entity, customer carries corporate_name and cnpj in the object itself.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Path parameters
charge_id of the charge.
Responses
200Charge.
200.
200Show child attributes
Charge identifier.
1000001Total in cents.
5990Current status.
newwaitingidentifiedapprovedpaidunpaidrefundedcontestedcanceledsettledexpiredlink"waiting"Card refusal reason, when unpaid.
Your identifier.
Creation, YYYY-MM-DD HH:mm:ss.
Notification URL.
Items.
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.
Charge history, in order.
Show child attributes
Message.
"Cobrança criada"YYYY-MM-DD HH:mm:ss.
Shippings.
Show child attributes
Shipping description.
"Frete"Shipping amount in cents.
1000Efí account that receives the shipping. Always present in the response.
Payer; for a legal entity, corporate_name and cnpj come in the object itself.
Show child attributes
Name.
CPF.
Corporate name (legal entity).
CNPJ (legal entity).
E-mail.
Phone.
Date of birth.
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"Absent while the status is new.
Show child attributes
Payment method.
banking_billetcredit_cardcarnetWhen the method was set.
Message.
Boleto (Bolix).
Show child attributes
Linha digitável.
Bolix Pix QR Code.
Show child attributes
Bolix Pix copia e cola (BR Code).
QR Code image (data:image/svg+xml;base64,…).
Boleto page.
Show child attributes
PDF.
Due date.
Show child attributes
Days to write off.
Fine.
Interest.
Interest type.
dailymonthlyCarnê parcel.
Show child attributes
Parcel number.
Linha digitável.
Bolix Pix QR Code.
Show child attributes
Bolix Pix copia e cola (BR Code).
QR Code image (data:image/svg+xml;base64,…).
Parcel page.
Show child attributes
PDF.
Due date.
Card.
Show child attributes
Masked card (BIN + X + last 4).
"411111XXXXXX0005"Installments.
Parcel amount.
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"Present on charges with a payment link.
Show child attributes
Accepted methods.
Expiry.
Boleto discount.
Card discount.
Message.
Asks for the address.
Link URL.
In Mimicr, when it was paid (ISO 8601).
In Mimicr, amount paid in cents (with fine, interest or discount).
400Unknown charge: 3500010 property_does_not_exists.
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."