Agent

Sales agents that can be attached to customers for commission tracking.

Path Parameter::CODE (string) — the agent code in the URL path

Endpoints

GET
/agent

List agents with pagination and filters

GET
/agent/:CODE

Get a single agent by code

POST
/agent

Create a new agent

PUT
/agent/:CODE

Update a agent by code

DELETE
/agent/:CODE

Delete a agent by code

Fields

FieldTypeRequiredNotes
codestring
Yes
Agent code. Proven: "AGT-01".
descriptionstring
Yes
Agent name. Proven: "Sales Agent A".
attachmentsstringNoFile attachment reference.
isactivebooleanNoActive flag.

Examples

POST — Create Agent

POST /agent
{
  "code": "AGT-01",
  "description": "Sales Agent A"
}

GET — List Agents

GET /agent?offset=0