Make a Paddle key for Expiring Codes
Expiring Codes works with Paddle Billing (the current Paddle). It needs an API key that can read and write discounts, and nothing else.
- In Paddle, open Developer tools, then Authentication.
- Under API keys, click New API key. Name it Expiring Codes.
- Under permissions, give Discounts read and write. Leave the rest off.
- Save, copy the key (it starts with
pdl_live_apikey_) and paste it into your Expiring Codes settings.
Paddle keys can have an end date. If you set one, put a reminder in your calendar to make a new key before it ends, or codes will stop being created.
Let customers enter the code
Paddle checkout shows an "Add discount" link by default. Each code works once, for any of your products, until its deadline. To fill it in for the reader, open checkout with the code, for example Paddle.Checkout.open({ discountCode: "..." }), or ask your developer to read it from the link.