https://api.veriko.mx/v1/billing/subscriptionGet user's active subscription
Returns the authenticated user's active subscription with the current plan, billing model, current cycle dates, effective limit, and quota summary. The source field indicates the origin: stripe (Stripe payment), admin_granted (manually granted), or system_default (default free plan). Every user always has exactly one active subscription — the response never includes data: null. The usage summary (used, remaining, resets_at, limit) lives at meta.quota so clients reading only the slug from data.attributes are not forced to parse the quota. Accepts API key authentication. If the billing module is disabled responds 503 with code billing_disabled. To see the available plans to switch to use GET /v1/plans; for current-cycle usage use GET /v1/usage/summary — its resets_at matches current_period_end from this subscription.
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 | Resource type, fixed for this operation. Part of the resource identity in the JSON:API envelope. Always billing_subscription |
id* | string | Local subscriptions row ID (integer as string). NOT the Stripe ID — that lives in 4218 |
attributes* | object | User's active subscription. Each user has exactly one active row; the origin is in |
plan_slug | string | Active plan slug ( pro |
plan_name | string | Display name of the plan for UI. e.g.Pro |
billing_model | string | Plan billing model. hybrid |
source | string | Subscription origin. stripe |
status | string | Subscription lifecycle status. active |
current_period_start | string (date-time) | ISO 8601 timestamp in UTC with explicit 2026-05-01T05:14:38Z |
current_period_end | string (date-time) | ISO 8601 timestamp in UTC with 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 plan before overage. 500 |
monthly_validation_limit | integer | Plan monthly cap. In 10000 |
beneficiaries_max | integer | Beneficiary cap of the active plan. -1 |
effective_limit | integer | Effective validation limit for the current cycle, after applying any admin override and the 500 |
is_stripe | boolean | Shortcut: equivalent to true |
stripe_subscription_id | string | nullnullable | Stripe subscription ID. 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 | Explicit scheduled-cancellation timestamp (modern Stripe Customer Portal format). Mutually exclusive with 2026-04-30T10:15:00Z |
canceled_at | string | nullnullable | Timestamp when cancellation has already taken effect. 2026-04-30T10:15:00Z |
trial_start | string | nullnullable | Trial period start, 2026-04-30T10:15:00Z |
trial_end | string | nullnullable | Trial period end, 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.a1b2c3d4e5f6 |
datetime | object | Companion descriptor present in every response's meta block (and in outgoing webhook payloads). Lets clients assert the timezone contract without re-reading the spec. e.g.{"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 |
| 503 | 5xx | billing_disabled — billing module is disabled. | ErrorResponse |
| Status | Code | Example |
|---|---|---|
| 401 | unauthorized | Invalid or missing authentication credentials. Envelope
|