Sales APIs
Sub report to REP/108532.
This report shows key figures in local and sales currency, per category, for project orders. It can simply be run for one project order only, by setting filter for this POD id (only the sequense number, like e.g "100012")
Report name | Project order (POD) key figures per category |
Report identifier | 108563 |
HTTP method | GET |
URI | https://api.rambase.net/system/reports/108563/result-set?projectOrderId={projectOrderId} |
Supported formats | Xml, Html, Json (ex. $format=json) |
Maximum page size ($top) | 80 |
Successful HTTP status code | 200 |
API resource identifier | 5104, version 4 |
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.
projectOrderId Integer, optional |
Project order reference
Minimum: 100000 |
$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" |
$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.
AccruedHours Decimal | Sum of all logged hours that have been approved by manager (status 4). |
AccruedSaleExpenses Decimal | Total accrued revenues for expenses, in sales currency. |
AccruedSaleHours Decimal | Total accrued revenues for hours, in sales currency. |
AccruedSalematerial Decimal | Total accrued revenues for material, in sales currency. |
ConvertedAccruedCostExpenses Decimal | Accrued cost expenses/{CUR}. |
ConvertedAccruedCostHours Decimal | Accrued cost hours/{CUR}. |
ConvertedAccruedCostMaterial Decimal | Accrued cost material/{CUR}. |
ConvertedAccruedSaleExpenses Decimal | Accrued sale expenses/{CUR}. |
ConvertedAccruedSaleHours Decimal | Accrued sale hours/{CUR}. |
ConvertedAccruedSaleMaterial Decimal | Accrued sale material/{CUR}. |
ConvertedForecastCostExpenses Decimal | Forecast cost expenses/{CUR}. |
ConvertedForecastCostHours Decimal | Forecast cost hours/{CUR}. |
ConvertedForecastCostMaterial Decimal | Forecast cost material/{CUR}. |
ConvertedForecastSaleExpenses Decimal | Forecast sale expenses/{CUR}. |
ConvertedForecastSaleHours Decimal | Forecast sale hours/{CUR}. |
ConvertedForecastSaleMaterial Decimal | Forecast sale material/{CUR}. |
ConvertedInitialEstimatedCostExpenses Decimal | Initial estimated cost expenses/{CUR}. |
ConvertedInitialEstimatedCostHours Decimal | Initial estimated cost hours/{CUR}. |
ConvertedInitialEstimatedCostMaterial Decimal | Initial estimated cost material/{CUR}. |
ConvertedInitialEstimatedSaleHours Decimal | Initial estimated sale hours/{CUR}. |
ConvertedInitialEstimatedSaleMaterial Decimal | Initial estimated sale material/{CUR}. |
ConvertedInitialEstimateSaleExpenses Decimal | Initial estimated sale expenses/{CUR}. |
ConvertedInvoicedSaleExpenses Decimal | Invoiced sale expenses/{CUR}. |
ConvertedInvoicedSaleHours Decimal | Invoiced sale hours/{CUR}. |
ConvertedInvoicedSaleMaterial Decimal | Invoiced sale material/{CUR}. |
ConvertedPendingCostExpenses Decimal | Pending cost expenses/{CUR}. |
ConvertedPendingCostHours Decimal | Pending cost hours/{CUR}. |
ConvertedPendingCostMaterial Decimal | Pending cost material/{CUR}. |
ConvertedPendingSaleExpenses Decimal | Pending sale expenses/{CUR}. |
ConvertedPendingSaleHours Decimal | Pending sale hours/{CUR}. |
ConvertedPendingSaleMaterial Decimal | Pending sale material/{CUR}. |
ConvertedRemainingEstimatedCostExpenses Decimal | Remaining estimated cost expenses/{CUR}. |
ConvertedRemainingEstimatedCostHours Decimal | Remaining estimated cost hours/{CUR}. |
ConvertedRemainingEstimatedCostMaterial Decimal | Remaining estimated cost material/{CUR}. |
ConvertedRemainingEstimatedSaleExpenses Decimal | Remaining estimated sale expenses/{CUR}. |
ConvertedRemainingEstimatedSaleHours Decimal | Remaining estimated sale hours/{CUR}. |
ConvertedRemainingEstimatedSaleMaterial Decimal | Remaining estimated sale material/{CUR}. |
CustomerId Integer | Customer identifier. |
ForecastGrossMargin Decimal | Forecasted gross margin. This is calculated as ((CForecastSaleTotal - CForecastCostTotal) * 100) / CForecastSaleTotal. |
ForecastSaleExpenses Decimal | Total forecasted revenues for expenses, in sales currency. |
ForecastSaleHours Decimal | Total forecasted revenues for hours, in sales currency.. |
ForecastSaleMaterial Decimal | Total forecasted revenues for material, in sales currency.. |
InitialEstimatedGrossMargin Decimal | Initial estimated gross margin when a project order is registered. This is calculated as ((InitialEstimatedSaleTotal - InitialEstimatedCostTotal) * 100) / InitialEstimatedSaleTotal. |
InitialEstimatedSaleExpenses Decimal | Total initial estimated revenues for expenses at the time the project order is started. In sales currency. |
InitialEstimatedSaleHours Decimal | Total Intial estimated revenues for hours at the time the project order is started. In sales currency. |
InitialEstimatedSaleMaterial Decimal | Total Intial estimated revenues for material at the time the project order is started. In sales currency. |
InvoicedSaleExpenses Decimal | Total invoiced revenues for expenses. In sales currency. |
InvoicedSaleHours Decimal | Total invoiced revenues for hours. In sales currency. |
InvoicedSaleMaterial Decimal | Total invoiced revenues for material. In sales currency. |
Name String | Name of the project order. |
PendingSaleExpenses Decimal | Total pending revenues for expenses. In sales currency.|. |
PendingSaleHours Decimal | Total pending revenues for hours, in sales currency. Revenues for hours are to be understood as pending when they are logged, but not yet approved by manager (status 3). |
PendingSaleMaterial Decimal | Total pending revenues for material, in sales currency. Revenues for material are to be understood as pending when the internal sales order for "Material to project order" has been created, but material is not confirmed as consumed yet. |
ProjectOrderId Integer | Project order identifier. |
RegistrationDate Date | Date of registration. Available macros: today(), yesterday(), currentMonth(), currentYear(), startOfMonth(), endOfMonth(), startOfYear(), endOfYear(), startOfWeek(), endOfWeek(), previousYear(), previousMonth() |
RemainingEstimatedSaleExpenses Decimal | Total remaining estimated revenues for expenses. In sales currency. |
RemainingEstimatedSaleHours Decimal | Total remaining estimated revenues for hours, in sales currency. |
RemainingEstimatedSaleMaterial Decimal | Total remaining estimated revenues for material, in sales currency. |
SalesCurrency String | Sales currency for project order. |
Status String | Status of project order. |
Read more about filters and sorting on how to use sortable parameters
AccruedHours Decimal | Sum of all logged hours that have been approved by manager (status 4) |
AccruedSaleExpenses Decimal | Total accrued revenues for expenses, in sales currency. |
AccruedSaleHours Decimal | Total accrued revenues for hours, in sales currency. |
AccruedSalematerial Decimal | Total accrued revenues for material, in sales currency. |
ConvertedAccruedCostExpenses Decimal | Accrued cost expenses/{CUR} |
ConvertedAccruedCostHours Decimal | Accrued cost hours/{CUR} |
ConvertedAccruedCostMaterial Decimal | Accrued cost material/{CUR} |
ConvertedAccruedSaleExpenses Decimal | Accrued sale expenses/{CUR} |
ConvertedAccruedSaleHours Decimal | Accrued sale hours/{CUR} |
ConvertedAccruedSaleMaterial Decimal | Accrued sale material/{CUR} |
ConvertedForecastCostExpenses Decimal | Forecast cost expenses/{CUR} |
ConvertedForecastCostHours Decimal | Forecast cost hours/{CUR} |
ConvertedForecastCostMaterial Decimal | Forecast cost material/{CUR} |
ConvertedForecastSaleExpenses Decimal | Forecast sale expenses/{CUR} |
ConvertedForecastSaleHours Decimal | Forecast sale hours/{CUR} |
ConvertedForecastSaleMaterial Decimal | Forecast sale material/{CUR} |
ConvertedInitialEstimatedCostExpenses Decimal | Initial estimated cost expenses/{CUR} |
ConvertedInitialEstimatedCostHours Decimal | Initial estimated cost hours/{CUR} |
ConvertedInitialEstimatedCostMaterial Decimal | Initial estimated cost material/{CUR} |
ConvertedInitialEstimatedSaleHours Decimal | Initial estimated sale hours/{CUR} |
ConvertedInitialEstimatedSaleMaterial Decimal | Initial estimated sale material/{CUR} |
ConvertedInitialEstimateSaleExpenses Decimal | Initial estimated sale expenses/{CUR} |
ConvertedInvoicedSaleExpenses Decimal | Invoiced sale expenses/{CUR} |
ConvertedInvoicedSaleHours Decimal | Invoiced sale hours/{CUR} |
ConvertedInvoicedSaleMaterial Decimal | Invoiced sale material/{CUR} |
ConvertedPendingCostExpenses Decimal | Pending cost expenses/{CUR} |
ConvertedPendingCostHours Decimal | Pending cost hours/{CUR} |
ConvertedPendingCostMaterial Decimal | Pending cost material/{CUR} |
ConvertedPendingSaleExpenses Decimal | Pending sale expenses/{CUR} |
ConvertedPendingSaleHours Decimal | Pending sale hours/{CUR} |
ConvertedPendingSaleMaterial Decimal | Pending sale material/{CUR} |
ConvertedRemainingEstimatedCostExpenses Decimal | Remaining estimated cost expenses/{CUR} |
ConvertedRemainingEstimatedCostHours Decimal | Remaining estimated cost hours/{CUR} |
ConvertedRemainingEstimatedCostMaterial Decimal | Remaining estimated cost material/{CUR} |
ConvertedRemainingEstimatedSaleExpenses Decimal | Remaining estimated sale expenses/{CUR} |
ConvertedRemainingEstimatedSaleHours Decimal | Remaining estimated sale hours/{CUR} |
ConvertedRemainingEstimatedSaleMaterial Decimal | Remaining estimated sale material/{CUR} |
CustomerId Integer | Customer identifier |
ForecastGrossMargin Decimal | Forecasted gross margin. This is calculated as ((CForecastSaleTotal - CForecastCostTotal) * 100) / CForecastSaleTotal |
ForecastSaleExpenses Decimal | Total forecasted revenues for expenses, in sales currency. |
ForecastSaleHours Decimal | Total forecasted revenues for hours, in sales currency. |
ForecastSaleMaterial Decimal | Total forecasted revenues for material, in sales currency. |
InitialEstimatedGrossMargin Decimal | Initial estimated gross margin when a project order is registered. This is calculated as ((InitialEstimatedSaleTotal - InitialEstimatedCostTotal) * 100) / InitialEstimatedSaleTotal |
InitialEstimatedSaleExpenses Decimal | Total initial estimated revenues for expenses at the time the project order is started. In sales currency. |
InitialEstimatedSaleHours Decimal | Total Intial estimated revenues for hours at the time the project order is started. In sales currency. |
InitialEstimatedSaleMaterial Decimal | Total Intial estimated revenues for material at the time the project order is started. In sales currency. |
InvoicedSaleExpenses Decimal | Total invoiced revenues for expenses. In sales currency |
InvoicedSaleHours Decimal | Total invoiced revenues for hours. In sales currency. |
InvoicedSaleMaterial Decimal | Total invoiced revenues for material. In sales currency. |
Name String | Name of the project order |
PendingSaleExpenses Decimal | Total pending revenues for expenses. In sales currency.| |
PendingSaleHours Decimal | Total pending revenues for hours, in sales currency. Revenues for hours are to be understood as pending when they are logged, but not yet approved by manager (status 3) |
PendingSaleMaterial Decimal | Total pending revenues for material, in sales currency. Revenues for material are to be understood as pending when the internal sales order for "Material to project order" has been created, but material is not confirmed as consumed yet. |
ProjectOrderId Integer | Project order identifier |
RegistrationDate Date | Date of registration |
RemainingEstimatedSaleExpenses Decimal | Total remaining estimated revenues for expenses. In sales currency. |
RemainingEstimatedSaleHours Decimal | Total remaining estimated revenues for hours, in sales currency |
RemainingEstimatedSaleMaterial Decimal | Total remaining estimated revenues for material, in sales currency. |
SalesCurrency String | Sales currency for project order |
Status String | Status of project order |
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.
ProjectOrder
Project order reference
ProjectOrderId
Project order identifier
>{Integer}</ProjectOrderId>ProjectOrderLink
Project order reference
>{String}</ProjectOrderLink>Name
Name of the project order
>{String}</Name>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>RegistrationDate
Date of registration
>{Date}</RegistrationDate>InitialEstimatedGM
Initial estimated gross margin when a project order is registered. This is calculated as ((InitialEstimatedSaleTotal - InitialEstimatedCostTotal) * 100) / InitialEstimatedSaleTotal
>{Decimal}</InitialEstimatedGM>ForecastGM
Forecasted gross margin. This is calculated as ((CForecastSaleTotal - CForecastCostTotal) * 100) / CForecastSaleTotal
>{Decimal}</ForecastGM>AccruedHours
Sum of all logged hours that have been approved by manager (status 4)
>{Decimal}</AccruedHours>SalesCurrency
Sales currency for project order
>{String}</SalesCurrency>ConvertedInitialEstimatedCostExpenses
Initial estimated cost expenses/{CUR}
>{Decimal}</ConvertedInitialEstimatedCostExpenses>ConvertedInitialEstimateSaleExpenses
Initial estimated sale expenses/{CUR}
>{Decimal}</ConvertedInitialEstimateSaleExpenses>ConvertedInitialEstimatedCostHours
Initial estimated cost hours/{CUR}
>{Decimal}</ConvertedInitialEstimatedCostHours>ConvertedInitialEstimatedSaleHours
Initial estimated sale hours/{CUR}
>{Decimal}</ConvertedInitialEstimatedSaleHours>ConvertedInitialEstimatedCostMaterial
Initial estimated cost material/{CUR}
>{Decimal}</ConvertedInitialEstimatedCostMaterial>ConvertedInitialEstimatedSaleMaterial
Initial estimated sale material/{CUR}
>{Decimal}</ConvertedInitialEstimatedSaleMaterial>ConvertedRemainingEstimatedCostExpenses
Remaining estimated cost expenses/{CUR}
>{Decimal}</ConvertedRemainingEstimatedCostExpenses>ConvertedRemainingEstimatedCostHours
Remaining estimated cost hours/{CUR}
>{Decimal}</ConvertedRemainingEstimatedCostHours>ConvertedRemainingEstimatedCostMaterial
Remaining estimated cost material/{CUR}
>{Decimal}</ConvertedRemainingEstimatedCostMaterial>ConvertedPendingCostExpenses
Pending cost expenses/{CUR}
>{Decimal}</ConvertedPendingCostExpenses>ConvertedPendingCostHours
Pending cost hours/{CUR}
>{Decimal}</ConvertedPendingCostHours>ConvertedPendingCostMaterial
Pending cost material/{CUR}
>{Decimal}</ConvertedPendingCostMaterial>ConvertedAccruedCostExpenses
Accrued cost expenses/{CUR}
>{Decimal}</ConvertedAccruedCostExpenses>ConvertedAccruedCostHours
Accrued cost hours/{CUR}
>{Decimal}</ConvertedAccruedCostHours>ConvertedAccruedCostMaterial
Accrued cost material/{CUR}
>{Decimal}</ConvertedAccruedCostMaterial>ConvertedForecastCostExpenses
Forecast cost expenses/{CUR}
>{Decimal}</ConvertedForecastCostExpenses>ForecastSaleExpenses
Total forecasted revenues for expenses, in sales currency.
>{Decimal}</ForecastSaleExpenses>ConvertedForecastCostHours
Forecast cost hours/{CUR}
>{Decimal}</ConvertedForecastCostHours>ForecastSaleHours
Total forecasted revenues for hours, in sales currency.
>{Decimal}</ForecastSaleHours>ConvertedForecastCostMaterial
Forecast cost material/{CUR}
>{Decimal}</ConvertedForecastCostMaterial>ForecastSaleMaterial
Total forecasted revenues for material, in sales currency.
>{Decimal}</ForecastSaleMaterial>InvoicedSaleExpenses
Total invoiced revenues for expenses. In sales currency
>{Decimal}</InvoicedSaleExpenses>InvoicedSaleHours
Total invoiced revenues for hours. In sales currency.
>{Decimal}</InvoicedSaleHours>InvoicedSaleMaterial
Total invoiced revenues for material. In sales currency.
>{Decimal}</InvoicedSaleMaterial>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>Status
Status of project order
Possible domain values can be found here
": "{String}",ProjectOrder
Project order reference
ProjectOrderId
Project order identifier
": "{Integer}",ProjectOrderLink
Project order reference
": "{String}"Name
Name of the project order
": "{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}"RegistrationDate
Date of registration
": "{Date}",InitialEstimatedGM
Initial estimated gross margin when a project order is registered. This is calculated as ((InitialEstimatedSaleTotal - InitialEstimatedCostTotal) * 100) / InitialEstimatedSaleTotal
": "{Decimal}",ForecastGM
Forecasted gross margin. This is calculated as ((CForecastSaleTotal - CForecastCostTotal) * 100) / CForecastSaleTotal
": "{Decimal}",AccruedHours
Sum of all logged hours that have been approved by manager (status 4)
": "{Decimal}",SalesCurrency
Sales currency for project order
": "{String}",ConvertedInitialEstimatedCostExpenses
Initial estimated cost expenses/{CUR}
": "{Decimal}",ConvertedInitialEstimateSaleExpenses
Initial estimated sale expenses/{CUR}
": "{Decimal}",ConvertedInitialEstimatedCostHours
Initial estimated cost hours/{CUR}
": "{Decimal}",ConvertedInitialEstimatedSaleHours
Initial estimated sale hours/{CUR}
": "{Decimal}",ConvertedInitialEstimatedCostMaterial
Initial estimated cost material/{CUR}
": "{Decimal}",ConvertedInitialEstimatedSaleMaterial
Initial estimated sale material/{CUR}
": "{Decimal}",ConvertedRemainingEstimatedCostExpenses
Remaining estimated cost expenses/{CUR}
": "{Decimal}",ConvertedRemainingEstimatedCostHours
Remaining estimated cost hours/{CUR}
": "{Decimal}",ConvertedRemainingEstimatedCostMaterial
Remaining estimated cost material/{CUR}
": "{Decimal}",ConvertedPendingCostExpenses
Pending cost expenses/{CUR}
": "{Decimal}",ConvertedPendingCostHours
Pending cost hours/{CUR}
": "{Decimal}",ConvertedPendingCostMaterial
Pending cost material/{CUR}
": "{Decimal}",ConvertedAccruedCostExpenses
Accrued cost expenses/{CUR}
": "{Decimal}",ConvertedAccruedCostHours
Accrued cost hours/{CUR}
": "{Decimal}",ConvertedAccruedCostMaterial
Accrued cost material/{CUR}
": "{Decimal}",ConvertedForecastCostExpenses
Forecast cost expenses/{CUR}
": "{Decimal}",ForecastSaleExpenses
Total forecasted revenues for expenses, in sales currency.
": "{Decimal}",ConvertedForecastCostHours
Forecast cost hours/{CUR}
": "{Decimal}",ForecastSaleHours
Total forecasted revenues for hours, in sales currency.
": "{Decimal}",ConvertedForecastCostMaterial
Forecast cost material/{CUR}
": "{Decimal}",ForecastSaleMaterial
Total forecasted revenues for material, in sales currency.
": "{Decimal}",InvoicedSaleExpenses
Total invoiced revenues for expenses. In sales currency
": "{Decimal}",InvoicedSaleHours
Total invoiced revenues for hours. In sales currency.
": "{Decimal}",InvoicedSaleMaterial
Total invoiced revenues for material. In sales currency.
": "{Decimal}",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 104920 HTTP 400 | Log text is required |
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 |