put https://platform-api.sandbox.testessential.net/invoice//discount
This endpoint is designed to allow clients to apply a discount code to a specific invoice. This functionality enables clients to apply promotional discounts before finalizing the payment.