A usage record contains the quantity of a contract line item that a customer used or consumed during a specific time period. Usage records are used for contract quantity-based billing and quantity-based revenue recognition.
Returns up to 100 object references from the collection with a key, ID, and link for each contract usage. This operation is mostly for use in testing; use query to find objects that meet certain criteria and to specify properties that are returned.
OK
Bad Request
{- "ia::result": [
- {
- "key": "84",
- "id": "RT-00001",
- "href": "/objects/contracts/contract-usage/84"
}, - {
- "key": "85",
- "id": "RT-00002",
- "href": "/objects/contracts/contract-usage/85"
}
], - "ia::meta": {
- "totalCount": 2,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new contract usage
Contract usage to create
required | object The contract line associated with the usage record. | ||||
| |||||
usageDate required | string <date> The date associated with the usage. For recurring usage, the usage date is the effective date of the initial recurring usage record. Usage records must be added oldest to newest. For information on the restrictions for this field, see the Usage date description on the Add Usage page. Example: "2025-02-01" | ||||
quantity required | string The quantity of the item that was used. Example: "1" | ||||
object The contract associated with the usage record. | |||||
| |||||
object The item associated with the usage record. | |||||
| |||||
usageType | string Default: "billingVariable" Usage type.
Example: "revenue" | ||||
object | |||||
| |||||
servicePeriodStartDate | string or null <date> The beginning of the time frame during which the company's services are provided or consumed for this usage entry. Example: "2025-04-01" | ||||
servicePeriodEndDate | string or null <date> The end of the time frame during which the company's services are provided or consumed for this usage entry. Example: "2025-04-30" |
Created
Bad Request
{- "contractLine": {
- "key": "1"
}, - "usageDate": "2025-04-01",
- "quantity": "3003.99",
- "usageType": "revenue"
}
{- "ia::result": {
- "id": "6",
- "key": "6",
- "href": "/objects/contracts/contract-usage/6"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns detailed information for a specified contract usage.
key required | string System-assigned key for a contract usage. Example: 4532 |
OK
Bad Request
{- "ia::result": {
- "id": "4",
- "key": "4",
- "contractLine": {
- "id": "122",
- "key": "122",
- "lineNumber": "1",
- "href": "/objects/contracts/contract-line/122"
}, - "usageDate": "2025-01-15",
- "quantity": "10",
- "servicePeriodStartDate": null,
- "servicePeriodEndDate": null,
- "usageType": "revenue",
- "documentId": "Contract Invoice-CONIN#0110#doc",
- "revenueScheduleLine": {
- "id": "5247",
- "key": "5247",
- "postingDate": "2025-01-15",
- "amount": "25",
- "href": "/objects/contracts/revenue-schedule-line/5247"
}, - "revenueSchedule": {
- "id": "631",
- "key": "631",
- "href": "/objects/contracts/revenue-schedule/631"
}, - "revenue2Schedule": {
- "id": null,
- "key": null
}, - "audit": {
- "createdDateTime": "2024-02-08T00:10:25Z",
- "modifiedDateTime": "2024-02-08T00:10:25Z",
- "createdByUser": {
- "key": "109",
- "href": "/objects/company-config/user/109"
}, - "createdBy": "109",
- "modifiedByUser": {
- "key": "109",
- "href": "/objects/company-config/user/109"
}, - "modifiedBy": "109"
}, - "contractUsageBilling": {
- "billedDate": "2017-01-31",
- "recurringUsageDate": null
}, - "contract": {
- "key": "38",
- "id": "CON-028",
- "name": "Professional Power",
- "href": "/objects/contracts/contract/38"
}, - "item": {
- "key": "2547",
- "id": "11",
- "name": "GP",
- "href": "/objects/inventory-control/item/2547"
}, - "customer": {
- "key": "2",
- "id": "2",
- "name": "Logic Solutions",
- "href": "/objects/accounts-receivable/customer/2"
}, - "href": "/objects/contracts/contract-usage/4"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing contract usage by setting field values. Any fields not provided remain unchanged.
key required | string System-assigned key for a contract usage. Example: 4532 |
object The contract associated with the usage record. | |||||
| |||||
object The contract line associated with the usage record. | |||||
| |||||
usageDate | string <date> The date associated with the usage. For recurring usage, the usage date is the effective date of the initial recurring usage record. Usage records must be added oldest to newest. For information on the restrictions for this field, see the Usage date description on the Add Usage page. Example: "2025-02-01" | ||||
quantity | string The quantity of the item that was used. Example: "1" | ||||
object The item associated with the usage record. | |||||
| |||||
usageType | string Default: "billingVariable" Usage type.
Example: "revenue" | ||||
object | |||||
| |||||
servicePeriodStartDate | string or null <date> The beginning of the time frame during which the company's services are provided or consumed for this usage entry. Example: "2025-04-01" | ||||
servicePeriodEndDate | string or null <date> The end of the time frame during which the company's services are provided or consumed for this usage entry. Example: "2025-04-30" |
OK
Bad Request
{- "quantity": "400"
}
{- "ia::result": {
- "key": "12",
- "id": "2021-LV2",
- "href": "/objects/contracts/contract-usage/12"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Delete a contract usage. See the Intacct Help for restrictions on deleting contract usage.
key required | string System-assigned key for a contract usage. Example: 4532 |
No Content
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "A POST request requires a payload",
- "errorId": "REST-1028",
- "additionalInfo": {
- "messageId": "IA.REQUEST_REQUIRES_A_PAYLOAD",
- "placeholders": {
- "OPERATION": "POST"
}, - "propertySet": { }
}, - "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 0,
- "totalError": 1
}
}
Use the query service to find contract usages that meet certain criteria and to specify the properties that are returned.
OK
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "A POST request requires a payload",
- "errorId": "REST-1028",
- "additionalInfo": {
- "messageId": "IA.REQUEST_REQUIRES_A_PAYLOAD",
- "placeholders": {
- "OPERATION": "POST"
}, - "propertySet": { }
}, - "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 0,
- "totalError": 1
}
}