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.
| 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 (hex). e.g.a1b2c3d4e5f66f5e4d3c2b1a |
datetime | object | Companion descriptor present in the {"timezone":"UTC","format":"ISO 8601"} |
timezone* | string | Always UTC |
format* | string | Always ISO 8601 |
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 |
| Status | Code | Example |
|---|---|---|
| 401 | unauthorized | Invalid or missing authentication credentials. Envelope
|