API Reference
API Pix: authenticationPOSTGet a token
Billing · AuthenticationPOSTGet a token (Billing)
Billing · NotificationsGETGet a notification
Billing · Plans and subscriptions

Create a subscription link

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

Creates 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

idintegerrequired

plan_id of the plan.

Body

application/json
itemsobject[]required

Items of each charge.

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.

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.

metadataobject
Show child attributes
custom_idstring | null

Your application's own identifier (up to 255 characters) or null.

Example: "pedido-1042"
notification_urlstring | null

URL that receives the notification POST (notification=<token>) on every status change, or null.

Example: "https://sua-app.dev/webhooks/efi"
settingsobjectrequired

Payment link settings.

Show child attributes
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

200Subscription with a link.
codeintegerrequired

200.

Example: 200
dataobjectrequired
Show child attributes
subscription_idintegerrequired

Subscription identifier.

statusstringrequired

new until the payer pays the link.

custom_idstring | null

Your identifier.

chargeobject
Show child attributes
idinteger

Charge.

statusstring

link.

totalinteger

Total.

parcelinteger

Parcel.

payment_urlstringrequired

Payment link URL.

payment_methodstring

Accepted methods.

conditional_discount_datestring | null

Conditional discount date.

request_delivery_addressboolean

Asks for the address.

expire_atstring

Link expiry.

created_atstring

Creation.

400Invalid expiry (4600060) or validation (3500034).
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."