Skip to main content
POST
/
pricing-calculators
/
{uuid}
/
products
Add a product to a pricing calculator
curl --request POST \
  --url https://api.journeybee.io/v1/pricing-calculators/{uuid}/products \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "product_uuid": "<string>",
  "quantity_type": "fixed",
  "is_optional": false,
  "is_included_by_default": true,
  "quantity_fixed": 123,
  "quantity_variable_name": "<string>",
  "quantity_condition": "<string>",
  "quantity_if_true": 123,
  "quantity_if_false": 123,
  "price_override": 123,
  "sort_order": 123
}
'
{
  "uuid": "<string>",
  "sort_order": 123,
  "quantity_fixed": 123,
  "quantity_variable_name": "<string>",
  "quantity_condition": "<string>",
  "quantity_if_true": 123,
  "quantity_if_false": 123,
  "price_override": 123,
  "is_optional": true,
  "is_included_by_default": true,
  "product": {
    "uuid": "<string>",
    "name": "<string>",
    "sku": "<string>",
    "price": 123,
    "currency_code": "<string>"
  },
  "created_at": "<string>",
  "updated_at": "<string>"
}

Authorizations

Authorization
string
header
required

API key authentication. Use "Bearer <api_key>" or "Api-Key <api_key>".

Path Parameters

uuid
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Body

application/json
product_uuid
string
required
quantity_type
enum<string>
default:fixed
required
Available options:
fixed,
variable,
conditional
is_optional
boolean
default:false
required
is_included_by_default
boolean
default:true
required
quantity_fixed
number | null
quantity_variable_name
string | null
quantity_condition
string | null
quantity_if_true
number | null
quantity_if_false
number | null
price_override
number | null

Monetary amount in WHOLE currency units (the displayed amount, e.g. 1000.00 = one thousand) — NOT minor units/cents. Do NOT divide or multiply by 100; send and show the amount as-is.

sort_order
number

Response

201 - application/json

Default Response

uuid
string
required
sort_order
number
required
quantity_type
enum<string>
required
Available options:
fixed,
variable,
conditional
quantity_fixed
number | null
required
quantity_variable_name
string | null
required
quantity_condition
string | null
required
quantity_if_true
number | null
required
quantity_if_false
number | null
required
price_override
number | null
required

Monetary amount in WHOLE currency units (the displayed amount, e.g. 1000.00 = one thousand) — NOT minor units/cents. Do NOT divide or multiply by 100; send and show the amount as-is.

is_optional
boolean
required
is_included_by_default
boolean
required
product
object
required
created_at
string
required
updated_at
string
required