https://api.veriko.mx/v1/billing/subscriptionGet user's active subscription
Returns the authenticated user's active subscription. The response always contains a resource: if no active subscription exists, the server assigns the default plan.
source distinguishes Stripe payments (stripe), admin grants (admin_granted), and plans assigned by the system (system_default). The cycle summary (used, limit, remaining, and resets_at) lives in meta.quota.
Current-cycle usage is also available from GET /v1/usage/summary. Its resets_at is the end of the quota cycle: it matches current_period_end except on an annual plan, where quota resets every month and resets_at marks the end of the current month. Available plans are returned by GET /v1/plans.
curl -X GET 'https://api.veriko.mx/v1/billing/subscription' \
-H 'Authorization: Bearer veriko_••••'Python example — coming soon.
JavaScript example — coming soon.
PHP example — coming soon.
No matches
| Field | Type | Description |
|---|---|---|
data | object | Main response payload. Shape varies by endpoint (object, array, or JSON:API envelope with |
type* | string | JSON:API resource type. Always billing_subscription |
id* | string | Local subscription identifier, represented as a string. e.g.4218 |
attributes* | object | The user's active subscription, including its source, state, cycle, and limits. Each user has exactly one. The |
plan_slug | string | Unique, human-readable plan identifier. It corresponds to the user's active plan. e.g.pro |
plan_name | string | Plan name shown in the interfaces. e.g.Personal |
billing_model | string | Plan billing model. hybrid |
source | string | Subscription source — stripe |
status | string | Subscription lifecycle state — active |
current_period_start | string (date-time) | ISO 8601 timestamp in UTC with an explicit 2026-05-01T05:14:38Z |
current_period_end | string (date-time) | ISO 8601 timestamp in UTC with an explicit 2026-05-01T05:14:38Z |
currency | string | Currency of the active cycle. MXN |
billing_interval | string | Billing cadence — month |
overage_enabled | boolean |
false |
included_validations | integer | nullnullable | Validations included in the base quota before overage charges. 500 |
monthly_validation_limit | integer | Validation cap per subscription cycle. 10000 |
beneficiaries_max | integer | Cap on registered beneficiaries per account. -1 |
bulk_validations_max | integer | Maximum number of validations per import job. |
effective_limit | integer | Effective validation limit for the current cycle. It includes admin overrides and, on 500 |
is_stripe | boolean |
true |
stripe_subscription_id | string | nullnullable | Stripe subscription identifier ( sub_1OaBcDeFgHiJk2 |
grant_reason | string | nullnullable | Reason recorded when the subscription was granted by an admin. cortesía soporte |
cancel_at_period_end | boolean |
false |
cancel_at | string | nullnullable | Date and time the cancellation is scheduled for, in ISO 8601 UTC. 2026-04-30T10:15:00Z |
canceled_at | string | nullnullable | Date and time the cancellation took effect, in ISO 8601 UTC. 2026-04-30T10:15:00Z |
trial_start | string | nullnullable | Date and time the trial period starts, in ISO 8601 UTC. 2026-04-30T10:15:00Z |
trial_end | string | nullnullable | Date and time the trial period ends, in ISO 8601 UTC. 2026-04-30T10:15:00Z |
meta | object | Response metadata including API version, route prefix, unique request identifier, and the server timestamp in UTC. |
version | string | API version that processed the request. e.g.1.47.0 |
api_version | string | API route prefix version (e.g. v1 |
request_id | string | Unique request identifier, 24 hexadecimal characters. Keep it and quote it when you contact support: it locates the request. e.g.a1b2c3d4e5f66f5e4d3c2b1a |
datetime | object | Companion descriptor present in the {"timezone":"UTC","format":"ISO 8601"} |
timezone* | string | Always UTC |
format* | string | Always ISO 8601 |
field_names_notice | object | Field-name change notice. It only appears on {"code":"legacy_request_fields","message":"This request uses Spanish field names, which are accepted until March 1, 2027. From that date, the API will only accept and return English field names. You can migrate whenever it suits you; see the migration guide.","sunset":"2027-03-01","documentation_url":"https://docs.example.com/en/how-to/migrate-to-english-field-names","legacy_fields":["fecha","monto"]} |
code* | string | Notice type. legacy_request_fields |
message* | string | Notice text, in the response language ( This request uses Spanish field names, which are accepted until March 1, 2027. From that date, the API will only accept and return English field names. You can migrate whenever it suits you; see the migration guide. |
sunset* | string (date) | Cut-off date, the same one the 2027-03-01 |
documentation_url* | string (uri) | Migration guide to the English names, in the response language. e.g.https://docs.example.com/en/how-to/migrate-to-english-field-names |
legacy_fields | array | Spanish names the request sent. Only with ["fecha","monto"] |
links | object | Pagination or related links, present only when the endpoint returns a paginated collection. |
| Status | Class | Description | Body |
|---|---|---|---|
| 200 | 2xx | User's active subscription with plan, cycle, and quota. | BillingSubscriptionResponse |
| 401 | 4xx | Authentication is required or the provided credentials are invalid. | ErrorResponse |
| 429 | 4xx | Rate limit exceeded ( rate_limit_exceeded: wait a few seconds). | RetryAfterError |
| Status | Code | Example |
|---|---|---|
| 401 | unauthorized | This request requires authentication. Envelope
|
| 429 | rate_limit_exceeded | You exceeded the request limit. Envelope
Response headers
|