Agent
Sales agents that can be attached to customers for commission tracking.
Path Parameter:
:CODE (string) — the agent code in the URL pathEndpoints
GET
/agentList agents with pagination and filters
GET
/agent/:CODEGet a single agent by code
POST
/agentCreate a new agent
PUT
/agent/:CODEUpdate a agent by code
DELETE
/agent/:CODEDelete a agent by code
Fields
| Field | Type | Required | Notes |
|---|---|---|---|
| code | string | Yes | Agent code. Proven: "AGT-01". |
| description | string | Yes | Agent name. Proven: "Sales Agent A". |
| attachments | string | No | File attachment reference. |
| isactive | boolean | No | Active flag. |
Examples
POST — Create Agent
POST /agent
{
"code": "AGT-01",
"description": "Sales Agent A"
}GET — List Agents
GET /agent?offset=0