Platform · API reference
Billing
Plans, spend limits and the Stripe subscription.
Related guide: Plans and usage
The checkout session object
Attributes
checkout_urlstringRequired- The Stripe Checkout page to send the person to.
session_idstringRequired- The session's ID.
stripe_modeenumRequired- The server's Stripe mode,
testorlive; null when billing isn't set up. One oftest,live.
The checkout session object
{
"checkout_url": "https://checkout.stripe.com/c/pay/cs_test_a1B2c3D4e5F6g7H8i9J0kLmNoPqRsTuV",
"session_id": "cs_test_a1B2c3D4e5F6g7H8i9J0kLmNoPqRsTuV",
"stripe_mode": "test"
}Start an upgrade
POST/v1/account/upgrade_session
Returns a Stripe Checkout URL for your first paid plan (Pro monthly unless the body names another). A paid account's later changes use POST /v1/account/plan. Owners and admins only.
Parameters
Idempotency-Keystringheader- Retry a create safely: the same key + request returns the stored response (24 h, per caller).
planenum- The plan to buy. One of
pro,growth. intervalenum- Monthly or yearly billing. One of
monthly,yearly. seatsinteger- Extra seats beyond the plan's included ones.
Returns
The Stripe Checkout URL. See the checkout session object.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/account/upgrade_session" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "plan": "pro", "interval": "monthly" }'const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/upgrade_session`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({ "plan": "pro", "interval": "monthly" }),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/account/upgrade_session", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"plan": "pro",
"interval": "monthly"
}).json()Response 200
{
"checkout_url": "https://checkout.stripe.com/c/pay/cs_test_a1B2c3D4e5F6g7H8i9J0kLmNoPqRsTuV",
"session_id": "cs_test_a1B2c3D4e5F6g7H8i9J0kLmNoPqRsTuV",
"stripe_mode": "test"
}Open the billing portal
POST/v1/account/billing_portal
Returns a Stripe customer portal URL to change the card, download invoices or cancel. Owners and admins only.
Parameters
Idempotency-Keystringheader- Retry a create safely: the same key + request returns the stored response (24 h, per caller).
Returns
The customer portal URL.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/account/billing_portal" \
-H "Authorization: Bearer $PROVENANCE_KEY"const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/billing_portal`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/account/billing_portal", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()Response 200
{
"portal_url": "https://billing.stripe.com/p/session/test_YWNjdF8xUjR5c2FtcGxl",
"stripe_mode": "test"
}Get billing status
GET/v1/account/billing
Returns your plan and interval, the billing month, seats, usage against the included amounts, the spend cap, a scheduled plan change, the Free trial's counters and the plans you can choose.
Parameters
No parameters.
Returns
The account's plan, billing status and Stripe mode.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl "$PROVENANCE_API/v1/account/billing" \
-H "Authorization: Bearer $PROVENANCE_KEY"const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/billing`, {
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/account/billing", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()Response 200
{
"object": "billing",
"plan": "growth",
"plan_name": "Growth",
"interval": null,
"billing_configured": false,
"stripe_mode": null,
"subscription_status": null,
"past_due": false,
"has_billing_customer": false,
"has_paid_plan": false,
"can_manage": true,
"self_serve": true,
"priority_support": true,
"period": {
"start": "2026-11-01T00:00:00.000Z",
"end": "2026-12-01T00:00:00.000Z"
},
"pending_change": null,
"seats": {
"used": 4,
"included": 20,
"purchased": 0,
"limit": 20,
"price_cents": {
"monthly": 500,
"yearly": 5000
}
},
"spend": {
"estimate_cents": 34.5,
"limit_cents": null
},
"usage": {
"decision": {
"used": 8,
"included": 30000,
"price_cents": 0.3
},
"confirmation": {
"used": 8,
"included": 0,
"price_cents": 4
},
"verified_photo": {
"used": 0,
"included": 250,
"price_cents": 20
},
"trace_minute": {
"used": 0,
"included": 600,
"price_cents": 10
},
"trace_reading": {
"used": 0,
"included": 1000000,
"price_cents": 0.1
},
"trace_label_credit": {
"used": 0,
"included": 0,
"price_cents": 0.01
},
"verified_order": {
"used": 1,
"included": 0,
"price_cents": 2.5
},
"verified_call": {
"used": 0,
"included": 0,
"price_cents": 2.5
},
"identify_request": {
"used": 0,
"included": 0,
"price_cents": 0.1
},
"text_extra_us_ca": {
"used": 0,
"included": 0,
"price_cents": 3
},
"text_extra_intl": {
"used": 0,
"included": 0,
"price_cents": 15
},
"call_minute_us_ca": {
"used": 0,
"included": 0,
"price_cents": 5
},
"call_minute_intl": {
"used": 0,
"included": 0,
"price_cents": 15
},
"evidence_export": {
"used": 0,
"included": 0,
"price_cents": 15
}
},
"trial": null,
"notices": [
{
"kind": "overage",
"period": "2026-11-01",
"sent_at": "2026-11-21T21:20:08.544Z"
}
],
"options": [
{
"plan": "pro",
"name": "Pro",
"monthly_cents": 1000,
"yearly_cents": 10000,
"seats_included": 2,
"included": {
"decision": 2500,
"verified_photo": 25,
"trace_minute": 60,
"trace_reading": 100000
},
"unit_prices": {
"decision": 0.5,
"confirmation": 5,
"verified_photo": 25,
"trace_minute": 10,
"trace_reading": 0.1,
"trace_label_credit": 0.01,
"verified_order": 3,
"verified_call": 3,
"identify_request": 0.1,
"text_extra_us_ca": 3,
"text_extra_intl": 15,
"call_minute_us_ca": 5,
"call_minute_intl": 15,
"evidence_export": null
},
"unit_tiers": {
"trace_reading": [
{
"up_to": 10000000,
"cents": 0.1
},
{
"up_to": 100000000,
"cents": 0.02
},
{
"up_to": 1000000000,
"cents": 0.005
},
{
"up_to": null,
"cents": 0.002
}
]
},
"available": false
},
{
"plan": "growth",
"name": "Growth",
"monthly_cents": 10000,
"yearly_cents": 100000,
"seats_included": 20,
"included": {
"decision": 30000,
"verified_photo": 250,
"trace_minute": 600,
"trace_reading": 1000000
},
"unit_prices": {
"decision": 0.3,
"confirmation": 4,
"verified_photo": 20,
"trace_minute": 10,
"trace_reading": 0.1,
"trace_label_credit": 0.01,
"verified_order": 2.5,
"verified_call": 2.5,
"identify_request": 0.1,
"text_extra_us_ca": 3,
"text_extra_intl": 15,
"call_minute_us_ca": 5,
"call_minute_intl": 15,
"evidence_export": 15
},
"unit_tiers": {
"trace_reading": [
{
"up_to": 10000000,
"cents": 0.1
},
{
"up_to": 100000000,
"cents": 0.02
},
{
"up_to": 1000000000,
"cents": 0.005
},
{
"up_to": null,
"cents": 0.002
}
]
},
"available": false
}
],
"finish_upgrade": null
}Set a spend limit
PUT/v1/account/spend_limit
Sets a monthly cap, in cents, on your account's estimated spend; null removes it. At the limit, metered calls return 402 spend_limit_exceeded until you raise it or the month resets.
Parameters
spend_limit_centsinteger | nullRequired- The monthly spend limit, in cents; null for none.
Returns
The updated limit.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X PUT "$PROVENANCE_API/v1/account/spend_limit" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "spend_limit_cents": 50000 }'
curl -s -X PUT "$PROVENANCE_API/v1/account/spend_limit" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "spend_limit_cents": null }' > /dev/nullconst data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/spend_limit`, {
method: "PUT",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({ "spend_limit_cents": 50000 }),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.put(f"{api}/v1/account/spend_limit", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"spend_limit_cents": 50000
}).json()Response 200
{
"spend_limit_cents": 50000
}Change your plan
POST/v1/account/plan
Moves the account to Pro or Growth: the first paid plan returns a Checkout URL (checkout), an upgrade takes effect now (changed), a downgrade at the end of the paid period (scheduled). plan: "free" is a 400 use_cancel; cancel with `POST /v1/account/plan/cancel`.
Parameters
Idempotency-Keystringheader- Retry a create safely: the same key + request returns the stored response (24 h, per caller).
planenumRequired- The plan to move to.
freeis a 400use_cancel: cancel withPOST /v1/account/plan/cancel. One offree,pro,growth. intervalenum- Monthly or yearly billing (defaults to the current interval). One of
monthly,yearly. seatsinteger- Extra seats beyond the plan's included ones (defaults to what you have).
return_toenum- The console page a first paid plan's Checkout comes back to (defaults to
billing, Settings → Billing). One ofbilling,get_started,welcome_texts.
Returns
What happened.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/account/plan" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "plan": "growth", "interval": "yearly" }'const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/plan`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({ "plan": "growth", "interval": "yearly" }),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/account/plan", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"plan": "growth",
"interval": "yearly"
}).json()Response 200
{
"object": "plan_change",
"status": "scheduled",
"plan": "pro",
"interval": "monthly",
"effective_at": "2026-12-01T00:00:00.000Z"
}List billing sources
GET/v1/account/billing/sources
One entry per bill: the Stripe plan (the API, the console and direct integrations), then each platform that bills the account's shops (Shopify), with its plan, price, period, shops and this cycle's usage. A platform entry is read only. Features follow the highest plan in force.
Parameters
No parameters.
Returns
The account's billing sources.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl "$PROVENANCE_API/v1/account/billing/sources" \
-H "Authorization: Bearer $PROVENANCE_KEY"const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/billing/sources`, {
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/account/billing/sources", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()Response 200
{
"object": "list",
"data": [
{
"object": "billing_source",
"source": "stripe",
"plan": "growth",
"interval": null,
"price_cents": 10000,
"read_only": false
}
],
"plan": "free",
"platform_plan": null
}Cancel your plan
POST/v1/account/plan/cancel
Cancels the paid plan. The billing rules set when it ends: the plan stays until the end of the paid period (scheduled, with effective_at), and the console shows the date. Choosing your current plan again with POST /v1/account/plan undoes it. An owner or admin with a recent second factor. See plans and usage.
Parameters
No parameters.
Returns
The cancellation, scheduled.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/account/plan/cancel" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{}'const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/plan/cancel`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/account/plan/cancel", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={}).json()Response 200
{
"object": "plan_change",
"status": "scheduled",
"plan": "free",
"interval": null,
"effective_at": "2026-12-01T00:00:00.000Z"
}Buy seats
POST/v1/account/seats
Adds seats beyond the plan's included ones (prorated) to the paid subscription. A seat is a console member (owner, admin, developer, analyst); approvers are not seats. Owners and admins only.
Parameters
Idempotency-Keystringheader- Retry a create safely: the same key + request returns the stored response (24 h, per caller).
addintegerRequired- How many seats to add.
Returns
The seats after the purchase.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/account/seats" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "add": 1 }'const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/seats`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({ "add": 1 }),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/account/seats", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"add": 1
}).json()Response 200
{
"object": "seats",
"seats_purchased": 1,
"used": 2,
"included": 2,
"purchased": 1,
"limit": 3
}