salesQuoteLines resource type (v1.0)

NEW VERSION This is v1.0 of the Business Central API. For the newest version, see Business Central API (V2.0).

Represents a salesQuoteLines resource type in Business Central.

Note


For information about enabling APIs for Business Central see Enabling the APIs for Dynamics 365 Business Central.

Methods

MethodReturn TypeDescription
GET salesQuoteLinessalesQuoteLinesGet a sales quote line object.
POST salesQuoteLinessalesQuoteLinesCreates a sales quote line object.
PATCH salesQuoteLinessalesQuoteLinesUpdates a sales quote line object.
DELETE salesQuoteLinesnoneDeletes a sales quote line object.

Properties

PropertyTypeDescription
documentIdGUIDThe ID of the parent quote.
sequencenumericThe line sequence number.
itemIdGUIDThe Id of the item in the quote line.
accountIdGUIDThe Id of the Account that will be used for this line. lineType will automatically be set to "Account" if this is set.
lineTypestringThe type of the line. Can be Comment,Account,Item,Resource,Fixed Asset,Charge
lineDetailscomplexThe details of the line.
descriptionstringA description of the item in the quote line.
unitOfMeasureIdGUIDThe Id of the unit of measure in the quote line.
unitOfMeasureNAV.UnitOfMeasureThe unit of measure complex type.
unitPricenumericThe unit price of each individual item in the quote line.
quantitynumericThe quantity of the item in the quote line.
discountAmountnumericThe line discount amount.
discountPercentnumericThe line discount percent.
discountAppliedBeforeTaxbooleanSpecified if the discount is applied before tax. Read-Only.
amountExcludingTaxnumericThe line amount excluding the tax. Read-Only.
taxCodestringThe tax code for the line.
taxPercentdecimalThe tax percent for the line.
totalTaxAmountnumericThe total tax amount for the line. Read-Only.
amountIncludingTaxnumericThe total amount for the line including tax. Read-Only.
netAmountnumericThe net amount is the amount including all discounts (taken from quote header). Read-Only.
netTaxAmountnumericThe net tax amount is the tax amount calculated from net amount. Read-Only.
netAmountIncludingTaxnumericThe net amount including tax is the total net amount including tax. Read-Only.

Relationships

A Sales Quote (documentId) must exist in the Sales Quotes table.

An Item (itemId) must exist in the Item table.

An Account (accountId) must exist in the Accounts table.

A Unit of Measure (unitOfMeasure) must exist in the Unit of Measure table.

JSON representation

Here is a JSON representation of the resource.

  "value": [
    {
      "documentId": "GUID",
      "sequence": "decimal",
      "itemId": "GUID",
      "accountId": "GUID",
      "lineType": "String",
      "lineDetails": {NAV.documentLineObjectDetails},
      "description": "string",
      "unitOfMeasureId": "GUID",
      "unitOfMeasure": {NAV.UnitOfMeasure},
      "unitPrice": "decimal",
      "quantity": "decimal",
      "discountAmount": "decimal",
      "discountPercent": "decimal",
      "discountAppliedBeforeTax": "boolean",
      "amountExcludingTax": "decimal",
      "taxCode": "String",
      "taxPercent": "decimal",
      "totalTaxAmount": "decimal",
      "amountIncludingTax": "decimal",
      "netAmount": "decimal",
      "netTaxAmount": "decimal",
      "netAmountIncludingTax": "decimal"
    }
  ]

Sales Quote Line
Get Sales Quote Line
Create Sales Quote Line
Update Sales Quote Line
Delete Sales Quote Line