Skip to main content
POST
/
api
/
v1
/
payroll
/
rules
/
versions
/
{id}
/
brackets
cURL
curl -sS -X POST "$FLUIDE_BASE_URL/api/v1/payroll/rules/versions/string/brackets" \
  -H "Authorization: Bearer $FLUIDE_ACCESS_TOKEN" \
  -H "X-Fluide-Api-Key: $FLUIDE_API_KEY" \
  -H "X-Fluide-Client-Id: fluide-developer" \
  -H "Content-Type: application/json" \
  -d '{}'
{
  "ruleVersionId": "<string>",
  "ruleVersion": {
    "organizationId": "<string>",
    "countryCode": "<string>",
    "ruleType": "<string>",
    "effectiveFrom": "2023-11-07T05:31:56Z",
    "effectiveTo": "2023-11-07T05:31:56Z",
    "configJson": {},
    "id": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "deletedAt": "2023-11-07T05:31:56Z"
  },
  "lowerBound": 123,
  "upperBound": 123,
  "rate": 123,
  "baseOffset": 123,
  "id": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "deletedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Access token JWT. Use as Authorization: Bearer . In the API playground, paste the JWT only.

X-Fluide-Api-Key
string
header
default:fl_dev_your_key
required

Developer API key (fl_dev_...). Required on every API call with a machine access token.

X-Fluide-Client-Id
string
header
default:fluide-developer
required

First-party client audience. Must match the fluide_client_id claim on the JWT. Use fluide-developer for Connect.

Path Parameters

id
string
required

Body

application/json
lowerBound
number
required

Lower bound (major currency units)

rate
number
required

Marginal rate for the bracket (fractional, e.g. 0.05 for 5%)

upperBound
number | null

Upper bound (major currency units), null for open-ended bracket

baseOffset
number | null

Optional base offset to compute tax quickly

Response

Successful response