Create Sales Document
Authentication
x-np-api-keystring
API Key authentication via header
Path parameters
tenant
Your Entra Tenant ID. More details.
environment
Your Business Central Environment. More details.
company
Your Business Central Company. More details.
Headers
x-api-version
Used for API versioning. More details.
Request
This endpoint expects an object.
externalNo
Max. length 20 symbols.
documentType
Allowed values:
sellToCustomer
payments
salesDocumentLines
currencyCode
Max. length 10 symbols.
currencyExchangeRate
externalDocumentNo
Max. length 35 symbols.
locationCode
Max. length 10 symbols.
yourReference
pricesExcludingVat
ticketReservationToken
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.
customFields
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.
shipToCustomer
shipment
comments
Response
This endpoint returns an object.
id
