Accounting API
Invoices

Affiliate Commission

This API endpoint (POST) adds or removes affiliate commission from an invoice. If the request succeeds, it returns an Invoice Object. Permissions: invoices.edit Webhook event: invoice-updated

Path Parameters

id * The id of the invoice.

Body Parameters

commission integer The commission to credit to the affiliate.



affiliate string The id of the affiliate to assign the invoice to.



Note: To deduct any existing commission from the invoice, create the request with an empty body.