API Reference
Create a plan
/v1/planhttps://cobrancas.efi.mimicr.dev · provider: https://cobrancas-h.api.efipay.com.brCreates 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/jsonPlan name (1 to 255 characters).
"Plano Internet 10 Mb"Interval in months, 1 to 24.
1Number of charges, 2 to 120, or null for unlimited.
12Responses
200Plan created.
200.
200Show child attributes
Plan identifier.
1018Plan name.
"Plano Internet 10 Mb"Interval between charges, in months.
1Number of charges, or null for unlimited.
12Creation (only the date in the list).
400Invalid name or interval (3500034), repeats outside 2 to 120 (3500041).
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."