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

Create a plan

POST/v1/plan
Base URL: https://cobrancas.efi.mimicr.dev · provider: https://cobrancas-h.api.efipay.com.br

Creates a subscription plan: the interval in months between charges and how many charges will be generated (repeats; without it, unlimited).

Authorization

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

Body

application/json
namestringrequired

Plan name (1 to 255 characters).

Example: "Plano Internet 10 Mb"
intervalintegerrequired

Interval in months, 1 to 24.

Example: 1
repeatsinteger | null

Number of charges, 2 to 120, or null for unlimited.

Example: 12

Responses

200Plan created.
codeintegerrequired

200.

Example: 200
dataobjectrequired
Show child attributes
plan_idintegerrequired

Plan identifier.

Example: 1018
namestringrequired

Plan name.

Example: "Plano Internet 10 Mb"
intervalintegerrequired

Interval between charges, in months.

Example: 1
repeatsinteger | null

Number of charges, or null for unlimited.

Example: 12
created_atstring

Creation (only the date in the list).

400Invalid name or interval (3500034), repeats outside 2 to 120 (3500041).
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."