Create Customer

Create a new customer with optional template application.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path Parameters

tenantstringRequired

Your Entra Tenant ID. More details.

environmentstringRequired

Your Business Central Environment. More details.

companystringRequired

Your Business Central Company. More details.

Headers

x-api-versiondateOptional

Used for API versioning. More details.

Request

This endpoint expects an object.
namestringRequired
Max. length 100 symbols.
nostringOptional
Max. length 20 symbols.
addressstringOptional
Max. length 100 symbols.
postCodestringOptional
Max. length 20 symbols.
citystringOptional
Max. length 30 symbols.
address2stringOptional
Max. length 50 symbols.
countystringOptional
Max. length 30 symbols.
countryCodestringOptional
Max. length 10 symbols.
contactstringOptional
Max. length 100 symbols.
emailstringOptional
Max. length 80 symbols.
phonestringOptional
Max. length 30 symbols.
mobilePhonestringOptional
Max. length 30 symbols.
eanstringOptional
Max. length 13 symbols.
vatRegistrationNostringOptional
Max. length 20 symbols.
customerTemplatestringOptional
Customer template code from Customer Templ. table that applies customer-specific defaults. If both `customerTemplate` and `configurationTemplate` are provided, `customerTemplate` takes priority and `configurationTemplate` will be ignored. If neither template is specified, the default template from Ecommerce Setup will be used (Customer Template Code first, then Config Template Code as fallback).
configurationTemplatestringOptional

Configuration template code from Config. Template Header table that applies general setup defaults. This template will only be applied if customerTemplate is not provided. If neither template is specified, the default template from Ecommerce Setup will be used (Customer Template Code first, then Config Template Code as fallback).

Response

This endpoint returns an object.
idUUID
nostring
namestring
addressstring
postCodestring
citystring
address2string
countystring
countryCodestring
contactstring
emailstring
phonestring
mobilePhonestring
eanstring
vatRegistrationNostring
genBusPostingGroupstring
vatBusPostingGroupstring
customerPostingGroupstring
currencyCodestring
customerPriceGroupstring
invoiceDiscCodestring
customerDiscGroupstring
allowLineDiscboolean
paymentTermsCodestring
paymentMethodCodestring
shipmentMethodCodestring
rowVersionstring