When you click Send to AI, a new tab will open with the interface of the selected AI tool.
The full prompt is automatically copied to your clipboard, so you only need to paste it into the message box of the AI.
It is possible to query either salesDeliveryNote or directly from salesDeliveryNoteLines.
Querying salesDeliveryNotes 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.
To change the Status of a salesDeliveryNote, refer to the global sales documents page, which details the available options depending on the document type.
API resources overview / 📝 Update Document Status
Primary or secondary subscription key of your app How to find?
salesDeliveryNotes
Common to all documents
Fields
Type
Description
Length
id SSystem field that cannot be assigned
UUID
Id
creationDate SSystem field that cannot be assigned
DateTime
Creation Date
modificationDate SSystem field that cannot be assigned
DateTime
Modification Date
sourceType SSystem field that cannot be assigned
SALES
PUBLIC_API
indicates the origin of the salesDeliveryNote (SALES=Manual entry)
General Infos
customerDATALOADERUtilize the DATALOADER feature to enrich your query by adding additional resource fields directly in the query.
Customer
Fields of Customer
customerId*The value of the field or object is mandatoryNThe value of this field cannot be modified after the record is created
UUID
ID of the Customer entity. No mandatory for QuoteSee InfoAdditional information is available in the Info block below
documentDate DateThe GraphQL field type is DateTime, but only the date value is considered, the time value is ignored if provided.
DateTime
Document Date
operationalNumber
String
Document Number
50
operationalNumberPresetTextDATALOADERUtilize the DATALOADER feature to enrich your query by adding additional resource fields directly in the query.NEWNew Feature Recently Added. (Introduced in the last version as well as in the previous version)
OperationalNumberPresetText
Fields of OperationalNumberPresetText
operationalNumberPresetTextIdNEWNew Feature Recently Added. (Introduced in the last version as well as in the previous version)
UUID
ID of the operational number preset text See InfoAdditional information is available in the Info block below
status RThis field is read-only, its value cannot be assigned
String
See InfoAdditional information is available in the Info block below
Pending
Closed
15
socialNameNThe value of this field cannot be modified after the record is created
String
Social Name See InfoAdditional information is available in the Info block below
50
contactName
String
Contact Name
50
contactPhone
String
Contact Phone
15
contactEmail
String
Contact Email
50
contactJobAreaIdNThe value of this field cannot be modified after the record is created
UUID
Id of the Contact Job Area
countryAcronym
String
Country Acronym
2
DeliveryNote Lines
lines[]*The value of the field or object is mandatory
Array
Document Lines
Totals and discount
totalNet RThis field is read-only, its value cannot be assigned
Decimal
Amount after discounts, before taxes. See InfoAdditional information is available in the Info block below
totalGross RThis field is read-only, its value cannot be assigned
Decimal
Total amount before discounts and taxes. See InfoAdditional information is available in the Info block below
totalDiscount RThis field is read-only, its value cannot be assigned
Decimal
Sum of all discounts applied. See InfoAdditional information is available in the Info block below
totalCustomerDiscount RThis field is read-only, its value cannot be assigned
Decimal
Discount specific to the customer. See InfoAdditional information is available in the Info block below
totalLiquid RThis field is read-only, its value cannot be assigned
Decimal
Final amount due, including taxes. See InfoAdditional information is available in the Info block below
totalVat RThis field is read-only, its value cannot be assigned
Decimal
Total Value Added Tax (VAT) applied. See InfoAdditional information is available in the Info block below
totalVatBase RThis field is read-only, its value cannot be assigned
Decimal
Total taxable base before VAT. See InfoAdditional information is available in the Info block below
totalFeeSurcharge RThis field is read-only, its value cannot be assigned
Decimal
Total equivalence surcharge applied, based on VAT. See InfoAdditional information is available in the Info block below
totalVatFee RThis field is read-only, its value cannot be assigned
Decimal
VAT amount used as the base for the surcharge. See InfoAdditional information is available in the Info block below
discount
Decimal
Specific discount applied. See InfoAdditional information is available in the Info block below
totalLiquidNoWithholding RThis field is read-only, its value cannot be assigned
Decimal
Total amount excluding withholding See InfoAdditional information is available in the Info block below
totalWithholding RThis field is read-only, its value cannot be assigned
Decimal
Total withholding amount See InfoAdditional information is available in the Info block below
Notes
comments
String
Notes for the customer/recipient of the document (plain text, personalised introduction)
1000
remarks
String
Internal notes for the document (plain text, not visible to the customer)
1000
externalReference
String
External customer reference provided to facilitate communication and tracking See InfoAdditional information is available in the Info block below
20
Customer Information
documentId
String
Identification Number See InfoAdditional information is available in the Info block below
20
documentLanguage
ENGLISH
FRENCH
GERMAN
SPANISH
Language used in sales Document Pdf See InfoAdditional information is available in the Info block below
20
documentTypeDATALOADERUtilize the DATALOADER feature to enrich your query by adding additional resource fields directly in the query.
DocumentType
Fields of DocumentType used for identification purposes
documentTypeIdRThis field is read-only, its value cannot be assigned
UUID
Identifier of the document type See InfoAdditional information is available in the Info block below
vatNumber
String
Vat Number See InfoAdditional information is available in the Info block below
20
invoiceEmail
String
Invoice Email See InfoAdditional information is available in the Info block below
50
hasEquivalenceSurcharge RThis field is read-only, its value cannot be assigned
Boolean
Subject to the equivalence surcharge regime See InfoAdditional information is available in the Info block below
updateDocumentStatusMutThis field can only be used in mutations, not in queriesUThis field is not available when creating the record. It can only be used when updating
CLOSE
Allows changing the status of the quote.
Info
customerId: A unique identifier (UUID) for the Customer entity.
operationalNumberPresetTextId: Applies a prefix to the document number (operationalNumber) once you choose a value from operationalNumberPresetText.
totalGross: Represents the total amount before any discounts or taxes are applied. It includes the sum of all item prices at their full value.
totalDiscount: The aggregated discount amount applied to the document, including all types of discounts that reduce the gross total.
totalNet: The total amount after applying discounts but before adding taxes. It represents the taxable base amount.
discount: Represents a specific discount amount applied within the document. This can be a percentage or a fixed amount reduction.
totalCustomerDiscount: A discount specifically applied based on customer-specific conditions, such as loyalty discounts or promotional offers tailored to the customer.
totalLiquid: The total payable amount, which includes taxes and any additional fees. This represents the final amount due.
totalVat: The total Value Added Tax (VAT) calculated on the taxable base. This amount represents the sum of all VAT applied across items in the document.
totalVatBase: The total taxable base amount before VAT is applied. This is the sum of all net amounts subject to VAT.
totalLiquidNoWithholding:
totalWithholding:
Unused (Spain only).
The following fields are specific to the Spanish legislation (IRPF):
totalLiquidNoWithholding:
Total amount excluding withholding tax.
This represents the taxable base before applying IRPF withholding.
totalWithholding:
Total withholding amount (IRPF) calculated at document level.
Unused (Spain only).
hasEquivalenceSurcharge:
totalFeeSurcharge:
totalVatFee:
unused for the French market
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
externalReference: Allows entering an external reference provided by the customer to facilitate communication and tracking.
vatNumber : An EU VAT Number is a unique identifier for tax purposes within the European Union, used primarily for cross-border transactions. It starts with a two-letter country code followed by a series of numbers and sometimes letters, varying by country.
This field is not applicable for customers that are not registered in the VIES system.
If not provided, the Invoice can still be created, but the online payment email workflow will not be available.
documentId : Identification number, value formats may differ depending on legislationCode.
For a French , you can fill any SIREN of 9 characters or any SIRET of 14 characters.
The value is not mandatory.
For a German , you may enter either a Steuer-IdNr with exactly 11 characters or another value ranging from 11 to 14 characters.
The value is not mandatory.
For a Spanish , you need to fill a valid NIF/DNI/NIE number.
The value is mandatory.
documentLanguage: Applies to section titles and column headers in sales documents PDFs.
documentTypeId:
This functionality determines the corresponding document type based on the document number provided.
This determination is vital for verifying the real existence of a customer, thereby ensuring their authenticity and compliance with regulations.
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 directly from 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 salesDeliveryNote.
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
salesDeliveryNoteDATALOADERUtilize 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
order RThis field is read-only, its value cannot be assigned
Int
Classification of lines from 1 to n See InfoAdditional information is available in the Info block below
unitOfMeasurementDATALOADERUtilize the DATALOADER feature to enrich your query by adding additional resource fields directly in the query.
UnitOfMeasurement
Fields of Unit of Measurement
unitOfMeasurementIdDIn creation, this field can have a default value automatically calculated
UUID
Unit of Measurement ID See InfoAdditional information is available in the Info block below
Tax and Price Information
totalQuantity
Decimal
Quantity product
unitPrice
Decimal
Unit 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
Totals
totalNet RThis field is read-only, its value cannot be assigned
Decimal
Amount after discounts, before taxes.
totalGross RThis field is read-only, its value cannot be assigned
Decimal
Total amount before discounts and taxes.
totalDiscount RThis field is read-only, its value cannot be assigned
Decimal
Sum of all discounts applied.
totalCustomerDiscount RThis field is read-only, its value cannot be assigned
Decimal
Discount specific to the customer.
totalLiquid RThis field is read-only, its value cannot be assigned
Decimal
Final amount due, including taxes.
totalVat RThis field is read-only, its value cannot be assigned
Decimal
Total Value Added Tax (VAT) applied.
totalVatBase RThis field is read-only, its value cannot be assigned
Decimal
Total taxable base before VAT.
totalFeeSurcharge RThis field is read-only, its value cannot be assigned
Decimal
Total equivalence surcharge applied, based on VAT.
totalVatFee RThis field is read-only, its value cannot be assigned
Decimal
VAT amount used as the base for the surcharge.
totalLiquidNoWithholding RThis field is read-only, its value cannot be assigned
Decimal
Line total excluding withholding See InfoAdditional information is available in the Info block below
totalWithholding RThis field is read-only, its value cannot be assigned
Decimal
Line withholding amount See InfoAdditional information is available in the Info block below
withholdingPercentage RThis field is read-only, its value cannot be assigned
Decimal
Withholding percentage applied to the line 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: 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 .
totalLiquidNoWithholding
totalWithholding:
withholdingPercentage:
Unused (Spain only).
The following fields are specific to the Spanish legislation (IRPF):
totalLiquidNoWithholding:
Line total amount excluding withholding tax.
totalWithholding:
Withholding amount (IRPF) calculated for the document line.
withholdingPercentage:
Withholding percentage (IRPF) applied to the line and used to calculate the withholding amount.
Unused (Spain only).
order: This field represents the position of a line within a document.
It is read-only and is automatically calculated during creation or update.
Its purpose is to reflect the order in which the user entered the lines, as shown in the Sage Active interface.
Although the order field cannot be set manually, its value is inferred from the order of lines in the payload.
On creation:
The position of lines in the payload determines their order.
The first line gets order = 1, the second order = 2, etc.
→ Make sure to sort the lines in the desired order before sending the payload.
On update:
Lines are re-ordered from 1 to n based on the payload.
Since the update follows a PATCH logic, you may choose between:
Sending only the changes (modified lines, new lines, lines marked for deletion),
Or sending all the lines (including unchanged ones) in the desired order.
In both cases:
Lines with requestedAction = DELETED are excluded from the new numbering since they will be removed. (More info updating records)
New lines are appended after the last remaining line and automatically numbered accordingly.
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.
Country
Fields of Country
countryIsoCodeAlpha2
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 / Region / Federal State
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.