calculateServiceFees( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

The calculateServiceFees() function returns a Promise that resolves to an array containing the calculated fees.

The specified order information is evaluated against all rules created for the site. If the rule conditions are met, the service fee set in the rule is applied. Otherwise, no service fee is added.

Permissions
Manage Restaurants - all permissions
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
orderOrderRequired

Order information needed to evaluate the rules and calculate the relevant fees.


optionsCalculateServiceFeesOptions
Returns
Return Type:Promise<CalculateServiceFeesResponse>
Did this help?