New customer
core_create_customerCreate a customer we can sell to. A credit limit of 0 means prepay only — that is a real position, not a missing value. Do not invent a limit to make an order go through; if the limit is wrong, someone with the authority to change it changes it, and that change is its own logged command. Effects: customer created.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Legal or trading name as it will appear on the invoice. | |
| No | Billing email. | ||
| terms | No | Payment terms: immediate, or netN for N days (net7, net15, net30, net60). Drives the invoice due date. | |
| tax_id | No | Their VAT / EIN, printed on the document where present. | |
| address | No | Billing address, as it should print in the bill-to block. Required before a solo invoice can be issued. | |
| credit_limit | No | How much unpaid exposure we will carry for this customer. In cents (integer minor units) — 1250 means $12.50. |