Skip to content

Sales & Invoicing

These services handle sales invoice creation, management, and retrieval. The XMLSalesInvoice service provides full invoice data with inline lines, while AMZSMobileSalesInvoices offers a simplified view.

XMLSalesInvoice

Namespace: urn:microsoft-dynamics-schemas/page/xmlsalesinvoiceEndpoint: Page/XMLSalesInvoiceType: Full CRUD Read key: No (String)

Custom Method

This service exposes an additional custom method Delete_SalesInvLines beyond the standard CRUD operations.

Large Entity

This is a massive entity with approximately 227+ fields, including inline invoice lines. Responses can be very large. Use targeted filters whenever possible.

Key Entity Fields

FieldTypeDescription
KeyStringNAV internal key
NoStringInvoice number (primary key)
Pre_Assigned_NoStringPre-assigned invoice number
Sell_to_Customer_NoStringSell-to customer number
Sell_to_Customer_NameStringSell-to customer name
Bill_to_Customer_NoStringBill-to customer number
Bill_to_NameStringBill-to customer name
Sell_to_AddressStringSell-to street address
Sell_to_CityStringSell-to city
Sell_to_Post_CodeStringSell-to postal code
Posting_DateDateAccounting posting date
Order_DateDateOrder creation date
Document_DateDateDocument date
Payment_Method_CodeStringPayment method code
Payment_Terms_CodeStringPayment terms code
AmountBigDecimalInvoice amount excluding VAT
Amount_Including_VATBigDecimalInvoice amount including VAT
VAT_Registration_NoStringCustomer VAT registration number
User_IDStringCreating user identifier
Fiscal_SI_Issue_DateDateSlovenian fiscal issue date
Responsibility_CenterStringOrganizational responsibility center
Work_Order_NoStringAssociated work order number

Inline Sales Lines

The entity includes inline Sales_Line records with the following structure:

FieldTypeDescription
TypeEnumLine type (Item, Resource, etc.)
NoStringItem or resource number
DescriptionStringLine item description
QuantityBigDecimalQuantity
Unit_PriceBigDecimalPrice per unit

Common Filter Patterns

The application uses the following filter patterns when querying this service:

Invoices for a Work Order:

Filter by Pre_Assigned_No = {workOrderNo}

Invoices for Current User (last 7 days):

Filter by User_ID = {currentUserId}
Filter by Fiscal_SI_Issue_Date = {7-day window from today}

AMZSMobileSalesInvoices

Namespace: urn:microsoft-dynamics-schemas/page/amzsmobilesalesinvoicesEndpoint: Page/AMZSMobileSalesInvoicesType: Full CRUD Read key: No (String)

This is a simplified invoice view designed for mobile display. It contains only the essential header fields without inline line items.

Entity Fields

FieldTypeDescription
KeyStringNAV internal key
NoStringInvoice number (primary key)
Sell_to_Customer_NoStringSell-to customer number
Sell_to_Customer_NameStringSell-to customer name
Sell_to_Customer_Name_2StringExtended customer name
Sell_to_AddressStringSell-to street address
Sell_to_Address_2StringExtended address line
Sell_to_CityStringSell-to city
Sell_to_ContactStringSell-to contact person
Sell_to_Post_CodeStringSell-to postal code
Sell_to_CountyStringSell-to county/region
Sell_to_Country_Region_CodeStringSell-to country code
User_IDStringCreating user identifier
AmountBigDecimalInvoice amount excluding VAT
Amount_Including_VATBigDecimalInvoice amount including VAT
VAT_Registration_NoStringCustomer VAT registration number
Responsibility_CenterStringOrganizational responsibility center