REST Endpoints
API endpoint reference for Spark!
Last updated: 2026-01-19
The Spark! REST API provides programmatic access to affiliates, orders, commissions, and more. All endpoints return JSON.
Base URL
https://api.chargezen.com/spark/v1
Affiliates
GET /affiliates— List all affiliatesGET /affiliates/:id— Get affiliate by IDPOST /affiliates— Create new affiliatePUT /affiliates/:id— Update affiliateDELETE /affiliates/:id— Delete affiliate
Orders
GET /orders— List attributed ordersGET /orders/:id— Get order by IDPOST /orders/:id/attribute— Manually attribute order
Commissions
GET /commissions— List all commissionsGET /commissions/:id— Get commission by IDPUT /commissions/:id/approve— Approve pending commissionPUT /commissions/:id/reject— Reject pending commission
Payouts
GET /payouts— List all payoutsGET /payouts/:id— Get payout by IDPOST /payouts— Create manual payout
Tracking Links
GET /links— List tracking linksGET /links/:id— Get link by IDPOST /links— Create tracking linkDELETE /links/:id— Delete link
Analytics
GET /analytics/summary— Performance summaryGET /analytics/affiliates— Per-affiliate metricsGET /analytics/products— Per-product metricsGET /analytics/clicks— Click-level data
Pagination
List endpoints support pagination via page and per_page query parameters. Default is 25 items per page, max 100.
Filtering & Sorting
List endpoints support:
?status=active— Filter by status?created_after=2024-01-01— Date filters?sort=created_at— Sort field?order=desc— Sort direction
Next Steps
Related Articles
Was this page helpful?
Need more help? Contact support