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

Query Parameters

amount
string<decimal>
required

The appointment amount used to calculate the customer's booking fee. 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 customer fee to calculate. The available customer fee calculation types.

Available options:
appointment

Response

Ok. The operation succeeded.

The calculated customer appointment 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 customer fee calculation type.

Available options:
appointment