Introduction
The EPR LAPS (Extended Producer Responsibility - Local Authority Payment System) Backend API provides endpoints for managing bank details, accessing financial documents, and controlling permissions for local authorities in the EPR system.Base URL
The API base URL depends on your environment:The default port for local development is
3001, but this can be configured via the PORT environment variable.Available Endpoints
All endpoints (except/health) require JWT authentication. See the Authentication page for details.
Health Check
Bank Details
POST - Create new bank details
PUT - Confirm bank details
Documents
GET /document/ - Retrieve a specific document by ID
Permissions
- Viewing full bank details
- Confirming bank details
- Creating bank details
- Listing finance documents
- Accessing finance documents
Request Headers
All authenticated requests must include:| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer token with JWT |
Content-Type | For POST/PUT | application/json |
x-cdp-request-id | No | Request tracing ID for debugging |
Example Request
Response Format
All API responses follow standard HTTP status codes:| Status Code | Description |
|---|---|
200 | Success |
201 | Created successfully |
400 | Bad request (validation error) |
401 | Unauthorized (invalid or missing token) |
403 | Forbidden (insufficient permissions) |
404 | Not found |
500 | Internal server error |
Service Configuration
The API service is configured with:- Service Name:
epr-laps-backend - Default Host:
0.0.0.0 - Default Port:
3001 - Database: MongoDB
- Default Database Name:
epr-laps-backend
Configuration values can be overridden using environment variables. See the deployment documentation for details.