Offer Codes for IAP

A customer has asked that I support offer codes for in app purchases.
I am not finding how to implement this.
Has anyone done this successfully?

Disclaimer: Ive never actually done this before. The documentation is here: Apple Developer Documentation