Two endpoints give you a complete picture of your organization’s billing arrangement. The subscription endpoint returns the raw Stripe subscription record, while the plan endpoint returns a usage-focused summary that includes how many matches you have used, remaining quota, and the cost accrued this month.Documentation Index
Fetch the complete documentation index at: https://docs.mapping.travel/llms.txt
Use this file to discover all available pages before exploring further.
Both endpoints require authentication. Include your bearer token in the
Authorization header.GET /api/v1/billing/subscription
Retrieve your organization’s current Stripe subscription.null.
Response
Stripe subscription ID (e.g.
sub_...).Stripe subscription status. Common values:
active, trialing, past_due, canceled.Internal plan type identifier (e.g.
FREE, SUBSCRIPTION, ENTERPRISE).ISO 8601 timestamp of the start of the current billing period.
ISO 8601 timestamp of the end of the current billing period.
Whether the subscription is set to cancel at the end of the current period.
Example
GET /api/v1/billing/plan
Retrieve usage-focused plan details for your organization.Response
Internal plan identifier.
Human-readable plan name.
Total mapping matches allowed per month on this plan.
Cost per individual match in euros.
Number of matches consumed so far in the current billing period.
Total cost accrued in the current billing period in euros.
Number of matches remaining before the limit is reached.
Percentage of the monthly quota that has been consumed. Value between 0 and 100.