Menu

List Billing Plans For Product

GET/v1/products/{productSlug}/plans
Vercel sends a request to the partner to return quotes for different billing plans for a specific Product.
Note: You can have this request triggered by Vercel before the integration is installed when the Product is created for the first time. In this case, OIDC will be incomplete and will not contain an account ID.
/v1/products/{productSlug}/plans
const response = await fetch('/v1/products/string/plans?metadata=string', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);
Response
{
"plans": []
}
AuthorizationSystem Authentication

Default authentication mechanism

productSlugstringRequired
metadatastringOptional
X-Vercel-AuthstringOptional
The auth style used in the request (system, user, etc)
Return a list of billing plans
plansarrayRequired
400Input has failed validation
403Operation failed because the authentication is not allowed to perform this operation
409Operation failed because of a conflict with the current state of the resource
List Billing Plans For Product | Partner API