Developer readiness

API contracts are prepared for merchant workflows.

The current routes validate payloads, return safe mock responses without database configuration, and switch to Afrihost MySQL when DB_* variables are present.

API surface

Merchant resources

Use raw API links only when explicitly testing developer contracts.

GET/api/merchants

Read merchant onboarding records

POST/api/campaigns

Create campaign drafts

POST/api/reward-requests

Submit reward issuance requests

PATCH/api/redemptions

Update redemption status

GET/api/database/status

Check Afrihost MySQL reachability