Create a rate calculation

Create a reusable rate-calculation formula set. Idempotent via Idempotency-Key. Only a single calculation group with a SingleGroup resultStrategy is supported today, and that group must carry at least one calculation row (422 otherwise) — multi-group and GreaterOf calculations aren't evaluated at pay time yet. If externalId is supplied and already exists for the acting Account, the request fails with 409 ResourceConflict; this create is not an upsert. A name is required. Group and row ids are caller-assigned identifiers of 1–64 letters, digits, underscores, periods, or hyphens.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
length ≥ 1
string
enum
required

How the final amount is selected across calculationGroups[]. SingleGroup requires exactly one group. GreaterOf compares every group's candidate amount (for example commission vs minimum-wage floor) and chooses the greatest value — server-validated against calculationGroups.length, not a separate candidate list.

Allowed:
calculationGroups
array of objects
required
length ≤ 10
calculationGroups*
metadata
object

Free-form key-value pairs. Max 50 keys; key length at most 40 characters; value length at most 500 characters. Where a list endpoint declares metadata filtering, it uses the QueryQL namespace via filter[metadata.{key}][eq]=value or filter[metadata.{key}][in][]=value. Endpoints that do not declare the dynamic Metadata filter do not support Metadata filtering.

string
Headers
string
length between 1 and 255
^[\x21-\x7e]{1,255}$

Optional idempotency token for authenticated POST and PATCH requests. Reusing the same key and body returns the cached response for 24 hours, except credential operations that explicitly document a 409 because one-time secret material is never cached; reusing it with a different body returns 409 IdempotencyKeyConflict. Use 1-255 printable ASCII characters.

string
^(?:[A-Za-z0-9_.]{22}|[a-f0-9]{24})$

Select the Account for an Account-scoped operation. A direct ServiceAccount API key MUST supply this header, and the target must be within the ServiceAccount owner's or Authorization grant's Account boundary. A Person bearer may select an Account on which it has an active Stakeholder, and an Account session may select its bound Account (or a descendant only when the session explicitly includes descendants).

string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json