Use case
Coupon integrations for WordPress & affiliate API publishers
Theme and plugin authors need reliable coupon integrations — not fragile network snippets. Whether you ship a dedicated affiliate WordPress plugin or custom theme code, wiring Coupon API data server-side means one HTTP integration, predictable JSON, and fewer surprises when a network renames fields.
Recommended pattern
- Server-side fetch - WP-Cron or an external worker pulls pages from Feedico; results land in the database or object cache.
- Shortcodes & blocks - render from your datastore so front-end visitors never touch API keys.
- Stable keys - map normalized programme and merchant identifiers into your permalink strategy once.
CJ → WordPress walkthrough
If CJ is your flagship network, follow the step-by-step engineering guide how to import CJ coupons to WordPress automatically: connect CJ in Feedico, verify JSON rows, map fields to posts, and schedule sync with the plugin or WP-Cron. Warehouse-scale stacks should pair it with the coupon warehouse ETL guide.
Official product surface
For WordPress-specific packaging and positioning, start at /product/wordpress- then return here for the API-centric mental model (feeds, quotas, multi-network filters).
Compliance reminder
Disclosure blocks, sponsored labels, and network programme rules stay your responsibility - especially in Gutenberg layouts where automated listings can look editorial. Normalized metadata helps you stay consistent; it does not replace legal review.
How to put affiliate coupons on WordPress with Feedico
Connect your networks in Feedico
Add your CJ, Awin, Impact or other credentials once in the dashboard.
Install the Feedico Sync plugin
Paste your API token into the plugin settings; it runs the sync server-side on a schedule.
Map merchants to store pages
Each networkName / externalMerchantKey becomes a store page or taxonomy term you control.
Render coupons in your theme
Use blocks or shortcodes, or the Publisher Kit theme, to show codes, titles and expiry dates.
Keep codes current
Scheduled syncs bring in new codes; hide coupons whose endsAt has passed so stale codes do not linger on your pages.
Coupon fields you will use
| Field | How to use it |
|---|---|
| networkName | Merchant or programme label from the network at sync time. |
| externalMerchantKey | Stable merchant key from the network; use it to join coupons to your store pages. |
| code | Shopper-typed promo code, or null for title-only deals. |
| title | Offer headline as the network publishes it. |
| description | Longer offer text when the network provides one. |
| endsAt | End of the validity window; hide or archive the offer after it passes. |
| offerUrl | Your tracked link for the offer (account lists only). |
Full schema in the documentation; request examples on the affiliate API quickstart.
Frequently asked questions
- What are coupon integrations for WordPress?
- Coupon integrations connect a coupon API to WordPress through server-side fetch, caching, and blocks or shortcodes. Feedico's pattern keeps bearer tokens off the front end while affiliate coupon feeds refresh merchant pages automatically.
- Is there an official WordPress plugin?
- See the product area for WordPress-oriented packaging and docs. Whether you use a plugin or custom theme code, the backend pattern is the same: server-side calls to Feedico, cache results, render blocks.
- Can I avoid storing affiliate credentials in wp-config?
- Yes. Keep Feedico API tokens server-side only (environment variables, managed secrets, or a small proxy). Never expose bearer tokens to the browser.
- How do I align with caching plugins?
- Invalidate or time-bucket cached HTML when your coupon sync job completes. Normalized fields make it easier to diff “what changed” and bust only affected merchant pages.
Affiliate disclosure: some links on Feedico are affiliate links. We may earn a commission when you buy through them, at no extra cost to you. Publishers still need programme approval and compliant use at each affiliate network. Feedico provides the integration layer, not a substitute for network terms.
Related pages
Ready to try it on your own networks?
Free plan, no credit card. Or start from the ready catalog with the Partner Program.