List FOCUS contract commitments
GET
https://api.vercel.com/v1/billing/contract-commitmentsReturns commitment allocations per contract period in FOCUS v1.3 JSONL format for a specified Vercel team. The response is streamed as newline-delimited JSON (JSONL). This endpoint is only applicable to Enterprise Vercel customers. An empty response is returned for non-Enterprise (Pro/Flex) customers.
https://api.vercel.com/v1/billing/contract-commitments
const response = await fetch('https://api.vercel.com/v1/billing/contract-commitments?teamId=string&slug=string', { method: 'GET', headers: { 'Authorization': 'Bearer YOUR_ACCESS_TOKEN', 'Content-Type': 'application/json', },});
const data = await response.json();console.log(data);Response
{ "ContractCommitmentCategory": "Spend", "ContractCommitmentCost": "123", "ContractCommitmentDescription": "string", "ContractCommitmentId": "example_id", "ContractCommitmentPeriodStart": "string", "ContractCommitmentPeriodEnd": "string", "ContractCommitmentQuantity": "1", "ContractCommitmentType": "string", "ContractCommitmentUnit": "units", "ContractId": "example_id", "ContractPeriodStart": "string", "ContractPeriodEnd": "string", "BillingCurrency": "string"}AuthorizationbearerToken
Default authentication mechanism
200Success
Highest-level classification of the contract commitment. 'Spend' for Pro ($20/month), 'Usage' for Enterprise (MIU allocation).
Monetary value of the contract commitment (in BillingCurrency). Required when ContractCommitmentCategory is 'Spend'. For Pro: 20 (USD)
Self-contained summary of the contract commitment's terms
Unique identifier for a single contract term within a contract. Maps to specific commitment period or allocation ID.
Inclusive start of the commitment term period (ISO 8601 UTC)
Amount associated with the commitment (in ContractCommitmentUnit). Required when ContractCommitmentCategory is 'Usage'. For Enterprise: MIU allocation amount.
Service-provider-assigned name identifying the commitment type. 'Pro' or 'Enterprise' for Vercel.
Measurement unit for ContractCommitmentQuantity. 'MIUs' for Enterprise, 'USD' for Pro spend commitments.
Service-provider-assigned identifier for a contract. Maps to Orb Subscription ID for Vercel.
400Error
401The request is not authorized.
403You do not have permission to access this resource.
404Error
410Error