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

Update a payment link

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

Updates the settings of a link that is still waiting for payment (status link). All fields are optional.

Authorization

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

Path parameters

idintegerrequired

charge_id of the charge.

Body

application/json
payment_methodstring

Methods accepted by the link.

banking_billetcredit_cardall
Example: "all"
expire_atstring

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

Example: "2026-10-31"
request_delivery_addressboolean

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 updated.
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.

400Charge without a link (3500097) or link no longer waiting for payment (3500098).
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."