See what more seats or packs would cost now
POST
/api/billing/additions/preview
const url = 'https://forge.example.com/api/billing/additions/preview';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"quantity":1,"packs":[{"code":"example","quantity":1}],"requestId":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://forge.example.com/api/billing/additions/preview \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "quantity": 1, "packs": [ { "code": "example", "quantity": 1 } ], "requestId": "example" }'For an organization that pays by card. Send quantity, the seats in all (never fewer than now), packs to add, or both. Answers what Stripe would charge now for the rest of the term: dueNowCents, with taxCents in it, and testMode. Changes nothing. For administrators.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
quantity
required
null | integer | string format: int32
packs
required
Array<object> | null
object
code
required
null | string
quantity
required
null | integer | string format: int32
requestId
required
null | string
Example generated
{ "quantity": 1, "packs": [ { "code": "example", "quantity": 1 } ], "requestId": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
object
dueNowCents
required
integer | string format: int64
taxCents
required
integer | string format: int64
currency
required
string
testMode
required
boolean
Example generated
{ "dueNowCents": 1, "taxCents": 1, "currency": "example", "testMode": true}default
Section titled “default”A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.
Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}