Save your own fee on your customers

Creates a revenue fee, or saves its next version, taking effect at effective_from (default now; not before the latest version, 409). Your customer pays it into your revenue account; payments already made keep the fee they were charged. Turn it off with active: false. A Roots billing rule's code is a 409: set your markup on those instead.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
^[a-z0-9][a-z0-9_-]{0,63}$

The rule's slug.

Body Params

A revenue rule: the fee the client charges its customer on an event, collected into
the client's revenue account. Roots takes no part of it, and the customer always pays.

string
required
length between 1 and 120
date-time

When this version takes effect (default now). Not in the past, and not before the rule's latest version.

string
enum
required

The event this rule charges on; transfer.withdrawal.quoted prices a withdrawal when it is quoted. The bps apply to the event's amount, if it has one (see the response's amount_field).

match
object

Event data field -> exact value; all must equal. {} matches every event of event_type. rail takes Rail values, sameday_ach among them.

boolean
Defaults to true
fee
object
required

One layer of a fee: flat_minor + amount * bps / 10000 (half-up), clamped to
[min_minor, max_minor] where set. min_minor must not exceed max_minor.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

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