Payezydevelopers
Sandbox

API reference / Billing

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

  • Permissionbilling:view

Parameters

ParameterWhat it does
orgIdpath, uuidrequiredThe 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

FieldWhat it does
org_idstring (uuid)requiredNo description in the spec yet.
planobjectrequiredNo description in the spec yet.
plan.sourceenumrequiredNo description in the spec yet.

One of standard custom

plan.namestringrequiredNo description in the spec yet.
currencystringrequiredNo description in the spec yet.
period_startstring (date)requiredNo description in the spec yet.
period_endstring (date)requiredNo description in the spec yet.
ratesBillingRate[]requiredNo description in the spec yet.
rates[].product_codestringrequiredNo description in the spec yet.
rates[].product_namestringrequiredNo description in the spec yet.
rates[].categoryenumrequiredNo description in the spec yet.

One of money_in conversion money_out recurring compliance operations future

rates[].unitstringrequiredNo description in the spec yet.
rates[].railstringNo description in the spec yet.
rates[].chainstringNo description in the spec yet.
rates[].countrystringNo description in the spec yet.
rates[].currencystringNo description in the spec yet.
rates[].modelenumrequiredNo description in the spec yet.

One of flat bps fixed_bps graduated volume recurring

rates[].fixedstringNo description in the spec yet.
rates[].bpsstringNo description in the spec yet.
rates[].unit_amountstringNo description in the spec yet.
rates[].min_feestringNo description in the spec yet.
rates[].max_feestringNo description in the spec yet.
rates[].free_unitsintegerNo description in the spec yet.
rates[].free_amountstringNo description in the spec yet.
rates[].basisenumrequiredNo description in the spec yet.

One of amount count

rates[].resetenumrequiredNo description in the spec yet.

One of monthly yearly never

rates[].periodenumrequiredNo description in the spec yet.

One of per_event monthly accrued_daily

rates[].sourceenumrequiredcustom: negotiated for this organization

One of standard custom

rates[].tiersBillingTier[]requiredNo description in the spec yet.
rates[].tiers[].fromstringrequiredStart (inclusive): USD for amount basis, a count for count basis
rates[].tiers[].tostringEnd (exclusive); omitted on the last tier
rates[].tiers[].bpsstringNo description in the spec yet.
rates[].tiers[].fixedstringNo description in the spec yet.
rates[].tiers[].unit_amountstringNo description in the spec yet.
rates[].position_quantitystringUnits so far in the tier period
rates[].position_amountstringUSD volume so far in the tier period
rates[].current_tierintegerrequiredZero-based tier the position is in, or -1 for untiered rates
commitmentsBillingCommitment[]requiredNo description in the spec yet.
commitments[].kindenumrequiredNo description in the spec yet.

One of monthly_minimum monthly_cap

commitments[].product_codestringNo description in the spec yet.
commitments[].amountstringrequiredNo description in the spec yet.

Errors to handle

CodeWhat it means and what to do
billing_not_available403Billing for this organization is handled by its platform.

Every error is a Problem document. Branch on code; quote request_id to support.