Yes, this is possible - provided that your e-commerce platform has the capacity to generate codes. 

You can find the developer documentation here.

Did this answer your question?