Sales APIs
List of all sales quote items
HTTP method | GET |
URI | https://api.rambase.net/sales/quote-items |
Supported formats | Xml, Html, Json (ex. $format=json) |
Maximum page size ($top) | 80 |
Custom fields | Custom fields supported |
Successful HTTP status code | 200 |
API resource identifier | 2133, version 64 |
The following body must be added to the request. Mouse over fieldnames for description and other useful information about the fields. Note that fields in bold are required/mandatory.
The query string is placed after the resource URL, seperated with a questionmark (?). The query string is composed of a series of query parameters with values. See the page about query parameters on how to use these parameters.
$showDomainDescriptions Boolean, optional | Set to "true" to include domain descriptions for fields using domain values. See the Domain values page for more information. Default value is false. |
$lang String, optional | Specifies the language used in the response, following the 3-letter ISO-639-1 [lll] |
$access_token String, optional | After successful login you get an access token which needs to be provided in all API requests. Even though it is possible to pass this token as query parameter, we recommended passing it using the HTTP request header as described in Authorization. Note that all access tokens have an expiration time. |
$db String, optional | Set the database/company for the request |
$expand String, optional | Use to include output fields that are not returned by default in the response. Accepts a comma-separated list of expandable field names. See the Expand and Select page for more information. |
$select String, optional | Use to define the fields to return in the response. Accepts a comma-separated list of field names. See the Expand and select page for more information. |
$useMinimumVersion Integer, optional | Used to run a new version of an API resource when your API client is running a deprecated API resource. See the Breaking changes page for more information. |
$format String, optional | Set the format of the response to use for the request. Accepted values are "xml", "html", "jsonstream", "json" |
$showCustomFields Boolean, optional | Set to "true" to include custom fields. Default value is false. |
$top String, optional | Specifies number of rows to return in each page. Maximum limit is specific for each API resource. Default value is 10. |
$pageKey String, optional | Use to navigate to first, previous, next or last page in list. Add $expand=PagingDetails to add the different keys to the response. |
$filter String, optional | Use to filter the result list, see the Filtering and sorting page for more information. |
$orderby String, optional | Use to order the result list, see the Filtering and sorting page for more information. |
$inlinecount String, optional | Set to "allpages" to include total number of rows in the response. Possible values are: "allpages", "none" |
Read more about filters and sorting on how to use filter parameters and named filters.
ActiveItems() Named filter | Active sales quote items. Sales quote items registered, and within validity period and expiration date |
Agreements() Named filter | Items where an agreement is made (status 4) |
CloseToExpiration() Named filter | Items close to expiration date of sales quote validity or close to expiration date of agreement |
InfoNotifification() Named filter | Sales quote items with one or more notifications of category I (Information) |
MyItems() Named filter | Items which belong to a sales quote the current user is either assigned to, sales assistent for or account manager for. |
WithoutAgreement() Named filter | Sales quotes items without agreement |
AccountManager Integer | Reference to the employee who is responsible for the management of sales, and relationship with the customer. Available macros: currentUser() |
AgreementExpirationDate Date | The agreement will have an expiration date. Note that this date might be different from the validity expiration date of the sales quote.. Available macros: today(), yesterday(), currentMonth(), currentYear(), startOfMonth(), endOfMonth(), startOfYear(), endOfYear(), startOfWeek(), endOfWeek(), previousYear(), previousMonth() |
Assignee Integer | The user who has been assigned to work with this object. Available macros: currentUser() |
BufferStockQuantity Decimal | The buffer stock quantity is a supply of units held as a reserve to safeguard against unforeseen shortages or demands for the customer. The quantity will be added to the assignment register. |
ContainingNotificationTypeId Integer | Notification type identifier. |
ConvertedGrossAmount Decimal | Total gross amount in company currency. |
ConvertedGrossPrice Decimal | Represents the price per unit before any discounting is applied. |
ConvertedNetAmount Decimal | Total net amount in company currency. |
ConvertedNetPrice Decimal | Final price per unit after deducting all discounts. |
ConvertedRemainingAmount Decimal | Total remaining amount in company currency. |
CreatedAt Datetime | Date and time of creation. Available macros: now(), startOfDay(), endOfDay(), currentDate(), currentMonth(), currentYear(), startOfMonth(), endOfMonth(), startOfYear(), endOfYear(), startOfWeek(), endOfWeek(), previousYear(), previousMonth() |
CustomerFirstname String | Secondary name of a company or firstname of a person. |
CustomerId Integer | Customer identifier. |
CustomerName String | Name of customer (name of company or surname/familyname/lastname of a person). |
CustomersProductName String | Customers internal name of the product. Retrieved from the product. |
CustomersReferenceNumber String | Customers item reference number. Typically to the customers internal system. |
Discount Decimal | The discount for the item. |
DiscountAmount Decimal | The items discount amount. |
DiscountPercent Decimal | The discount in percent for this item. |
EffectiveDate Date | The date the sales quote takes effect. The quote will be effective from from and including this date. Available macros: today(), yesterday(), currentMonth(), currentYear(), startOfMonth(), endOfMonth(), startOfYear(), endOfYear(), startOfWeek(), endOfWeek(), previousYear(), previousMonth() |
EndCustomerFirstName String | Secondary name of a company or firstname of a person. |
EndCustomerId Integer | Customer identifier. |
EndCustomerName String | Name of customer (name of company or surname/familyname/lastname of a person). |
ExpirationDate Date | The date the sales quote expires. The quote will be active to and including this date. Available macros: today(), yesterday(), currentMonth(), currentYear(), startOfMonth(), endOfMonth(), startOfYear(), endOfYear(), startOfWeek(), endOfWeek(), previousYear(), previousMonth() |
GrossAmount Decimal | Represents the item amount before any discounts etc. is applied. |
GrossMargin Decimal | Gross margin of the item. |
GrossPrice Decimal | Represents the price per unit before any discounting is applied. |
LeadTime String | The lead time from ordering to delivery. |
LineNumber Integer | Line- or sequence number of the item. The LineNumber is used for sorting items in applications, prints, reports etc. |
LocationShortName String | Unique abbreviation/short name of the location. |
ManufacturerId Integer | Manufacturer identifier. |
MarketSegment String | Market segment of the customer. |
NetAmount Decimal | Final item amount after deducting all discounts etc. |
PriceChangeAgreement Integer | Defines if and how the recurring price can be updated. |
ProductDescription String | Description of the item. If not specified, the description is by default copied from the product. |
ProductId Integer | Product identifier. |
ProductName String | Name of the product. |
ProductStructureId Integer | Product structure reference. |
Quantity Decimal | Number of units quoted. |
RecurringPriceId Integer | Recurring price indentifier. |
RemainingAmount Decimal | Total remaining value of item in document currency. The sum of remaining quantity and open forwarded quantity, multiplied with netprice. |
RemainingQuantity Decimal | Remaining number of units to be forwarded. |
RequestedDeliveryDate Date | The delivery date as requested by the customer. Available macros: today(), yesterday(), currentMonth(), currentYear(), startOfMonth(), endOfMonth(), startOfYear(), endOfYear(), startOfWeek(), endOfWeek(), previousYear(), previousMonth() |
RequestedProductStructureRevision String | The revision will typically be a major change, as opposed to minor changes stored in the version of the product structure. |
SalesAssistant Integer | Reference to the employee who is sales assistant for the customer. Available macros: currentUser() |
SalesQuoteId Integer | Sales quote identifier. |
SalesQuoteItemId Integer | Sales quote item identifier. |
SellerEmployeeId Integer | Reference to the seller of the item. Available macros: currentUser() |
Status Integer | Status of the sales quote item. |
Type Integer | Item type. |
Read more about filters and sorting on how to use sortable parameters
AccountManager Integer | Reference to the employee who is responsible for the management of sales, and relationship with the customer. |
AgreementExpirationDate Date | The agreement will have an expiration date. Note that this date might be different from the validity expiration date of the sales quote. |
Assignee Integer | The user who has been assigned to work with this object. |
BufferStockQuantity Decimal | The buffer stock quantity is a supply of units held as a reserve to safeguard against unforeseen shortages or demands for the customer. The quantity will be added to the assignment register. |
ContainingNotificationTypeId Integer | Notification type identifier |
ConvertedGrossAmount Decimal | Total gross amount in company currency. |
ConvertedGrossPrice Decimal | Represents the price per unit before any discounting is applied. |
ConvertedNetAmount Decimal | Total net amount in company currency. |
ConvertedNetPrice Decimal | Final price per unit after deducting all discounts. |
ConvertedRemainingAmount Decimal | Total remaining amount in company currency. |
CreatedAt Datetime | Date and time of creation |
CustomerFirstname String | Secondary name of a company or firstname of a person |
CustomerId Integer | Customer identifier |
CustomerName String | Name of customer (name of company or surname/familyname/lastname of a person) |
CustomersProductName String | Customers internal name of the product. Retrieved from the product. |
CustomersReferenceNumber String | Customers item reference number. Typically to the customers internal system. |
Discount Decimal | The discount for the item. |
DiscountAmount Decimal | The items discount amount. |
DiscountPercent Decimal | The discount in percent for this item. |
EffectiveDate Date | The date the sales quote takes effect. The quote will be effective from from and including this date. |
EndCustomerFirstName String | Secondary name of a company or firstname of a person |
EndCustomerId Integer | Customer identifier |
EndCustomerName String | Name of customer (name of company or surname/familyname/lastname of a person) |
ExpirationDate Date | The date the sales quote expires. The quote will be active to and including this date. |
GrossAmount Decimal | Represents the item amount before any discounts etc. is applied. |
GrossMargin Decimal | Gross margin of the item. |
GrossPrice Decimal | Represents the price per unit before any discounting is applied. |
LeadTime String | The lead time from ordering to delivery. |
LineNumber Integer | Line- or sequence number of the item. The LineNumber is used for sorting items in applications, prints, reports etc. |
LocationShortName String | Unique abbreviation/short name of the location |
ManufacturerId Integer | Manufacturer identifier |
MarketSegment String | Market segment of the customer |
NetAmount Decimal | Final item amount after deducting all discounts etc. |
PriceChangeAgreement Integer | Defines if and how the recurring price can be updated |
ProductDescription String | Description of the item. If not specified, the description is by default copied from the product. |
ProductId Integer | Product identifier |
ProductName String | Name of the product |
ProductStructureId Integer | Product structure reference |
Quantity Decimal | Number of units quoted |
RecurringPriceId Integer | Recurring price indentifier |
RemainingAmount Decimal | Total remaining value of item in document currency. The sum of remaining quantity and open forwarded quantity, multiplied with netprice |
RemainingQuantity Decimal | Remaining number of units to be forwarded. |
RequestedDeliveryDate Date | The delivery date as requested by the customer. |
RequestedProductStructureRevision String | The revision will typically be a major change, as opposed to minor changes stored in the version of the product structure. |
SalesAssistant Integer | Reference to the employee who is sales assistant for the customer. |
SalesQuoteId Integer | Sales quote identifier |
SalesQuoteItemId Integer | Sales quote item identifier |
SellerEmployeeId Integer | Reference to the seller of the item |
Status Integer | Status of the sales quote item |
Type Integer | Item type |
Requesting this resource will yield the following response. Mouse over fieldnames (or fieldgroups) for descriptions and other useful information about the fields. Fields colored in grey is expandable fields.
Please note that some fields may be removed from the response, based on user roles/duties/permissions.
SalesQuoteItemId
Sales quote item identifier
>{Integer}</SalesQuoteItemId>LineNumber
Line- or sequence number of the item. The LineNumber is used for sorting items in applications, prints, reports etc.
>{Integer}</LineNumber>Status
Status of the sales quote item
Possible domain values can be found here
>{Integer}</Status>CreatedAt
Date and time of creation
>{Datetime}</CreatedAt>RequestedDeliveryDate
The delivery date as requested by the customer.
>{Date}</RequestedDeliveryDate>CustomersReferenceNumber
Customers item reference number. Typically to the customers internal system.
>{String}</CustomersReferenceNumber>CustomersProductName
Customers internal name of the product. Retrieved from the product.
>{String}</CustomersProductName>RequestedProductStructureRevision
The revision will typically be a major change, as opposed to minor changes stored in the version of the product structure.
>{String}</RequestedProductStructureRevision>ProductDescription
Description of the item. If not specified, the description is by default copied from the product.
>{String}</ProductDescription>GrossMargin
Gross margin of the item.
>{Decimal}</GrossMargin>DiscountPercent
The discount in percent for this item.
>{Decimal}</DiscountPercent>Quantity
Number of units quoted
>{Decimal}</Quantity>RemainingQuantity
Remaining number of units to be forwarded.
>{Decimal}</RemainingQuantity>BufferStockQuantity
The buffer stock quantity is a supply of units held as a reserve to safeguard against unforeseen shortages or demands for the customer. The quantity will be added to the assignment register.
>{Decimal}</BufferStockQuantity>Agreement
If the quote is accepted by the customer, an agreement is made. The status of the quote item will then be set to 4.
>ExpirationDate
The agreement will have an expiration date. Note that this date might be different from the validity expiration date of the sales quote.
>{Date}</ExpirationDate>Currency
Three character code following the ISO 4217 standard
>{String}</Currency>Discount
The discount for the item.
>{Decimal}</Discount>GrossPrice
Represents the price per unit before any discounting is applied.
>{Decimal}</GrossPrice>NetPrice
Final price per unit after deducting all discounts etc.
>{Decimal}</NetPrice>Currency
Three character code following the ISO 4217 standard
>{String}</Currency>RemainingAmount
Total remaining value of item in document currency. The sum of remaining quantity and open forwarded quantity, multiplied with netprice
>{Decimal}</RemainingAmount>GrossAmount
Represents the item amount before any discounts etc. is applied.
>{Decimal}</GrossAmount>NetAmount
Final item amount after deducting all discounts etc.
>{Decimal}</NetAmount>MeasurementUnitId
Measurement unit identifier
>{Integer}</MeasurementUnitId>Unit
Measurement unit (ex. mm, km, dl, kg)
>{String}</Unit>MeasurementUnitLink
Material unit reference
>{String}</MeasurementUnitLink>ProductId
Product identifier
>{Integer}</ProductId>Name
Name of the product
>{String}</Name>ManufacturerId
Manufacturer identifier
>{Integer}</ManufacturerId>ManufacturerLink
Manufacturer reference
>{String}</ManufacturerLink>ProductLink
Product reference
>{String}</ProductLink>ProductStructureId
Product structure reference
>{Integer}</ProductStructureId>ProductStructureLink
Product structure reference
>{String}</ProductStructureLink>GrossPrice
Total cost (landed cost or true cost) of getting each unit in stock, including purchase price, duties, charges, freight etc.
>{Decimal}</GrossPrice>PurchaseExchangeRate
Exchange rate between document currency and purchase currency. Used in landed cost calculations.
>{Decimal}</PurchaseExchangeRate>SalesQuoteId
Sales quote identifier
>{Integer}</SalesQuoteId>CustomerId
Customer identifier
>{Integer}</CustomerId>Name
Name of customer (name of company or surname/familyname/lastname of a person)
>{String}</Name>Firstname
Secondary name of a company or firstname of a person
>{String}</Firstname>CustomerLink
Customer reference
>{String}</CustomerLink>SalesQuoteLink
Sales quote reference
>{String}</SalesQuoteLink>EffectiveDate
The date the sales quote takes effect. The quote will be effective from from and including this date.
>{Date}</EffectiveDate>ExpirationDate
The date the sales quote expires. The quote will be active to and including this date.
>{Date}</ExpirationDate>StartDate
Start date of subscription or rental item
>{Date}</StartDate>EstimatedEndDate
Expected end date of subscription or rental item
>{Date}</EstimatedEndDate>PriceChangeAgreement
Defines if and how the recurring price can be updated
Possible domain values can be found here
>{Integer}</PriceChangeAgreement>RecurringPriceId
Recurring price indentifier
>{Integer}</RecurringPriceId>Currency
Three character code following the ISO 4217 standard
>{String}</Currency>PriceInterval
Interval of recurring price
Possible domain values can be found here
>{Integer}</PriceInterval>HasOneTimeFee
Boolean indicating if the recurring price has a one-time fee.
>{Boolean}</HasOneTimeFee>HasUsageStep
Boolean indicating if the recurring price has any usage steps.
>{Boolean}</HasUsageStep>RecurringPriceLink
Recurring price reference
>{String}</RecurringPriceLink>Price
Value of a price step
>{Decimal}</Price>SalesQuoteItemLink
Reference to the sales order item.
>{String}</SalesQuoteItemLink>Paging
Detailed paging information for this list.
>PageSize
Number of elements in the list, as defined in $top. Default is 10.
>{Integer}</PageSize>Position
Position of the first element in the list
>{Integer}</Position>Page
Page index
>{Integer}</Page>FirstPage
Link to the first page in the list. $pageKey is set to FirstPageKey.
>{String}</FirstPage>PreviousPage
Link to the previous page in the list. $pageKey is set to PreviousPageKey.
>{String}</PreviousPage>NextPage
Link to the next page in the list. $pageKey is set to NextPageKey.
>{String}</NextPage>LastPage
Link to the last page in the list. $pageKey is set to LastPageKey.
>{String}</LastPage>Size
Total number of records in the list. Use $inlinecount=allpages in the request uri to include this
>{Integer}</Size>SalesQuoteItemId
Sales quote item identifier
": "{Integer}",Type
Item type
Possible domain values can be found here
": "{Integer}",LineNumber
Line- or sequence number of the item. The LineNumber is used for sorting items in applications, prints, reports etc.
": "{Integer}",Status
Status of the sales quote item
Possible domain values can be found here
": "{Integer}",CreatedAt
Date and time of creation
": "{Datetime}",RequestedDeliveryDate
The delivery date as requested by the customer.
": "{Date}",CustomersReferenceNumber
Customers item reference number. Typically to the customers internal system.
": "{String}",CustomersProductName
Customers internal name of the product. Retrieved from the product.
": "{String}",RequestedProductStructureRevision
The revision will typically be a major change, as opposed to minor changes stored in the version of the product structure.
": "{String}",ProductDescription
Description of the item. If not specified, the description is by default copied from the product.
": "{String}",GrossMargin
Gross margin of the item.
": "{Decimal}",DiscountPercent
The discount in percent for this item.
": "{Decimal}",Quantity
Number of units quoted
": "{Decimal}",RemainingQuantity
Remaining number of units to be forwarded.
": "{Decimal}",BufferStockQuantity
The buffer stock quantity is a supply of units held as a reserve to safeguard against unforeseen shortages or demands for the customer. The quantity will be added to the assignment register.
": "{Decimal}",Agreement
If the quote is accepted by the customer, an agreement is made. The status of the quote item will then be set to 4.
": {ExpirationDate
The agreement will have an expiration date. Note that this date might be different from the validity expiration date of the sales quote.
": "{Date}"Currency
Three character code following the ISO 4217 standard
": "{String}",Discount
The discount for the item.
": "{Decimal}",GrossPrice
Represents the price per unit before any discounting is applied.
": "{Decimal}",NetPrice
Final price per unit after deducting all discounts etc.
": "{Decimal}"Currency
Three character code following the ISO 4217 standard
": "{String}",RemainingAmount
Total remaining value of item in document currency. The sum of remaining quantity and open forwarded quantity, multiplied with netprice
": "{Decimal}",GrossAmount
Represents the item amount before any discounts etc. is applied.
": "{Decimal}",NetAmount
Final item amount after deducting all discounts etc.
": "{Decimal}"MeasurementUnitId
Measurement unit identifier
": "{Integer}",Unit
Measurement unit (ex. mm, km, dl, kg)
": "{String}",MeasurementUnitLink
Material unit reference
": "{String}"ProductId
Product identifier
": "{Integer}",Name
Name of the product
": "{String}",Type
Type of product
Possible domain values can be found here
": "{String}",ManufacturerId
Manufacturer identifier
": "{Integer}",ManufacturerLink
Manufacturer reference
": "{String}"ProductLink
Product reference
": "{String}"ProductStructureId
Product structure reference
": "{Integer}",ProductStructureLink
Product structure reference
": "{String}"GrossPrice
Total cost (landed cost or true cost) of getting each unit in stock, including purchase price, duties, charges, freight etc.
": "{Decimal}",PurchaseExchangeRate
Exchange rate between document currency and purchase currency. Used in landed cost calculations.
": "{Decimal}"SalesQuoteId
Sales quote identifier
": "{Integer}",CustomerId
Customer identifier
": "{Integer}",Name
Name of customer (name of company or surname/familyname/lastname of a person)
": "{String}",Firstname
Secondary name of a company or firstname of a person
": "{String}",CustomerLink
Customer reference
": "{String}"SalesQuoteLink
Sales quote reference
": "{String}",EffectiveDate
The date the sales quote takes effect. The quote will be effective from from and including this date.
": "{Date}",ExpirationDate
The date the sales quote expires. The quote will be active to and including this date.
": "{Date}"StartDate
Start date of subscription or rental item
": "{Date}",EstimatedEndDate
Expected end date of subscription or rental item
": "{Date}",PriceChangeAgreement
Defines if and how the recurring price can be updated
Possible domain values can be found here
": "{Integer}",RecurringPriceId
Recurring price indentifier
": "{Integer}",Currency
Three character code following the ISO 4217 standard
": "{String}",PriceInterval
Interval of recurring price
Possible domain values can be found here
": "{Integer}",HasOneTimeFee
Boolean indicating if the recurring price has a one-time fee.
": "{Boolean}",HasUsageStep
Boolean indicating if the recurring price has any usage steps.
": "{Boolean}",RecurringPriceLink
Recurring price reference
": "{String}"Price
Value of a price step
": "{Decimal}"SalesQuoteItemLink
Reference to the sales order item.
": "{String}"Paging
Detailed paging information for this list.
": {PageSize
Number of elements in the list, as defined in $top. Default is 10.
": "{Integer}",Position
Position of the first element in the list
": "{Integer}",Page
Page index
": "{Integer}",FirstPage
Link to the first page in the list. $pageKey is set to FirstPageKey.
": "{String}",PreviousPage
Link to the previous page in the list. $pageKey is set to PreviousPageKey.
": "{String}",NextPage
Link to the next page in the list. $pageKey is set to NextPageKey.
": "{String}",LastPage
Link to the last page in the list. $pageKey is set to LastPageKey.
": "{String}",Size
Total number of records in the list. Use $inlinecount=allpages in the request uri to include this
": "{Integer}"
List of available operations/actions for this resource.
See the operations documentation for more information about API operations.
Possible error codes the response might return:
Error 100147 HTTP 404 | Notification type not found |
Error 105969 HTTP 400 | Start date is required |
Error 105970 HTTP 400 | End date is required |