misaf / vendra-affiliate-api
API services for the vendra-affiliate module
Package info
github.com/misaf/vendra-affiliate-api
Type:vendra-module
pkg:composer/misaf/vendra-affiliate-api
v1.6.0
2026-07-22 21:53 UTC
Requires
- php: ^8.3
- illuminate/support: ^13.0
- misaf/vendra-affiliate: v1.6.0
- misaf/vendra-api: v1.6.0
- spatie/laravel-package-tools: ^1.93.1
Requires (Dev)
- fakerphp/faker: ^1.24.1
- larastan/larastan: ^3.10.0
- laravel-json-api/testing: ^3.2
- laravel/boost: ^2.4.12
- laravel/pint: ^1.29.3
- misaf/vendra-testing: v1.6.0
- mockery/mockery: ^1.6.12
- nunomaduro/collision: ^8.9.4
- orchestra/testbench: ^11.1
- pestphp/pest: ^4.7.5
- pestphp/pest-plugin-arch: ^4.0.2
- pestphp/pest-plugin-laravel: ^4.1
- pestphp/pest-plugin-profanity: ^4.2.1
- pestphp/pest-plugin-type-coverage: ^4.0.4
- phpstan/extension-installer: ^1.4.3
README
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.
Endpoints
| Method | URI | Description |
|---|---|---|
| GET | /v1/affiliates |
List active affiliates (filter[code]). |
| GET | /v1/affiliates/{id} |
Show one active affiliate. |
Installation
composer require misaf/vendra-affiliate-api
The service provider registers the vendra-affiliate JSON:API server and the
api-middleware routes automatically.