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