Create Sales Document

Beta

Path parameters

tenantstringRequired

Your Entra Tenant ID. More details.

environmentstringRequired

Your Business Central Environment. More details.

companystringRequired

Your Business Central Company. More details.

Headers

AuthorizationstringRequired

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

x-api-versiondateOptional

Used for API versioning. More details.

Request

This endpoint expects an object.
externalNostringRequired
Max. length 20 symbols.
documentTypeenumRequired
Allowed values:
sellToCustomerobjectRequired
paymentslist of objectsRequired
salesDocumentLineslist of objectsRequired
currencyCodestringOptional
Max. length 10 symbols.
currencyExchangeRatedoubleOptional
externalDocumentNostringOptional
Max. length 35 symbols.
locationCodestringOptional
Max. length 10 symbols.
yourReferencestringOptional
pricesExcludingVatbooleanOptional
customFieldsobjectOptional

This section allows you to add custom fields as key-value pairs. You can handle these fields by subscribing to our extension publishers and implementing custom deserialization logic.

shipToCustomerobjectOptional
shipmentobjectOptional
commentslist of objectsOptional

Response

This endpoint returns an object.
idUUID