added the call to api to send discount code