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

Set a link on a charge

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

Attaches a payment link to a new charge. The body is the link settings at the top level (no settings object). A second call answers 3500080.

Authorization

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

Path parameters

idintegerrequired

charge_id of the charge.

Body

application/json
payment_methodstringrequired

Methods accepted by the link.

banking_billetcredit_cardall
Example: "all"
expire_atstringrequired

Link expiry, YYYY-MM-DD, today or later. After that date, the charge goes to expired.

Example: "2026-10-31"
request_delivery_addressbooleanrequired

Asks the payer for a delivery address.

Example: false
messagestring

Message shown to the payer (3 to 80 characters).

Example: "Obrigado pela compra"
billet_discountinteger

Discount in cents for paying by boleto.

Example: 500
card_discountinteger

Discount in cents for paying by card.

conditional_discountobject

Discount for paying until until_date.

Show child attributes
typestringrequired

currency or percentage.

currencypercentage
valueintegerrequired

Discount amount.

until_datestringrequired

Discount deadline, YYYY-MM-DD, between issue and due date.

Example: "2026-10-24"

Responses

200Link created.
codeintegerrequired

200.

Example: 200
dataobjectrequired
Show child attributes
charge_idintegerrequired

Charge identifier.

Example: 1000008
statusstringrequired

link while the payer hasn't paid.

newwaitingidentifiedapprovedpaidunpaidrefundedcontestedcanceledsettledexpiredlink
Example: "link"
totalintegerrequired

Total in cents.

custom_idstring | null

Your identifier.

payment_urlstringrequired

Payment link URL, the page the payer opens.

Example: "https://cobrancas.efi.mimicr.dev/link/9121028d2156f677892d91f59681e0e2"
payment_methodstring

Accepted methods.

banking_billetcredit_cardall
billet_discountinteger | null

Boleto discount.

card_discountinteger | null

Card discount.

conditional_discount_valueinteger | null

Conditional discount amount.

conditional_discount_typestring | null

Conditional discount type.

conditional_discount_datestring | null

Conditional discount deadline.

request_delivery_addressboolean

Asks for the delivery address.

messagestring | null

Message.

expire_atstring

Link expiry.

created_atstring

Creation.

400Link already set (3500080) or status other than new (3500044).
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."