Retrieve a discount code
The only route that reports what a code takes off and how many subscribers used it.
Authorizations
Your secret key, from app.agentaos.ai -> Settings -> Developers -> API Keys. The key's prefix is both its identity and its environment: sk_test_... (sandbox, free, no verification) or sk_live_... (real money, requires business verification). A missing or invalid key returns 401.
Path Parameters
Discount code UUID (the id field from create or list).
Response
The discount code.
Fully camelCase on the wire.
As you typed it. Buyers may type it in any case.
discount changes the price. tracking changes nothing and only records who used it.
discount, tracking The one plan this code works on; null means every subscription plan you own.
Usable as far as this list can tell: not archived, and fully created. Whether the code has since been used up is answered by the single-code route.
What the code takes off, ready to print: "20% off", "€5.00 off", or "No discount — tracking only".
How many subscribers redeemed this code.
The cap you set, or null for none.