Finance APIs
Customer billing by item
Report name | Customer Billing - by Item |
Report identifier | 100065 |
HTTP method | GET |
URI | https://api.rambase.net/system/reports/100065/result-set |
Supported formats | Xml, Html, Json (ex. $format=json) |
Maximum page size ($top) | 20 |
Successful HTTP status code | 200 |
API resource identifier | 5902, version 16 |
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.
$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" |
$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.
AccountingPeriod Integer | Accounting period. |
City String | City/town/village. |
CustomerId Integer | Customer identifier. |
CustomerName String | Name of customer (name of company or surname/familyname/lastname of a person). |
DepartmentId Integer | Department identifier. |
FinanceProjectId Integer | Finance project identifier. |
GrossMargin Decimal | Gross margin of the item. |
IssueDate Date | Date when the document was issued. Available macros: today(), yesterday(), currentMonth(), currentYear(), startOfMonth(), endOfMonth(), startOfYear(), endOfYear(), startOfWeek(), endOfWeek(), previousYear(), previousMonth() |
ManufacturerId Integer | Manufacturer identifier. |
ManufacturerShortName String | Shortname/code of the manufacturer. |
PostalCode String | Postalcode/Postcode/ZIP. |
ProductId Integer | Product identifier. |
ProductName String | Name of the product. |
Quantity Decimal | Quantity of sales invoice item. |
SellerId Integer | Employee identifier. Available macros: currentUser() |
Read more about filters and sorting on how to use sortable parameters
AccountingPeriod Integer | Accounting period |
City String | City/town/village |
CustomerId Integer | Customer identifier |
CustomerName String | Name of customer (name of company or surname/familyname/lastname of a person) |
DepartmentId Integer | Department identifier |
FinanceProjectId Integer | Finance project identifier |
GrossMargin Decimal | Gross margin of the item. |
IssueDate Date | Date when the document was issued. |
ManufacturerId Integer | Manufacturer identifier |
ManufacturerShortName String | Shortname/code of the manufacturer |
PostalCode String | Postalcode/Postcode/ZIP |
ProductId Integer | Product identifier |
ProductName String | Name of the product |
Quantity Decimal | Quantity of sales invoice item |
SellerId Integer | Employee identifier |
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.
Object
Object reference
>ObjectId
Identifier of the object
>{Integer}</ObjectId>ObjectType
Type of object
>{String}</ObjectType>RamBaseKey
Internal RamBase identifier of the object/item
>{String}</RamBaseKey>ObjectLink
API reference to the object
>{String}</ObjectLink>ItemId
Item-number of the object
>{Integer}</ItemId>ItemLink
API reference to the item
>{String}</ItemLink>IssueDate
Date when the document was issued.
>{Date}</IssueDate>AccountingPeriod
Accounting period reference
>AccountingPeriodId
Accounting period identifier
>{Integer}</AccountingPeriodId>Period
Accounting period
>{Integer}</Period>AccountingPeriodLink
Accounting period reference
>{String}</AccountingPeriodLink>Customer
Customer reference
>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>Quantity
Quantity of sales invoice item
>{Decimal}</Quantity>Product
Product reference
>ProductId
Product identifier
>{Integer}</ProductId>Name
Name of the product
>{String}</Name>Manufacturer
Manufacturer reference
>ManufacturerId
Manufacturer identifier
>{Integer}</ManufacturerId>ShortName
Shortname/code of the manufacturer
>{String}</ShortName>ManufacturerLink
Manufacturer reference
>{String}</ManufacturerLink>ProductLink
Product reference
>{String}</ProductLink>GrossMargin
Gross margin of the item.
>{Decimal}</GrossMargin>TotalsConverted
Totals converted to local currency
>Currency
Three character code following the ISO 4217 standard
>{String}</Currency>NetAmount
Total net amount in company currency.
>{Decimal}</NetAmount>LandedCost
Gross landed cost multiplied with quantity of the item (converted to local currencies)
>{Decimal}</LandedCost>GrossMarginAmount
Gross margin amount calculated (net amount - landed cost)
>{Decimal}</GrossMarginAmount>InvoiceAddress
Invoice address reference
>PostalCode
Postalcode/Postcode/ZIP
>{String}</PostalCode>City
City/town/village
>{String}</City>ShippingAddress
Shipping address reference
>Name
Name of receiver (Name of company or last name of a person). Note that default invoice address must have the same name as the customer.
>{String}</Name>Firstname
Firstname if the receiver is a person. Note that default invoice address must have the same firstname as the customer.
>{String}</Firstname>AddressLine1
First address line
>{String}</AddressLine1>AddressLine2
Second address line
>{String}</AddressLine2>PostalCode
Postalcode/Postcode/ZIP
>{String}</PostalCode>City
City/town/village
>{String}</City>Region
Region/province/state
>{String}</Region>Country
English name of country.
>{String}</Country>Seller
Reference to the seller of the item
>EmployeeId
Employee identifier
>{Integer}</EmployeeId>FirstName
First name of employee
>{String}</FirstName>LastName
Last name of employee
>{String}</LastName>EmployeeLink
Employee reference
>{String}</EmployeeLink>Department
Department reference. One of the system/fixed account dimensions.
>DepartmentId
Department identifier
>{Integer}</DepartmentId>Name
Name of department
>{String}</Name>DepartmentLink
Finance department reference
>{String}</DepartmentLink>FinanceProject
Finance project reference. One of the system/fixed account dimensions.
>FinanceProjectId
Finance project identifier
>{Integer}</FinanceProjectId>Name
Name of finance project
>{String}</Name>FinanceProjectLink
Finance project reference
>{String}</FinanceProjectLink>TargetApplication
Application reference when inspecting a line in a report.
>{String}</TargetApplication>Filter
Filter used when inspecting a line in a report.
>{String}</Filter>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>Object
Object reference
": {ObjectId
Identifier of the object
": "{Integer}",ObjectType
Type of object
": "{String}",RamBaseKey
Internal RamBase identifier of the object/item
": "{String}",ObjectLink
API reference to the object
": "{String}",ItemId
Item-number of the object
": "{Integer}",ItemLink
API reference to the item
": "{String}"IssueDate
Date when the document was issued.
": "{Date}",AccountingPeriod
Accounting period reference
": {AccountingPeriodId
Accounting period identifier
": "{Integer}",Period
Accounting period
": "{Integer}",AccountingPeriodLink
Accounting period reference
": "{String}"Customer
Customer reference
": {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}"Quantity
Quantity of sales invoice item
": "{Decimal}",Product
Product reference
": {ProductId
Product identifier
": "{Integer}",Name
Name of the product
": "{String}",Manufacturer
Manufacturer reference
": {ManufacturerId
Manufacturer identifier
": "{Integer}",ShortName
Shortname/code of the manufacturer
": "{String}",ManufacturerLink
Manufacturer reference
": "{String}"ProductLink
Product reference
": "{String}"GrossMargin
Gross margin of the item.
": "{Decimal}",TotalsConverted
Totals converted to local currency
": {Currency
Three character code following the ISO 4217 standard
": "{String}",NetAmount
Total net amount in company currency.
": "{Decimal}",LandedCost
Gross landed cost multiplied with quantity of the item (converted to local currencies)
": "{Decimal}",GrossMarginAmount
Gross margin amount calculated (net amount - landed cost)
": "{Decimal}"InvoiceAddress
Invoice address reference
": {PostalCode
Postalcode/Postcode/ZIP
": "{String}",City
City/town/village
": "{String}"ShippingAddress
Shipping address reference
": {Name
Name of receiver (Name of company or last name of a person). Note that default invoice address must have the same name as the customer.
": "{String}",Firstname
Firstname if the receiver is a person. Note that default invoice address must have the same firstname as the customer.
": "{String}",AddressLine1
First address line
": "{String}",AddressLine2
Second address line
": "{String}",PostalCode
Postalcode/Postcode/ZIP
": "{String}",City
City/town/village
": "{String}",Region
Region/province/state
": "{String}",Country
English name of country.
": "{String}"Seller
Reference to the seller of the item
": {EmployeeId
Employee identifier
": "{Integer}",FirstName
First name of employee
": "{String}",LastName
Last name of employee
": "{String}",EmployeeLink
Employee reference
": "{String}"Department
Department reference. One of the system/fixed account dimensions.
": {DepartmentId
Department identifier
": "{Integer}",Name
Name of department
": "{String}",DepartmentLink
Finance department reference
": "{String}"FinanceProject
Finance project reference. One of the system/fixed account dimensions.
": {FinanceProjectId
Finance project identifier
": "{Integer}",Name
Name of finance project
": "{String}",FinanceProjectLink
Finance project reference
": "{String}"TargetApplication
Application reference when inspecting a line in a report.
": "{String}",Filter
Filter used when inspecting a line in a report.
": "{String}"
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 100027 HTTP 400 | Missing mandatory parameter {0} |
Error 104921 HTTP 400 | Invalid log category |
Error 101281 HTTP 400 | Too many {0} parameters. Maximum is {1}. |
Error 100175 HTTP 400 | To date must be equal to, or later than from date. |
Error 105710 HTTP 400 | Invalid output type |