It is possible to query either salesDeliveryNote or directly from salesDeliveryNoteLines.
Querying salesDeliveryNote allows you to retrieve entire documents with all their associated line items.
This is useful when you need the complete context of a document, including all details of the related lines.
Querying salesDeliveryNoteLines directly is beneficial when you want to filter or aggregate specific line item data across multiple documents, such as analyzing product sales, quantities, or prices.
Both known as Sales delivery notes in the API context and in the product interface.
This resource is the backbone for organizing and managing the shipping and handling details associated with sales orders.
With the flexibility to incorporate both standard and customized fields, Sales Delivery Notes offer granular visibility into the logistical aspects of the order-to-cash process.
This is critical for ensuring timely and accurate deliveries to customers.
Indicates whether a customer is subject to the equivalence surcharge regime.
The equivalence surcharge (totalFeeSurcharge), as applied in Spain, is a form of simplified VAT for retail traders who cannot recover VAT.
The rates of the equivalence surcharge vary according to the VAT rate applicable to the products, with surcharge rates of 5.2% for products with a general VAT of 21%, 1.4% for products with a reduced VAT of 10%, and other rates for different products or categories.
The equivalence surcharge is calculated on amount of general VAT (totalVatFee).
unused for the German market
socialName :
mandatory for the French market
no mandatory for the Spanish market
no mandatory for the Germany market
Specific to sales delivery documents
Status:
Pending: The delivery note is in progress and can be modified.
Closed: The delivery can no longer be modified; it has either been transferred to an invoice or it has been closed.
salesDeliveryNotes/lines or salesDeliveryNoteLines
If the query targets salesDeliveryNotes, then use lines to get the details of the lines.
If the query targets salesDeliveryNoteLines, access the following fields directly, including the option to retrieve information on the parent salesDeliveryNotes.
Common to all documents
Fields
Type
Description
Length
idSSystem field that cannot be assigned
UUID
Id
creationDate SSystem field that cannot be assigned
DateTime
Date of creation
modificationDate SSystem field that cannot be assigned
DateTime
Last modification date
salesDeliveryNotes Parent Information
salesDeliveryNotes DATALOADERUtilize the DATALOADER feature to enrich your query by adding additional resource fields directly in the query.
salesDeliveryNote
Fields of the parent salesDeliveryNotes
36
salesDeliveryNoteId
UUID
salesDeliveryNote ID
Product Information
productDATALOADERUtilize the DATALOADER feature to enrich your query by adding additional resource fields directly in the query.
Product ID See InfoAdditional information is available in the Info block below
productCode
String
Product code
15
productName
String
Product name
2500
unitOfMeasurementDATALOADERUtilize the DATALOADER feature to enrich your query by adding additional resource fields directly in the query.COMING SOON This feature is currently in development and will be available in the next version. It’s already documented to keep you informed about its upcoming availability
Unit of Measurement
Fields of Unit of Measurement
unitOfMeasurementIdDIn creation, this field can have a default value automatically calculatedCOMING SOON This feature is currently in development and will be available in the next version. It’s already documented to keep you informed about its upcoming availability
UUID
Unit of Measurement ID See InfoAdditional information is available in the Info block below
Tax and Price Information
totalQuantity
Int
Quantity product
unitPrice
Decimal
Unit price
totalNet
Decimal
Net price
vatPercentage RThis field is read-only, its value cannot be assigned
Decimal
VAT percentage See InfoAdditional information is available in the Info block below
equivalenceSurchargePercentageRThis field is read-only, its value cannot be assigned
Decimal
Surcharge percentage See InfoAdditional information is available in the Info block below
Discounts
firstDiscount
Decimal
First discount percentage See InfoAdditional information is available in the Info block below
Info
unitOfMeasurementId: COMING SOON This feature is currently in development and will be available in the next version. It’s already documented to keep you informed about its upcoming availability UUID specifying the ID of the unit of measurement associated with the product.
firstDiscount: Various levels of discounts applicable to the document line. These are optional fields and are usually filled in based on promotional schemes or contractual obligations.
productId: The unique identifier for the product. Automatically filled when selecting a product.
vatPercentage: The percentage of Value Added Tax (VAT) applicable to this line. Important for accounting and for generating accurate invoices.
equivalenceSurchargePercentage: The percentage of equivalence surcharge applied in Spain .
salesDeliveryNotes/addresses
Common to all documents
Do not use the addresses[] array.
Instead, use mainAddress for the primary address and deliveryAddress for the delivery address.
Each of these objects contains only one address, representing a singular primary or delivery address, respectively.
countryDATALOADERUtilize the DATALOADER feature to enrich your query by adding additional resource fields directly in the query.
String
Fields of Country
countryIsoCodeAlpha2MutThis field can only be used in mutations, not in queries
String
Country Code See InfoAdditional information is available in the Info block below
2
countryNameRThis field is read-only, its value cannot be assigned
String
CountryName
name
String
Code
50
firstLine
String
First Line
35
secondLine
String
Second Line
35
city
String
Town
35
zipCode
String
Postal Code
9
province
String
Province
25
Info
countryIsoCodeAlpha2 : ISO2 country code.
This field can be used for creation and serves as a simple alternative to assign the country of the address by using the ISO2 code directly, rather than the country ID in the Countries resource.