API Reference
Create a subscription link
/v1/plan/{id}/subscription/one-step/linkhttps://cobrancas.efi.mimicr.dev · provider: https://cobrancas-h.api.efipay.com.brCreates the subscription and a payment link for the first charge. The subscription stays new until the payer pays the link.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Path parameters
plan_id of the plan.
Body
application/jsonItems of each charge.
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 link settings.
Show child attributes
Methods accepted by the link.
banking_billetcredit_cardall"all"Link expiry, YYYY-MM-DD, today or later. After that date, the charge goes to expired.
"2026-10-31"Asks the payer for a delivery address.
falseMessage shown to the payer (3 to 80 characters).
"Obrigado pela compra"Discount in cents for paying by boleto.
500Discount in cents for paying by card.
Discount 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"Responses
200Subscription with a link.
200.
200Show child attributes
Subscription identifier.
new until the payer pays the link.
Your identifier.
Show child attributes
Charge.
link.
Total.
Parcel.
Payment link URL.
Accepted methods.
Conditional discount date.
Asks for the address.
Link expiry.
Creation.
400Invalid expiry (4600060) or validation (3500034).
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."