v14
latestOpenAPI 3.0.32026-08-04377889.4 MBbilling
Purchase credits
Purchases credits for a Vercel team using the default payment method on file. The purchase is charged immediately via Stripe invoice. Supported credit types are v0, gateway, and agent. The amount field specifies the number of credits to purchase and must be a positive integer. An optional source query parameter can be provided to identify the caller. Defaults to api if not specified. This is only available for Owner, Member, Developer, Security, and Billing roles for the supplied team.
post/v1/billing/buy
Query parameters
sourcestring
The source of the purchase request. Defaults to api if not specified.
The source of the purchase request. Defaults to api if not specified.
teamIdstring
Example:team_1a2b3c4d5e6f7g8h9i0j1k2l
The Team identifier to perform the request on behalf of.
slugstring
Example:my-team-url-slug
The Team slug to perform the request on behalf of.