• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Edit
Show / Hide Table of Contents

POST Agents/Quote/GetQuoteLines

Some tooltip text!
• 15 minutes to read
 • 15 minutes to read
POST /api/v1/Agents/Quote/GetQuoteLines

Get all QuoteLines from an alternative

Query String Parameters

Parameter Name Type Description
$select string Optional comma separated list of properties to include in the result. Other fields are then nulled out to reduce payload size: "Name,department,category". Default = show all fields.
POST /api/v1/Agents/Quote/GetQuoteLines?$select=name,department,category/id

Request Headers

Parameter Name Description
Authorization Supports 'Basic', 'SoTicket' and 'Bearer' schemes, depending on installation type.
X-XSRF-TOKEN If not using Authorization header, you must provide XSRF value from cookie or hidden input field
Content-Type Content-type of the request body: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded, application/json-patch+json, application/merge-patch+json
Accept Content-type(s) you would like the response in: application/json, text/json, application/xml, text/xml, application/json-patch+json, application/merge-patch+json
Accept-Language Convert string references and multi-language values into a specified language (iso2) code.
SO-Language Convert string references and multi-language values into a specified language (iso2) code. Overrides Accept-Language value.
SO-Culture Number, date formatting in a specified culture (iso2 language) code. Partially overrides SO-Language/Accept-Language value. Ignored if no Language set.
SO-TimeZone Specify the timezone code that you would like date/time responses converted to.
SO-AppToken The application token that identifies the partner app. Used when calling Online WebAPI from a server.

Request Body: request

QuoteAlternativeId

Property Name Type Description
QuoteAlternativeId Integer

Response:array

OK

Response Description
200 OK

Response body: array

Property Name Type Description
QuoteLineId int32 Primary key
ERPQuoteLineKey string The foreign key to the quoteline in ERP system (if it has such a representation).
QuoteAlternativeId int32 The alternative this line is part of, the conceptual Parent in CRM database.
ERPProductKey string Foreign key of product+pricelist this line is based on. Can be blank since the QuoteLine doesn’t have to be connected to a product.
Status string If there was a problem with for instance calculation, this field is set to warning or error. Typically shown as an icon. QuoteStatus is an enum with statuses: OK, OKWithInfo, Warning, Error.
Reason string If QuoteStatus is not OK, then this field contains a localized explanation that the user can be shown.
Quantity double How many units; this is a decimal field since you might want to offer fractional units (2.5kg, or 0.5PC).
DeliveredQuantity double How many units have been delivered - updated by ERP system.
Rank int32 QuoteLines can be re-ordered, so we must track the ordering.
Name string The name of the product. Is stored here if the user changes the value from the product in the pricelist, or just enters a QuoteLine without a product link.
Description string A longer description for the product. Is stored here if the user changes the value from the product in the pricelist, or just enters a QuoteLine without a product link.
Code string A value the salesmen use to quickly find the correct product. Is stored here if the user changes the value from the product in the pricelist, or just enters a QuoteLine without a product link.
QuantityUnit string What is the unit (meter, ton, bushel, microsecond, gradus, τρυβλίον, 五合枡, دونم or whatever); Connector handles conversion relative to PriceUnit if they are different.
PriceUnit string What is the unit (meter, ton, bushel, microsecond, gradus, τρυβλίον, 五合枡, دونم or whatever); read-only for lines that originate in defined products.
ItemNumber string Norwegian: «Postnummer». Specific numbers from some hierarchy, for instance '1.4.3.2'. Is stored here if the user changes the value from the product in the pricelist, or just enters a QuoteLine without a product link.
Url string A url to the product info. Can be empty. Is stored here if the user changes the value from the product in the pricelist, or just enters a QuoteLine without a product link.
ProductCategoryKey string Either a List id to an id from a connector provided list, or, if the connection doesn't support lists, a text. Is stored here if the user changes the value from the product in the pricelist, or just enters a QuoteLine without a product link.
ProductFamilyKey string Either a List id to an id from a connector provided list, or, if the connection doesn't support lists, a text. Is stored here if the user changes the value from the product in the pricelist, or just enters a QuoteLine without a product link.
ProductTypeKey string Either a List id to an id from a connector provided list, or, if the connection doesn't support lists, a text. Is stored here if the user changes the value from the product in the pricelist, or just enters a QuoteLine without a product link.
Supplier string The name of the supplier. Is stored here if the user changes the value from the product in the pricelist, or just enters a QuoteLine without a product link.
SupplierCode string The suppliers' code or part number for this product. Is stored here if the user changes the value from the product in the pricelist, or just enters a QuoteLine without a product link.
Thumbnail string A small image of the product, typically used to show in a list. Base64 encoded png.
VATInfo string Tax/VAT information, Extra info about VAT that the connector might insert, and the users might want to specify on the quote. The core CRM product has no business logic for this field, it is wholly up to connectors to use it.
VAT double Tax/VAT - THIS IS A PERCENTAGE. The connector is responsible for populating this field; the percentage will be used to calculate VAT amounts available as merge fields in the document templates (but amounts are never stored in the database).
UnitCost double The cost price per unit for this product. May be filled in by connector if it has the Provide-Cost capability.
UnitMinimumPrice double The minimum price this line can be sold for (to limit discounting). Will come from the connector. List price per unit must exceed the minimum price per unit.
UnitListPrice double The standard list price; as given by ERP Connector, OR overridden by user
ExtraInfo array Extra information, supplied by QuoteConnector, used by a future dynamic GUI extension
RawExtraInfo string Read-only extra information in plain text, supplied by QuoteConnector, used by a future dynamic GUI extension
IsSubscription bool Is this a subscription product, sold in repeating intervals/amounts?
SubscriptionUnit string Either a List id to an id from a connector provided list, or, if the connection doesn’t support lists, a text with the actual subscription unit.
SubscriptionQuantity double The default number of SubscriptionUnits to suggest when creating quote lines from this product
SubscriptionStart date-time Start date for subscription, as offered
ERPDiscountPercent double The discount the system calculates based on customer / quantity / whatever. Can be overrided by the salesman in the field 'DiscountPercent' or 'DiscountAmount'. Both fields ERPDiscountPercent and ERPDiscountAmount will be filled out. If UserValueOverride is set to ‘None’ then the value is copied to DiscountPercent. The Percentage is given in integer form, i.e. ‘12%’ is represented as ‘12’.
ERPDiscountAmount double The discount the system calculates based on customer / quantity / whatever. Can be overrided by the salesman in the field 'DiscountPercent' or 'DiscountAmount'. If UserValueOverride is set to ‘None’ then the value is copied to DiscountAmount. Both fields ERPDiscountPercent and ERPDiscountAmount will be filled out.
DiscountPercent double The discount for the line, in percent. Both ‘DiscountPercent’ and ‘DiscountAmount’ shall be filled out, but the UserValueOverride field must be set to the field the user actually changed last. If this field is filled out by the user, it overrides any discount suggested by the connector. If the user has not filled this in, the system will copy the ERP discount amount to this field. The Percentage is given in integer form, i.e. ‘12%’ is represented as ‘12’.
DiscountAmount double The discount for the line, in whatever currency the sale is in. Both ‘DiscountPercent’ and ‘DiscountAmount’ shall be filled out, but the UserValueOverride field must be set to the field the user actually changed last. If this field is filled out by the user, it overrides any discount suggested by the connector. If the user has not filled this in, the system will copy the ERP discount amount to this field.
UserValueOverride string Has the pre-calculated (from ERP) price information been overridden, and how. If the user has filled out the discountpercentage field, then the UserValueOverride field is set to OverridePercent. (The DiscountAmount, EarningPercent, EarningAmount and TotalPrice fields are calculated based on the DiscountPercent.)
EarningPercent double The earning, in percent. Both ‘EarningAmount and ‘EarningPercent shall be filled out, but the UserValueOverride field must be set to the field the user actually changed last. The Percentage is given in integer form, i.e. ‘12%’ is represented as ‘12’.
EarningAmount double The earning, in whatever currency the sale is in. Both ‘EarningAmount and ‘EarningPercent shall be filled out, but the UserValueOverride field must be set to the field the user actually changed last.
SubTotal double Value to help the user interface, is equal to 'Quantity * ListPrice'
TotalPrice double TotalPrice = SubTotal - DiscountAmount or TotalPrice = (UnitCost * Quantity) + EarningAmount, according to what the user changed last.
Rights string Field1=right&Field2=right, etc. of any fields that have non-standard field access rights. Rights can be one of: N (=None or Hidden), R (=Read-only), W (=Writeable), M (=Mandatory). The fields will mostly be from the Quoteline table, but some added fields that are conceptually part of the quoteline, like Image will also be possibly to set rights on. Will be used by SuperOffice to control the user interface when showing the record.
Rule string The names of one or more calculation rules that are in effect for this line, comma-separated case-insensitive
ExtraField1 string This a simple field for adding information that the Connector can provide, and that the qoute document need to display.
ExtraField2 string This a simple field for adding information that the Connector can provide, and that the qoute document need to display.
ExtraField3 string This a simple field for adding information that the Connector can provide, and that the qoute document need to display.
ExtraField4 string This a simple field for adding information that the Connector can provide, and that the qoute document need to display.
ExtraField5 string This a simple field for adding information that the Connector can provide, and that the qoute document need to display.
TableRight TableRight The carrier's table right
FieldProperties object Field property dictionary mapping field names to field access rights.

Sample request

POST /api/v1/Agents/Quote/GetQuoteLines
Authorization: Basic dGplMDpUamUw
Accept: application/json; charset=utf-8
Accept-Language: sv
Content-Type: application/json; charset=utf-8

{
  "QuoteAlternativeId": 39
}

Sample response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

[
  {
    "QuoteLineId": 22,
    "ERPQuoteLineKey": "incidunt",
    "QuoteAlternativeId": 307,
    "ERPProductKey": "qui",
    "Status": "Error",
    "Reason": "",
    "Quantity": 14798.748,
    "DeliveredQuantity": 12598.68,
    "Rank": 55,
    "Name": "Trantow Inc and Sons",
    "Description": "Implemented multi-tasking Graphical User Interface",
    "Code": "voluptas",
    "QuantityUnit": "quae",
    "PriceUnit": "quis",
    "ItemNumber": "1051860",
    "Url": "http://www.example.com/",
    "ProductCategoryKey": "VIP Customer",
    "ProductFamilyKey": "aut",
    "ProductTypeKey": "nesciunt",
    "Supplier": "voluptatum",
    "SupplierCode": "molestias",
    "Thumbnail": "quia",
    "VATInfo": "porro",
    "VAT": 15083.942,
    "UnitCost": 15811.029999999999,
    "UnitMinimumPrice": 17729.038,
    "UnitListPrice": 25971.458,
    "ExtraInfo": [
      {
        "Name": "Fisher, Hessel and Runolfsson",
        "Value": "odit",
        "Type": "Image",
        "TableRight": null,
        "FieldProperties": {
          "fieldName": {
            "FieldRight": null,
            "FieldType": "System.Int32",
            "FieldLength": 684
          }
        }
      },
      {
        "Name": "Fisher, Hessel and Runolfsson",
        "Value": "odit",
        "Type": "Image",
        "TableRight": null,
        "FieldProperties": {
          "fieldName": {
            "FieldRight": null,
            "FieldType": "System.Int32",
            "FieldLength": 684
          }
        }
      }
    ],
    "RawExtraInfo": "velit",
    "IsSubscription": false,
    "SubscriptionUnit": "ea",
    "SubscriptionQuantity": 12595.546,
    "SubscriptionStart": "2009-12-31T17:54:03.5389365+01:00",
    "ERPDiscountPercent": 11605.202,
    "ERPDiscountAmount": 8762.6639999999989,
    "DiscountPercent": 6365.1539999999995,
    "DiscountAmount": 25758.345999999998,
    "UserValueOverride": "DiscountAmount",
    "EarningPercent": 24642.642,
    "EarningAmount": 6835.254,
    "SubTotal": 1012.2819999999999,
    "TotalPrice": 17356.092,
    "Rights": "sit",
    "Rule": "dolorem",
    "ExtraField1": "vitae",
    "ExtraField2": "et",
    "ExtraField3": "corrupti",
    "ExtraField4": "sit",
    "ExtraField5": "sunt",
    "TableRight": null,
    "FieldProperties": {
      "fieldName": {
        "FieldRight": null,
        "FieldType": "System.Int32",
        "FieldLength": 163
      }
    }
  }
]
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top