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

documentIdUUIDRequired

Headers

x-api-versiondateOptional

Used for API versioning. More details.

Response

This endpoint returns an object.
externalNostring
idUUID
documentTypeenum
creationStatusenum
postingStatusenum
currencyCodestring
currencyExchangeRatedouble
externalDocumentNostring
locationCodestring
yourReferencestring
languageTagstring
pricesExcludingVatboolean
ticketReservationTokenstring
captureProcessingStatusenum
lastCaptureErrorMessagestring
createdAtdatetime
createdDocumentNostring
postedDocumentNoslist of strings
sellToCustomerobject
shipToCustomerobject
shipmentobject
commentslist of objects
salesDocumentLineslist of objects
paymentslist of objectsOptional
Present on Get Sales Document when the document has payment lines. Never present on Find Sales Documents hits, which carry no payment details.
dimensionslist of objectsOptional

List of dimensions stored on the document header, as supplied when the document was created or added by an extension to the incoming document. This is the document’s own dimension set, not the effective set the created sales header posts with: dimensions that come from default dimension setup are not included, and neither are dimensions an extension put directly on the created sales header.

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 serialization logic.