You can add a discount in your Invoice Payment Link via API.
When you create an invoice, please add a negative value on the 'fees' parameter.
For further details on the request and response payload, please refer to our API reference here:
https://developers.xendit.co/api-reference/#create-invoice