Skip to main content
GET
/
fees
/
barber
Calculate barber fees
curl --request GET \
  --url https://api.guile.app/fees/barber \
  --header 'Authorization: Bearer <token>'
{
  "subtotal": "456.78",
  "fee": "456.78",
  "total": "456.78",
  "type": "appointment"
}

Query Parameters

amount
string<decimal>
required

The amount of money to calculate the fee for. A monetary amount in the lowest denomination for the given currency. The numeric value is represented as a string so that it can be exact with no loss of precision.

Pattern: ^(0|[1-9][0-9]*)\.[0-9][0-9]$
Example:

"456.78"

type
enum<string>
required

The type of barber fee to calculate. The available barber fee calculation types.

Available options:
standardPayout,
instantPayout,
appointment

Response

Ok. The operation succeeded.

The calculated barber fees for the given monetary amount.

subtotal
string<decimal>
required

The appointment subtotal before fees are applied.

Pattern: ^(0|[1-9][0-9]*)\.[0-9][0-9]$
Example:

"456.78"

fee
string<decimal>
required

The calculated fee for the given money amount.

Pattern: ^(0|[1-9][0-9]*)\.[0-9][0-9]$
Example:

"456.78"

total
string<decimal>
required

The appointment total after fees are applied.

Pattern: ^(0|[1-9][0-9]*)\.[0-9][0-9]$
Example:

"456.78"

type
enum<string>
required

The barber fee calculation type.

Available options:
appointment