Canonical URL: https://chargezen.com/docs/spark/api/endpoints

# 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 affiliates
*   `GET /affiliates/:id` — Get affiliate by ID
*   `POST /affiliates` — Create new affiliate
*   `PUT /affiliates/:id` — Update affiliate
*   `DELETE /affiliates/:id` — Delete affiliate

## Orders

*   `GET /orders` — List attributed orders
*   `GET /orders/:id` — Get order by ID
*   `POST /orders/:id/attribute` — Manually attribute order

## Commissions

*   `GET /commissions` — List all commissions
*   `GET /commissions/:id` — Get commission by ID
*   `PUT /commissions/:id/approve` — Approve pending commission
*   `PUT /commissions/:id/reject` — Reject pending commission

## Payouts

*   `GET /payouts` — List all payouts
*   `GET /payouts/:id` — Get payout by ID
*   `POST /payouts` — Create manual payout

## Tracking Links

*   `GET /links` — List tracking links
*   `GET /links/:id` — Get link by ID
*   `POST /links` — Create tracking link
*   `DELETE /links/:id` — Delete link

## Analytics

*   `GET /analytics/summary` — Performance summary
*   `GET /analytics/affiliates` — Per-affiliate metrics
*   `GET /analytics/products` — Per-product metrics
*   `GET /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

[

### Webhooks

Real-time event notifications

Learn more



](https://chargezen.com/docs/spark/api/webhooks)[

### Authentication

API authentication guide

Learn more



](https://chargezen.com/docs/spark/api/authentication)

### Related Articles

[

#### Authentication

API authentication



](https://chargezen.com/docs/spark/api/authentication)[

#### Webhooks

Event notifications



](https://chargezen.com/docs/spark/api/webhooks)

Was this page helpful?

Need more help? [Contact support](https://chargezen.com/docs/checkoutos/troubleshooting/support)
