API Reference
API Pix: authenticationPOSTGet a token
Billing · AuthenticationPOSTGet a token (Billing)
Billing · NotificationsGETGet a notification
Billing · Charges

Get a charge

GET/v1/charge/{id}
Base URL: https://cobrancas.efi.mimicr.dev · provider: https://cobrancas-h.api.efipay.com.br

Returns 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

idintegerrequired

charge_id of the charge.

Responses

200Charge.
codeintegerrequired

200.

Example: 200
dataobjectrequired
Show child attributes
charge_idintegerrequired

Charge identifier.

Example: 1000001
totalintegerrequired

Total in cents.

Example: 5990
statusstringrequired

Current status.

newwaitingidentifiedapprovedpaidunpaidrefundedcontestedcanceledsettledexpiredlink
Example: "waiting"
reasonstring

Card refusal reason, when unpaid.

custom_idstring | null

Your identifier.

created_atstring

Creation, YYYY-MM-DD HH:mm:ss.

notification_urlstring | null

Notification URL.

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.

historyobject[]required

Charge history, in order.

Show child attributes
messagestring

Message.

Example: "Cobrança criada"
created_atstring

YYYY-MM-DD HH:mm:ss.

shippingsobject[]

Shippings.

Show child attributes
namestringrequired

Shipping description.

Example: "Frete"
valueintegerrequired

Shipping amount in cents.

Example: 1000
payee_codestring

Efí account that receives the shipping. Always present in the response.

customerobject

Payer; for a legal entity, corporate_name and cnpj come in the object itself.

Show child attributes
namestring

Name.

cpfstring

CPF.

corporate_namestring

Corporate name (legal entity).

cnpjstring

CNPJ (legal entity).

emailstring

E-mail.

phone_numberstring

Phone.

birthstring

Date of birth.

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"
paymentobject

Absent while the status is new.

Show child attributes
methodstring

Payment method.

banking_billetcredit_cardcarnet
created_atstring

When the method was set.

messagestring | null

Message.

banking_billetobject

Boleto (Bolix).

Show child attributes
barcodestring

Linha digitável.

pixobject

Bolix Pix QR Code.

Show child attributes
qrcodestring

Bolix Pix copia e cola (BR Code).

qrcode_imagestring

QR Code image (data:image/svg+xml;base64,…).

linkstring

Boleto page.

pdfobject
Show child attributes
chargestring

PDF.

expire_atstring

Due date.

configurationsobject
Show child attributes
days_to_write_offinteger

Days to write off.

fineinteger

Fine.

interestinteger

Interest.

interest_typestring

Interest type.

dailymonthly
carnetobject

Carnê parcel.

Show child attributes
parcelinteger

Parcel number.

barcodestring

Linha digitável.

pixobject

Bolix Pix QR Code.

Show child attributes
qrcodestring

Bolix Pix copia e cola (BR Code).

qrcode_imagestring

QR Code image (data:image/svg+xml;base64,…).

linkstring

Parcel page.

pdfobject
Show child attributes
chargestring

PDF.

expire_atstring

Due date.

configurationsobject
credit_cardobject

Card.

Show child attributes
maskstring

Masked card (BIN + X + last 4).

Example: "411111XXXXXX0005"
installmentsinteger

Installments.

installment_valueinteger

Parcel amount.

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"
linkobject

Present on charges with a payment link.

Show child attributes
payment_methodstring

Accepted methods.

expire_atstring

Expiry.

billet_discountinteger

Boleto discount.

card_discountinteger

Card discount.

messagestring

Message.

request_delivery_addressboolean

Asks for the address.

payment_urlstring

Link URL.

paid_atstring

In Mimicr, when it was paid (ISO 8601).

paid_valueinteger

In Mimicr, amount paid in cents (with fine, interest or discount).

400Unknown charge: 3500010 property_does_not_exists.
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."