Skip to Content
Omnibase

Calculate cost for a price

POST
/api/v1/stripe/config/prices/{price_id}/calculate

Path Parameters

price_id*string

Request Body

application/json
  1. body
quantity*integer
Formatint64
Range0 <= value

Response Body

OK

application/json
  1. response
billing_scheme*string
cost_cents*integer
Formatint64
currency*string
effective_unit_cost_cents*number
Formatdouble
price_id*string
quantity*integer
Formatint64
tiers_mode?string
Example Request
curl -X POST 'https://api.omnibase.tech/api/v1/stripe/config/prices/string/calculate' \  -H 'Content-Type: application/json' \  -d '{  "quantity": 0}'
Example Response
{  "billing_scheme": "string",  "cost_cents": 0,  "currency": "string",  "effective_unit_cost_cents": 0.1,  "price_id": "string",  "quantity": 0,  "tiers_mode": "string"}