> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orquestr.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# sicarv4.customers.create

> Create SICAR customer (cliente + historial). Registry write — clave unique.

# `sicarv4.customers.create`

Create SICAR customer (cliente + historial). Registry write — clave unique.

|                |            |
| -------------- | ---------- |
| **Adapter**    | `sicarv4`  |
| **Operation**  | `db.query` |
| **SQL policy** | `write`    |

## Parameters

| Name       | Kind   | Required | Notes                                                                                                             |
| ---------- | ------ | -------- | ----------------------------------------------------------------------------------------------------------------- |
| `document` | `json` | Yes      | Required: nombre, clave. Optional: rfc, email/mail, diasCredito, limite, domicilio, telefono, rgf\_id, grc\_id, … |

## Example

```bash theme={"system"}
curl -s -X POST "$API/v1/devices/$DEVICE_ID/functions/sicarv4.customers.create" \
  -H "Authorization: Bearer $ORQUESTR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"document":{"nombre":"Cliente","clave":"C-001"}}}'
```
