Calculate payout amount

Calculate fee amount, given a specified amount and payment method for the specified account, and return both fee and payout minus fee.

Request
Security:
tilia_auth (read_process_credits)
path Parameters
account_id
required
string <UUID4>

Account ID.

Example: cbe24880-2051-4150-abbc-4ddbef502f73
query Parameters
amount
required
string <int64>

Payout amount prior to fee being taken out.

Example: amount=100
payment_method_id
required
string <UUID4>

Payment method ID.

Example: payment_method_id=450c3b40-cc07-464e-9635-a0102c9c9c5a
Responses
200

Successfully calculated payout amount.

400

Validation error.

500

Service unavailable or server error.

get/v2/{account_id}/payout/calculate
Request samples
curl -i -X GET \
  'https://invoicing.tilia-inc.com/v2/:account_id/payout/calculate?amount=100&payment_method_id=450c3b40-cc07-464e-9635-a0102c9c9c5a' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
Response samples
application/json
{
  • "status": "Success",
  • "message": null,
  • "codes": null,
  • "payload": {
    }
}