Appearance
UpsertCustomerInput
Type: Input
Input for creating or updating a customer
Fields
| Name | Type | Default | Description |
|---|---|---|---|
| createdAt | ISO8601 | Override creation timestamp (ISO8601). Honored only on create — passing on update is rejected. | |
| creditCurrency | CurrencyISO | Currency for credit limit (ISO 4217) | |
| creditHoldReason | String | Reason for credit hold | |
| creditLimit | Float | Credit limit amount (nil = no limit) | |
| defaultTaxCodeId | TaxCodeID | Default tax code for this customer's documents | |
String | Primary email address | ||
| externalId | String | External system reference | |
| id | CustomerID | ID for update; omit for create | |
| isActive | Boolean | Whether the customer is active | |
| isCreditHold | Boolean | Place customer on credit hold | |
| isTaxExempt | Boolean | Whether the customer is tax exempt | |
| name | String! | Customer name (required) | |
| notes | String | General notes | |
| paymentTermsDays | Int | Net payment terms in days (0 = prepayment) | |
| phone | String | Primary phone number | |
| taxExemptReference | String | Tax exemption certificate or VAT number | |
| updatedAt | ISO8601 | Override update timestamp (ISO8601). Honored on create or update; defaults to now. |