Public read-only JSON:API endpoints for the misaf/vendra-affiliate module.
The server intentionally exposes only what referral landing pages need: an
affiliate's code and created_at. Suspended affiliates are invisible, and
no user, commission, or payout data is ever serialized.
| Method | URI | Description |
|---|---|---|
| GET | /v1/affiliates |
List active affiliates (filter[code]). |
| GET | /v1/affiliates/{id} |
Show one active affiliate. |
composer require misaf/vendra-affiliate-apiThe service provider registers the vendra-affiliate JSON:API server and the
api-middleware routes automatically.