Sales APIs
This report shows key figures in local and sales currency for all project orders.
It is possible to get details about key figures, per category, for a single project order by
Report name | Project order (POD) key figures |
Report identifier | 108532 |
HTTP method | GET |
URI | https://api.rambase.net/system/reports/108532/result-set |
Supported formats | Xml, Html, Json (ex. $format=json) |
Maximum page size ($top) | 80 |
Successful HTTP status code | 200 |
API resource identifier | 5102, version 8 |
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" |
$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). |
AccruedSale Decimal | Total accrued revenues, in sales currency. Includes accrued revenues for both hours, material and expenses. |
ConvertedAccruedCost Decimal | Accrued cost/{CUR}. |
ConvertedAccruedSale Decimal | Accrued sale/{CUR}. |
ConvertedForecastCost Decimal | Forecast cost/{CUR}. |
ConvertedForecastSale Decimal | Forecast sale/{CUR}. |
ConvertedInitialEstimatedCost Decimal | Initial estimated cost/{CUR}. |
ConvertedInitialEstimatedSale Decimal | Initial estimated sale/{CUR}. |
ConvertedInvoicedSale Decimal | Invoiced sale/{CUR}. |
ConvertedPendingCost Decimal | Pending cost/{CUR}. |
ConvertedPendingSale Decimal | Pending sale/{CUR}. |
ConvertedRemainingEstimatedCost Decimal | Remaining estimated cost/{CUR}. |
ConvertedRemainingEstimatedSale Decimal | Remaining estimated sale/{CUR}. |
CustomerId Integer | Customer identifier. |
ForecastGrossMargin Decimal | Forecasted gross margin. This is calculated as ((CForecastSaleTotal - CForecastCostTotal) * 100) / CForecastSaleTotal. |
ForecastSale Decimal | Total forecast revenues for the project order, in sales currency. Includes forecast revenue for both hour, material and expenses for a project order with price model 'Time & material'. For price model 'Fixed price' it's equal to the sales price that is given to the customer in the belonging sales transaction. |
InitialEstimatedGrossMargin Decimal | Initial estimated gross margin when a project order is registered. This is calculated as ((InitialEstimatedSaleTotal - InitialEstimatedCostTotal) * 100) / InitialEstimatedSaleTotal. |
InitialEstimatedSale Decimal | Total initial estimated revenues at the time the project order is registered, in sales currency. Includes initial estimated revenues for both hours, material and expenses. |
InvoicedSale Decimal | Total invoiced revenues, in sales currency. Includes invoiced revenues for both hours, material and expenses. |
Name String | Name of the project order. |
PendingSale Decimal | Total pending revenues, in sales currency. Includes pending revenues for both hours, material and expenses. |
ProjectOrderId Integer | Project order identifier. |
RegistrationDate Date | Date of registration. Available macros: today(), yesterday(), currentMonth(), currentYear(), startOfMonth(), endOfMonth(), startOfYear(), endOfYear(), startOfWeek(), endOfWeek(), previousYear(), previousMonth() |
RemainingEstimatedSale Decimal | Total remaining estimated revenues, in sales currency. Includes revenues for both hours, material and expenses. |
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) |
AccruedSale Decimal | Total accrued revenues, in sales currency. Includes accrued revenues for both hours, material and expenses. |
ConvertedAccruedCost Decimal | Accrued cost/{CUR} |
ConvertedAccruedSale Decimal | Accrued sale/{CUR} |
ConvertedForecastCost Decimal | Forecast cost/{CUR} |
ConvertedForecastSale Decimal | Forecast sale/{CUR} |
ConvertedInitialEstimatedCost Decimal | Initial estimated cost/{CUR} |
ConvertedInitialEstimatedSale Decimal | Initial estimated sale/{CUR} |
ConvertedInvoicedSale Decimal | Invoiced sale/{CUR} |
ConvertedPendingCost Decimal | Pending cost/{CUR} |
ConvertedPendingSale Decimal | Pending sale/{CUR} |
ConvertedRemainingEstimatedCost Decimal | Remaining estimated cost/{CUR} |
ConvertedRemainingEstimatedSale Decimal | Remaining estimated sale/{CUR} |
CustomerId Integer | Customer identifier |
ForecastGrossMargin Decimal | Forecasted gross margin. This is calculated as ((CForecastSaleTotal - CForecastCostTotal) * 100) / CForecastSaleTotal |
ForecastSale Decimal | Total forecast revenues for the project order, in sales currency. Includes forecast revenue for both hour, material and expenses for a project order with price model 'Time & material'. For price model 'Fixed price' it's equal to the sales price that is given to the customer in the belonging sales transaction. |
InitialEstimatedGrossMargin Decimal | Initial estimated gross margin when a project order is registered. This is calculated as ((InitialEstimatedSaleTotal - InitialEstimatedCostTotal) * 100) / InitialEstimatedSaleTotal |
InitialEstimatedSale Decimal | Total initial estimated revenues at the time the project order is registered, in sales currency. Includes initial estimated revenues for both hours, material and expenses. |
InvoicedSale Decimal | Total invoiced revenues, in sales currency. Includes invoiced revenues for both hours, material and expenses. |
Name String | Name of the project order |
PendingSale Decimal | Total pending revenues, in sales currency. Includes pending revenues for both hours, material and expenses. |
ProjectOrderId Integer | Project order identifier |
RegistrationDate Date | Date of registration |
RemainingEstimatedSale Decimal | Total remaining estimated revenues, in sales currency. Includes revenues for both hours, material and expenses. |
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>ConvertedInitialEstimatedCost
Initial estimated cost/{CUR}
>{Decimal}</ConvertedInitialEstimatedCost>ConvertedInitialEstimatedSale
Initial estimated sale/{CUR}
>{Decimal}</ConvertedInitialEstimatedSale>ConvertedRemainingEstimatedCost
Remaining estimated cost/{CUR}
>{Decimal}</ConvertedRemainingEstimatedCost>ConvertedPendingCost
Pending cost/{CUR}
>{Decimal}</ConvertedPendingCost>ConvertedAccruedCost
Accrued cost/{CUR}
>{Decimal}</ConvertedAccruedCost>ConvertedForecastCost
Forecast cost/{CUR}
>{Decimal}</ConvertedForecastCost>ForecastSale
Total forecast revenues for the project order, in sales currency. Includes forecast revenue for both hour, material and expenses for a project order with price model 'Time & material'. For price model 'Fixed price' it's equal to the sales price that is given to the customer in the belonging sales transaction.
>{Decimal}</ForecastSale>InvoicedSale
Total invoiced revenues, in sales currency. Includes invoiced revenues for both hours, material and expenses.
>{Decimal}</InvoicedSale>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}",ConvertedInitialEstimatedCost
Initial estimated cost/{CUR}
": "{Decimal}",ConvertedInitialEstimatedSale
Initial estimated sale/{CUR}
": "{Decimal}",ConvertedRemainingEstimatedCost
Remaining estimated cost/{CUR}
": "{Decimal}",ConvertedPendingCost
Pending cost/{CUR}
": "{Decimal}",ConvertedAccruedCost
Accrued cost/{CUR}
": "{Decimal}",ConvertedForecastCost
Forecast cost/{CUR}
": "{Decimal}",ForecastSale
Total forecast revenues for the project order, in sales currency. Includes forecast revenue for both hour, material and expenses for a project order with price model 'Time & material'. For price model 'Fixed price' it's equal to the sales price that is given to the customer in the belonging sales transaction.
": "{Decimal}",InvoicedSale
Total invoiced revenues, in sales currency. Includes invoiced revenues for both hours, material and expenses.
": "{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 |