Karlie here from the Shopify Support Team! Are you wanting to give people the discount code for your online store through Ebay or are you wanting that your customers use your discount code on the Ebay platform? Can you tell me more about what you're looking to achieve? I'm happy to help.
Looking forward to hearing back from you!