Collects booking fees by charging the customer using the payment method that's saved on the corresponding eCommerce order (SDK | REST)
Warning: Currently, there is no validation that prevents idempotent requests. This means that your code must make sure to not charge customers multiple times for the same booking fee. You could use List Transactions For Single Order (SDK | REST) to check which charges were made previously for an eCommerce order.
An HTTP status of 200 means that all booking fees were successfully collected.
Any other HTPP status means that collection failed.
Collects the order's additionalFees.price.amount that's related to the
booking fees. If there are multiple additional fees on the eCommerce order,
the amount that's collected differs from priceSummary.totalAdditionalFees.amount.
Possible failure reasons include:
status isn't APPROVED.balanceSummary.balance.amount is lower than the
additionalFees.price.amount to collect.additionalFeeId doesn't belong to a Wix Bookings cancellation fee.ID of the eCommerce order that includes the booking fees as a single
additionalFee.
Options to use when collecting booking fees that have been applied to an eCommerce order.
There is 1 error with this status code.
There are 2 errors with this status code.
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.