Get the effective price for a product
Changed onReturns the effective unit price, tax, and gross price for a product after organization- and plan-specific pricing. Provide exactly one of product_id or product_slug. You can also provide pricing dimensions and a currency. Pass plan_id to price under a published self-serve plan in place of your current plan; organization-specific rates still take precedence. The currency defaults to the organization's billing currency; if necessary, the price is converted from the product's base currency. Requires a delegated user OAuth token with org:billing:read; workspace and organization master API keys are refused with 403.
Request
- Base URL: https://us1.platform.bird.com
- URL: https://us1.platform.bird.com/v1/organization/billing/prices/resolve
- Auth: one of:
- HTTP bearer
- API key in cookie bird_session
Query parameters
Product ID to price. Provide exactly one of product_id or product_slug.
Product slug to price. Provide exactly one of product_id or product_slug.
Published self-serve plan to price under in place of your current plan. Returns 404 if the plan is not an active self-serve plan.
Key-value pairs that refine attribute-based pricing, such as destination country or sender type. For example, dimensions[country_code]=US.
Three-letter ISO currency code. Defaults to your organization's billing currency.
Headers
Organization context for the request. Required for dashboard authentication. An API key or access token carries its own organization, so send either that organization or no header at all; a different one is rejected.
Response
The resolved price.
Example response
{
"unit_price": {
"amount": "0.00995",
"currency_code": "EUR"
},
"tax_rate": "0.21",
"tax_amount": {
"amount": "0.00995",
"currency_code": "EUR"
},
"gross_price": {
"amount": "0.00995",
"currency_code": "EUR"
},
"billing_unit_size": 1000,
"increment": "60/60",
"dimensions": {
"country_code": "US"
},
"name": "10DLC Brand Registration",
"pricing_model": "rate_card",
"billing_interval": "month",
"billing_interval_count": 1,
"pricing_interval": {
"unit": "month",
"count": 3
},
"intervals_per_charge": 1
}Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking