Get your rates
GET/v1/orgs/{orgId}/billing/pricing
The organization's effective rates, including tiers and its tier position this month (billing:view). Customers of a platform are billed by their platform and get 403 billing_not_available.
Before you call it
- Permission
billing:view
Parameters
| Parameter | What it does |
|---|---|
orgIdpath, uuidrequired | The organization the call acts on. For platform calls, your platform's id; for customer calls, the customer's organization id. Get them from getMe or the customer list. |
Response 200
Effective pricing
| Field | What it does |
|---|---|
org_idstring (uuid)required | No description in the spec yet. |
planobjectrequired | No description in the spec yet. |
plan.sourceenumrequired | No description in the spec yet. One of |
plan.namestringrequired | No description in the spec yet. |
currencystringrequired | No description in the spec yet. |
period_startstring (date)required | No description in the spec yet. |
period_endstring (date)required | No description in the spec yet. |
ratesBillingRate[]required | No description in the spec yet. |
rates[].product_codestringrequired | No description in the spec yet. |
rates[].product_namestringrequired | No description in the spec yet. |
rates[].categoryenumrequired | No description in the spec yet. One of |
rates[].unitstringrequired | No description in the spec yet. |
rates[].railstring | No description in the spec yet. |
rates[].chainstring | No description in the spec yet. |
rates[].countrystring | No description in the spec yet. |
rates[].currencystring | No description in the spec yet. |
rates[].modelenumrequired | No description in the spec yet. One of |
rates[].fixedstring | No description in the spec yet. |
rates[].bpsstring | No description in the spec yet. |
rates[].unit_amountstring | No description in the spec yet. |
rates[].min_feestring | No description in the spec yet. |
rates[].max_feestring | No description in the spec yet. |
rates[].free_unitsinteger | No description in the spec yet. |
rates[].free_amountstring | No description in the spec yet. |
rates[].basisenumrequired | No description in the spec yet. One of |
rates[].resetenumrequired | No description in the spec yet. One of |
rates[].periodenumrequired | No description in the spec yet. One of |
rates[].sourceenumrequired | custom: negotiated for this organization One of |
rates[].tiersBillingTier[]required | No description in the spec yet. |
rates[].tiers[].fromstringrequired | Start (inclusive): USD for amount basis, a count for count basis |
rates[].tiers[].tostring | End (exclusive); omitted on the last tier |
rates[].tiers[].bpsstring | No description in the spec yet. |
rates[].tiers[].fixedstring | No description in the spec yet. |
rates[].tiers[].unit_amountstring | No description in the spec yet. |
rates[].position_quantitystring | Units so far in the tier period |
rates[].position_amountstring | USD volume so far in the tier period |
rates[].current_tierintegerrequired | Zero-based tier the position is in, or -1 for untiered rates |
commitmentsBillingCommitment[]required | No description in the spec yet. |
commitments[].kindenumrequired | No description in the spec yet. One of |
commitments[].product_codestring | No description in the spec yet. |
commitments[].amountstringrequired | No description in the spec yet. |
Errors to handle
| Code | What it means and what to do |
|---|---|
billing_not_available403 | Billing for this organization is handled by its platform. |
Every error is a Problem document. Branch on code; quote request_id to support.