Skip to content

See what more seats or packs would cost now

POST
/api/billing/additions/preview
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.

Media typeapplication/json
object
quantity
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
packs
required
Array<object> | null
object
code
required
null | string
quantity
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
requestId
required
null | string

Example generated

{
"quantity": 1,
"packs": [
{
"code": "example",
"quantity": 1
}
],
"requestId": "example"
}

OK

Media typeapplication/json
object
dueNowCents
required
integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
taxCents
required
integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
currency
required
string
testMode
required
boolean

Example generated

{
"dueNowCents": 1,
"taxCents": 1,
"currency": "example",
"testMode": true
}

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"
}