Skip to main content
PATCH
/
pricing-calculators
/
{uuid}
/
formulas
/
{subUuid}
Update a formula on a pricing calculator
curl --request PATCH \
  --url https://api.journeybee.io/v1/pricing-calculators/{uuid}/formulas/{subUuid} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "condition": "<string>",
  "value": 123,
  "sort_order": 123
}
'
{
  "uuid": "<string>",
  "name": "<string>",
  "condition": "<string>",
  "value": 123,
  "sort_order": 123,
  "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)$
subUuid
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
formula_type
enum<string>
Available options:
discount,
tax,
surcharge
name
string
calculation_type
enum<string>
Available options:
fixed,
percentage
condition
string | null
value
number | null
sort_order
number

Response

200 - application/json

Default Response

uuid
string
required
formula_type
enum<string>
required
Available options:
discount,
tax,
surcharge
name
string
required
condition
string | null
required
calculation_type
enum<string>
required
Available options:
fixed,
percentage
value
number | null
required
sort_order
number
required
created_at
string
required
updated_at
string
required