AlmondTill/G3N API

NewOrgCustomerInput

input type

Create-input for an OrgCustomer. Every terms field is optional (the enablement stays creatable thin); creditLimit/orderMinimum must match the org's defaultCurrency (an org with NO defaultCurrency cannot store OrgCustomer money — CONFLICT/REF_STATE naming the absence, the order-create precedent); customerPriceGroupId gates in-tenant + active; priceListId gates in-tenant + active + the scope law; billTo/shipTo gate non-doomed + host-membership. the AR custody fields (arBalanceMinor/arCurrency) are system-maintained and NOT creatable.

Fields

FieldTypeRequiredNotes
captionStringnoOptional: when omitted the per-type default applies — the merchant code when given, else 'Org Customer'; when supplied it must be non-blank.
organizationIdID ID!yesThe parent Organization id — rides the header.
corporateCustomerIdID ID!yesThe group CorporateCustomer this enablement names — immutable after birth.
accountNumberStringno
paymentTermsStringnoThe canned payment-terms token (net-30 · 2-10-net-30 · cod · prepaid).
creditLimitMoneyEntryInputnoMust match the org's defaultCurrency.
orderMinimumMoneyEntryInputnoSame currency law.
customerPriceGroupIdIDno
priceListIdIDnoThe contract/book carrier.
billToContactIdIDno
shipToContactIdIDno
codeStringno

Used by