Create Client
Creates a new client in the workspace.
Authentication: X-API-KEY header (see Authentication).
Request body
| Field | Type | Description |
|---|---|---|
| (Client fields) | object | A Client object. At minimum a name; address, contacts, tax and billing fields are optional. |
Request
curl -X POST https://api.withmoxie.com/public/action/clients/create \
-H "X-API-KEY: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{"name": "Acme Kft.", "email": "billing@acme.example"}'
Response
Returns the created Client including its generated id.
{
"id": "66b0f2a1c3a9e40012ab34cd",
"accountId": 10016,
"name": "Acme Kft.",
"clientType": "Client",
"email": "billing@acme.example",
"currency": "HUF",
"customValues": [],
"contacts": []
}