SellDiscount Codes
Discounts that move the needle.
Spin up percentage or fixed amount codes, cap their usage, set expiry dates, and target specific products.

Any structure
Percentage off, fixed amount, per product or storewide.
Usage limits
Cap total redemptions or set hard expiry dates.
Checkout ready
Codes apply instantly at checkout: no extra setup.
import { Pocketsflow } from "pocketsflow";
const pf = new Pocketsflow({ apiKey: process.env.POCKETSFLOW_API_KEY });
// A percentage code scoped to one product, usable at checkout.
const product = await pf.products.create({
name: "Pro license",
price: 49,
});
await pf.discounts.create({
name: "Launch discount",
code: "LAUNCH20",
value: 20,
valueType: "percentage",
mainProductIds: [product._id],
});Discounts are an API call.
Create a checkout, attach a product, and let Pocketsflow handle the transaction lifecycle: payment, tax, delivery, and the receipt.
Every resource is an HTTPS endpoint under one base URL with Bearer API keys. Live and test keys are scoped to their own data; the OpenAPI spec is served at /docs.json.
How it works.
Create a code
Choose percentage or fixed amount, then set the code string buyers will type.
Set the rules
Add usage caps, expiry dates, and optionally limit the code to specific products.
Share it
Drop the code in an email, social post, or affiliate blast: checkout applies it instantly.
Track redemptions
See usage and status for every active code from one dashboard.
Common questions.
Can I limit a code to one product?
Yes. Target a single product or leave the code storewide: your choice per code.
Do percentage and fixed discounts both work?
Both. Create either structure, with optional usage limits and hard expiry dates.
Where do buyers enter the code?
At checkout. Codes apply instantly: no extra widgets or plugins to install.
Can I run a limited time launch offer?
Yes. Cap total redemptions and set an expiry so the offer ends when you want it to.
Keep exploring.
Start accepting payments today.
Start accepting payments without building the infrastructure around them.