API Reference
Get a subscription
/v1/subscription/{id}https://cobrancas.efi.mimicr.dev · provider: https://cobrancas-h.api.efipay.com.brReturns the subscription with the plan, the next execution and the charges generated (history). occurrences counts the paid charges.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Path parameters
subscription_id of the subscription.
Responses
200Subscription.
200.
200Show child attributes
Subscription identifier.
10019Amount of each charge in cents.
new (no payment set), active, canceled or expired (every charge issued).
newactivecanceledexpiredYour identifier.
Notification URL.
Payment method.
banking_billetcredit_cardNext charge, YYYY-MM-DD.
Due date of the next charge.
Show child attributes
Plan.
Name.
Interval.
Repeats.
Only on update, when sent.
Show child attributes
E-mail.
Phone.
Paid charges.
Creation.
Charges of the subscription.
Show child attributes
Charge.
Status.
Creation.
400Unknown subscription: 3500010 property_does_not_exists.
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."