Create Sales Document

Beta

Authentication

x-np-api-keystring
API Key authentication via header

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.
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
ticketReservationTokenstringOptional

Used to link the sales document to a ticket reservation, enabling the system to associate ordered ticket items with their pre-reserved admissions. Obtained as the token from the Ticket Reservation API.

ticketHolderstringOptional

The name of the person holding the ticket(s). Max. length 100 symbols.

ticketHolderLanguagestringOptional
The language code the ticket holder wants to receive notifications in. Max. length 10 symbols.
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