BillingItems
The BillingItems entity describes a billable item in Autotask that has been approved and posted. A billing item may or may not be included in an invoice and billed to the customer. In Autotask, billing items are managed in the Contracts module.
NOTE You can refer to the Online Help to find root and child access URLs of the entity you wish to query. Refer to Finding resource and child access URLs of REST API entities for more information.
Entity details
Entity Name: | BillingItems |
Entity Path: |
/atservicesrest/v1.0/BillingItems |
Can Create: | |
Can Update: | |
Can Query: | |
Can Delete: | |
Can Have UDFs: |
Fields that cannot be queried
The following fields from this entity will return an error when queried.
lineItemFullDescription
lineItemGroupDescription
Conditions and requirements
General
- If the multi-currency Installed Module is enabled, the following fields will return the relevant Customer Currency values instead of the Internal Currency values: extendedPrice, rate, taxDollars, and totalAmount.
- The following fields will return the saved Internal Currency values: internalCurrencyExtendedPrice, internalCurrencyRate, internalCurrencytaxDollars, and internalCurrencyTotalAmount.
- When Organizational Structure is enabled in Autotask, and user is associated with a Line of Business, user can see only items associated with no Line of Business or Line of Business they are assigned to.
Special field attributes
Field | Conditions and Requirements |
---|---|
lineItemFullDescription | billingItem.lineItemFullDescription contains the description for a billingItem. |
lineItemGroupDescription | When billingItems are grouped on an invoice, the lineItemGroupDescription contains the description for the grouped items. lineItemFullDescription is also available for billingItems that are grouped. |
lineItemID |
When multiple billingItems that are associated with the same internalCurrencytaxDollars share the same lineItemID, those items are grouped. It is possible for a billingItem to have a unique lineItemID and still be "grouped" in a group of one item.To confirm the group status of a billingItem, refer to invoice.invoiceEditorTemplateID and the invoiceTemplate.groupBy value. |
ourCost |
This entity field will return no information if the user account making the query does not have sufficient privileges to view cost data in the Autotask UI. Additionally, if an update request does not have the necessary permissions, the API will ignore the call's values for the field even if they are blank or would be otherwise required. |
The type and sub-type picklist values for the BillingItem(s) endpoint differ between the Autotask SOAP and REST APIs. The following tables detail these changes.
Billing type mapping
SOAP ID & billing type name | REST ID & billing type name |
---|---|
1. Labor |
1. Labor |
1. Labor |
2. Labor Adjustment |
2. Project Cost |
3. Cost (ticket, project, contract) |
3. Ticket Cost |
3. Cost (ticket, project, contract) |
4. Expense |
4. Expense |
5. Subscription |
5. Subscription |
6. Setup Fee |
7. Recurring Contract Setup Fee |
7. Recurring Services |
6. Recurring Service/Bundle |
8. Recurring Services Adjustment |
6. Recurring Service/Bundle |
9. Recurring Service Bundle |
6. Recurring Service/Bundle |
10. Recurring Service Bundle Adjustment |
6. Recurring Service/Bundle |
11. Milestone |
8. Milestone |
12. Contract Block |
3. Cost (ticket, project, contract) |
13. Contract Retainer |
3. Cost (ticket, project, contract) |
14. Contract Cost |
3. Cost (ticket, project, contract) |
15. Contract Incident |
3. Cost (ticket, project, contract) |
Billing sub-type mapping
SOAP ID & billing sub-type name | REST ID & billing sub-type name |
---|---|
1. Labor |
1. Ticket Labor |
1. Labor |
2. Task Labor |
2. Milestone Labor |
3. Fixed Price Ticket Labor |
2. Milestone Labor |
4. Fixed Price Task Labor |
1. Labor |
5. Ticket Labor Adjustment |
1. Labor |
6. Task Labor Adjustment |
5. Ticket Cost Deductions |
7. Service Desk Ticket Cost |
6. Ticket Cost |
7. Service Desk Ticket Cost |
3. Project Cost Deductions |
8. Project Cost |
4. Project Cost |
8. Project Cost |
5. Ticket Cost Deductions |
9. Contract Cost |
7. Expense |
10. Expense |
8. Expense Deductions |
10. Expense |
9. Subscription |
11. Subscription |
10. Subscription Cost |
11. Subscription |
12. Recurring Services |
12. Recurring Services |
13. Recurring Services Adjustment |
13. Recurring Services Adjustment |
14. Recurring Service Bundle |
14. Recurring Service Bundle |
15. Recurring Service Bundle Adjustment |
15. Recurring Service Bundle Adjustment |
11. Setup Fee |
16. Setup Fee |
16. Milestones |
17. Milestone |
17. Block Purchase |
18. Block Purchase |
18. Retainer Purchase |
19. Retainer Purchase |
19. Ticket Purchase |
20. Ticket Purchase |
No SOAP Mapping |
21. Per Contact Cost |
No SOAP Mapping |
22. Per Installed Product Cost |
Field definitions
The following table describes the standard Autotask fields for this entity. Refer to the following articles for more information about working with these fields:
- The entityInformation REST API call
- Making basic query calls to the REST API
- Advanced query features of the REST API
To learn how to query picklist endpoints, refer to Understanding picklists.
Notes
- For string datatypes, the number in parentheses ( ) indicates the maximum number of characters allowed.
- LT indicates Local Term.
- If this entity has child collections, they will appear in a Child collection access URLs or an Entity URLs and relationships drop-down in the Entity details section of this article.
- You can call the /query/count/ endpoint of a resource to determine how many records a collection holds.
NOTE The BillingItem entity includes the webServiceDate field that allows the external application to flag the date and time that the object is processed. This field is provided as a convenience for applications that work specifically with the BillingItem entity via the REST API. It does not appear in the Autotask interface.
Field Name | Datatype | Read-Only | Is Required | Reference Name | Picklist |
---|---|---|---|---|---|
accountManagerWhenApprovedID | integer | Resources | |||
billingCodeID | integer | BillingCodes | |||
billingItemType |
integer |
|
|
|
|
companyID | integer | Companies | |||
configurationItemID | long | ConfigurationItems | |||
contractBlockID | integer | ContractBlocks | |||
contractChargeID | long | ContractCharges | |||
contractID | integer | Contracts | |||
contractServiceAdjustmentID |
integer |
|
|
|
|
contractServiceBundleAdjustmentID |
integer |
|
|
|
|
contractServiceBundleID |
integer |
|
|
|
|
contractServiceBundlePeriodID |
integer |
|
|
|
|
contractServiceID |
integer |
|
|
|
|
contractServicePeriodID |
integer |
|
|
|
|
description | string (2000) | ||||
expenseItemID | integer | ||||
extendedPrice | decimal | ||||
id | long | ||||
internalCurrencyExtendedPrice (Multi-currency module only) | decimal | ||||
internalCurrencyRate (Multi-currency module only) | decimal | ||||
internalCurrencytaxDollars | integer | Invoices | |||
internalCurrencytaxDollars (Multi-currency module only) | decimal | ||||
internalCurrencytotalAmount (Multi-currency module only) | decimal | ||||
invoiceID |
integer |
|
|
|
|
itemApproverID | integer | Resources | |||
itemDate | datetime | ||||
itemName | string (255) | ||||
lineItemFullDescription | string (8000) | ||||
lineItemGroupDescription | string (8000) | ||||
milestoneID | long | ContractMilestones | |||
nonBillable |
integer |
|
|
|
|
organizationalLevelAssociationID |
integer |
|
|
|
|
ourCost | decimal | ||||
postedDate | datetime | ||||
postedOnTime | datetime | ||||
projectChargeID | long | ProjectCharges | |||
projectID | integer | Projects | |||
purchaseOrderNumber | string (50) | ||||
quantity | decimal | ||||
rate | decimal | ||||
roleID | integer | Roles | |||
serviceBundleID | long | ServiceBundles | |||
serviceID | long | Services | |||
sortOrderID | long | ||||
subType | integer | ||||
taskID | integer | Tasks | |||
taxDollars | decimal | ||||
ticketChargeID | long | TicketCharges | |||
ticketID | integer | Tickets | |||
timeEntryID | integer | TimeEntries | |||
totalAmount | decimal | ||||
vendorID | long | Companies | |||
webServiceDate | datetime |