Introduction
The Partners API allows you to manage partner records in the DEMET system. Partners are key stakeholders who have specific privileges and access within the platform.Authentication
All Partner API endpoints require authentication using JWT tokens stored in cookies. The system automatically validates theaccess_token cookie sent with each request.
Available Endpoints
Create Partner
Register a new partner in the system
List Partners
Retrieve all registered partners
Update Partner
Update an existing partner’s information
Delete Partner
Remove a partner from the system
Partner Object
The partner object contains the following fields:Unique identifier for the partner
Full name of the partner
Email address of the partner (must be valid email format)
Contact phone number
Identification number (must be a positive number)
Error Handling
All endpoints return standard HTTP status codes:200- Success400- Bad Request (validation error or duplicate data)401- Unauthorized (missing or invalid token)404- Not Found (partner does not exist)500- Internal Server Error