TAG LINE
SMALL TITLE

Invoice / Item

(API Version v2)


This is the billing transaction that is associated with an Invoice.


What can you do with InvoiceItem?


Properties

Property Details
identity
READ-ONLY
"identity": 0
Type: Number
This is the unique numeric identifier for the InvoiceItem
accountId
"accountId": 7
Type: Number
Unique identifier for the associated Account object.
accountName
"accountName": "Sample Name"
Type: String
The name of the object associated with the accountId property.
packageId
"packageId": 5
Type: Number
Unique identifier for the associated Package object.
packageName
"packageName": "Sample Name"
Type: String
The name of the object associated with the packageId property.
serviceId
"serviceId": 6
Type: Number
Unique identifier for the associated Service object.
serviceName
"serviceName": "Sample Name"
Type: String
The name of the object associated with the serviceId property.
amount
"amount": 22
Type: Number
The total amount of the transaction charge.
detail
"detail": "Hello World"
Type: String
User defined or system generated description for the transaction.
periodStart
"periodStart": "2021-04-26T15:25:27.587Z"
Type: Date
The start date in which this transaction was generated.

Date and time values are specified in the ISO 8601 format.
periodEnd
"periodEnd": "2021-04-26T15:25:27.587Z"
Type: Date
The end date in which this transaction was generated.

Date and time values are specified in the ISO 8601 format.
prorated
"prorated": true
Type: Boolean
Whether or not this charge has been prorated
date
"date": "2021-04-26T15:25:27.587Z"
Type: Date
The date of the charge.

Date and time values are specified in the ISO 8601 format.
accountPackageId
"accountPackageId": "Hello World"
Type: String
Unique identifier for the associated AccountPackage object.
accountPackageName
"accountPackageName": "Sample Name"
Type: String
The name of the object associated with the accountPackageId property.
accountServiceId
"accountServiceId": "Hello World"
Type: String
Unique identifier for the associated AccountService object.
accountServiceName
"accountServiceName": "Sample Name"
Type: String
The name of the object associated with the accountServiceId property.
posting
"posting": "2021-04-26T15:25:27.587Z"
Type: Date
The date for when this charge should be considered posted.

Date and time values are specified in the ISO 8601 format.
invoiceId
"invoiceId": 10
Type: Number
Unique identifier for the associated Invoice object.
invoiceName
"invoiceName": "Sample Name"
Type: String
The name of the object associated with the invoiceId property.
invoiceItemTypeId
"invoiceItemTypeId": 13
Type: Number
Unique identifier for the associated InvoiceItemType object.
invoiceItemTypeName
"invoiceItemTypeName": "Sample Name"
Type: String
The name of the object associated with the invoiceItemTypeId property.
isTaxExempt
"isTaxExempt": true
Type: Boolean
Whether or not this charge is tax exempt.
baseAmount
"baseAmount": 18
Type: Number
The total amount of the transaction charge in the Base/Owner currency.
invoiceAmount
"invoiceAmount": 18
Type: Number
The total amount of the transaction charge rounded to the currency precision.
invoiceCurrencyExchangeDetailId
"invoiceCurrencyExchangeDetailId": 15
Type: Number
Unique identifier for the associated CurrencyExchangeDetail object.
invoiceCurrencyExchangeDetailName
"invoiceCurrencyExchangeDetailName": "Sample Name"
Type: String
The name of the object associated with the invoiceCurrencyExchangeDetailId property.
originalInvoiceItemId
"originalInvoiceItemId": 9
Type: Number
A reference to the original transaction that was part of a previous voided invoice.

Unique identifier for the associated InvoiceItem object.
originalInvoiceItemName
"originalInvoiceItemName": "Sample Name"
Type: String
The name of the object associated with the originalInvoiceItemId property.
isManual
"isManual": true
Type: Boolean
Whether or not this charge was a user manually added charge.
createdByUserId
"createdByUserId": 25
Type: Number
Unique identifier for the associated User object.
createdByUserName
"createdByUserName": "Sample Name"
Type: String
The name of the object associated with the createdByUserId property.
udrUsageIdentifier
"udrUsageIdentifier": "Hello World"
Type: String
The unique usage identifier assigned to the Service that was charged.
accountServiceTemporalId
"accountServiceTemporalId": "Hello World"
Type: String
Unique identifier for the associated AccountServiceTemporal object.
accountServiceTemporalName
"accountServiceTemporalName": "Sample Name"
Type: String
The name of the object associated with the accountServiceTemporalId property.


Update Request Filters

Update Request Filters are no longer required starting with v4 of the LogiSense Billing API.

When updating an object you use the update request header with the list of properties to update. Then you need only supply the new values in the body of your request. Please note, this header can only be used with PUT or PATCH requests.

Field List:

  • identity
  • accountId
  • packageId
  • serviceId
  • amount
  • detail
  • periodStart
  • periodEnd
  • prorated
  • date
  • accountPackageId
  • accountServiceId
  • posting
  • invoiceId
  • invoiceItemTypeId
  • isTaxExempt
  • baseAmount
  • invoiceAmount
  • invoiceCurrencyExchangeDetailId
  • originalInvoiceItemId
  • isManual
  • createdByUserId
  • udrUsageIdentifier
  • accountServiceTemporalId

Patch Types

The PATCH verb allows you to update an object. Just like a put, you only need to supply the fields that will be updated in the payload. However, a patch allows you to update many objects at once.

PATCH operations can be used as a standard API call or nested within the envelope of a DataFlow. Below you will find the child objects that can be updated as part of PATCH operations for the InvoiceItem object.

Standard PATCH objects:

DataFlow PATCH objects:


End Points

DELETEapi/v2/Invoice/Item/{id}
Delete an instance of the InvoiceItem object. Upon successful delete, this API will return a record of all of the reelated objects deleted with this operation. The specifics on which objects have been deleted will depend on which related objects have been populated in the system.
{id}Unique identifier for the InvoiceItem object.
Delete an instance of the InvoiceItem object.
DELETE api/v2/Invoice/Item/{id}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "delete",
    "results": {
        "totalCount": 4,
        "items": [
            {
                "identity": 1,
                "action": "deleted",
                "dtoTypeKey": "invoiceItem"
            },
            {
                "lhsId": 2,
                "rhsId": 2,
                "action": "detached",
                "dtoTypeKey": "sampleObjectConnector"
            },
            {
                "foreignKeyIdentity": 2,
                "action": "deleted",
                "dtoTypeKey": "sampleObject"
            }
        ]
    }
}
GETapi/v2/Invoice/Item/
Retrieve all of the InvoiceItem objects.
Retrieve all of the InvoiceItem objects.
GET api/v2/Invoice/Item/
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "totalCount": 1,
    "items": [
        {
            "identity": 1,
            "accountId": 5,
            "accountName": "Sample Text Data",
            "packageId": 9,
            "packageName": "Sample Text Data",
            "serviceId": 16,
            "serviceName": "Sample Text Data",
            "amount": 19,
            "detail": "Sample Text Data",
            "periodStart": "2021-04-26T15:25:27.587Z",
            "periodEnd": "2021-04-26T15:25:27.587Z",
            "prorated": true,
            "date": "2021-04-26T15:25:27.587Z",
            "accountPackageId": "Sample Text Data",
            "accountPackageName": "Sample Text Data",
            "accountServiceId": "Sample Text Data",
            "accountServiceName": "Sample Text Data",
            "posting": "2021-04-26T15:25:27.587Z",
            "invoiceId": 22,
            "invoiceName": "Sample Text Data",
            "invoiceItemTypeId": 22,
            "invoiceItemTypeName": "Sample Text Data",
            "isTaxExempt": true,
            "baseAmount": 12,
            "invoiceAmount": 3,
            "invoiceCurrencyExchangeDetailId": 6,
            "invoiceCurrencyExchangeDetailName": "Sample Text Data",
            "originalInvoiceItemId": 3,
            "originalInvoiceItemName": "Sample Text Data",
            "isManual": true,
            "createdByUserId": 10,
            "createdByUserName": "Sample Text Data",
            "udrUsageIdentifier": "Sample Text Data",
            "accountServiceTemporalId": "Sample Text Data",
            "accountServiceTemporalName": "Sample Text Data"
        }
    ]
}
GETapi/v2/Invoice/Item/Paged
Retrieve all of the InvoiceItem objects in a paged fashion. This endpoint implements pagination for its results. Individual pages can be requested to return a particular paged set in the list of results. To learn more, see details on working with paginated endpoints.
Retrieve all of the InvoiceItem objects in a paged fashion.
GET api/v2/Invoice/Item/Paged
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "pagination": {
        "pageNumber": 1,
        "pageSize": 20,
        "excludeTotalCount": false
    },
    "pagedResults": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "accountId": 14,
                "accountName": "Sample Text Data",
                "packageId": 4,
                "packageName": "Sample Text Data",
                "serviceId": 9,
                "serviceName": "Sample Text Data",
                "amount": 27,
                "detail": "Sample Text Data",
                "periodStart": "2021-04-26T15:25:27.587Z",
                "periodEnd": "2021-04-26T15:25:27.587Z",
                "prorated": true,
                "date": "2021-04-26T15:25:27.587Z",
                "accountPackageId": "Sample Text Data",
                "accountPackageName": "Sample Text Data",
                "accountServiceId": "Sample Text Data",
                "accountServiceName": "Sample Text Data",
                "posting": "2021-04-26T15:25:27.587Z",
                "invoiceId": 12,
                "invoiceName": "Sample Text Data",
                "invoiceItemTypeId": 7,
                "invoiceItemTypeName": "Sample Text Data",
                "isTaxExempt": true,
                "baseAmount": 22,
                "invoiceAmount": 15,
                "invoiceCurrencyExchangeDetailId": 1,
                "invoiceCurrencyExchangeDetailName": "Sample Text Data",
                "originalInvoiceItemId": 19,
                "originalInvoiceItemName": "Sample Text Data",
                "isManual": true,
                "createdByUserId": 23,
                "createdByUserName": "Sample Text Data",
                "udrUsageIdentifier": "Sample Text Data",
                "accountServiceTemporalId": "Sample Text Data",
                "accountServiceTemporalName": "Sample Text Data"
            }
        ]
    }
}
GETapi/v2/Invoice/Item/Paged/Detail
Retrieve all of the InvoiceItem objects in a paged fashion with all object details. This endpoint returns additional detailed data related to this object. The specifics on which data is returned will depend on which related objects have been populated in the system.
Retrieve all of the InvoiceItem objects in a paged fashion with all object details.
GET api/v2/Invoice/Item/Paged/Detail
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "pagination": {
        "pageNumber": 1,
        "pageSize": 20,
        "excludeTotalCount": false
    },
    "pagedResults": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "accountId": 15,
                "accountName": "Sample Text Data",
                "packageId": 11,
                "packageName": "Sample Text Data",
                "serviceId": 10,
                "serviceName": "Sample Text Data",
                "amount": 25,
                "detail": "Sample Text Data",
                "periodStart": "2021-04-26T15:25:27.587Z",
                "periodEnd": "2021-04-26T15:25:27.587Z",
                "prorated": true,
                "date": "2021-04-26T15:25:27.587Z",
                "accountPackageId": "Sample Text Data",
                "accountPackageName": "Sample Text Data",
                "accountServiceId": "Sample Text Data",
                "accountServiceName": "Sample Text Data",
                "posting": "2021-04-26T15:25:27.587Z",
                "invoiceId": 25,
                "invoiceName": "Sample Text Data",
                "invoiceItemTypeId": 17,
                "invoiceItemTypeName": "Sample Text Data",
                "isTaxExempt": true,
                "baseAmount": 9,
                "invoiceAmount": 21,
                "invoiceCurrencyExchangeDetailId": 26,
                "invoiceCurrencyExchangeDetailName": "Sample Text Data",
                "originalInvoiceItemId": 11,
                "originalInvoiceItemName": "Sample Text Data",
                "isManual": true,
                "createdByUserId": 12,
                "createdByUserName": "Sample Text Data",
                "udrUsageIdentifier": "Sample Text Data",
                "accountServiceTemporalId": "Sample Text Data",
                "accountServiceTemporalName": "Sample Text Data",
                "details": {
                    "sampleSingleObject": {
                        "identity": 2,
                        "property1": "Sample Text",
                        "property2": "2021-04-26T15:25:29.117Z",
                        "property3": 2
                    },
                    "sampleMultipleObjects": {
                        "totalCount": 1,
                        "items": [
                            {
                                "identity": 2,
                                "property1": "Sample Text",
                                "property2": "2021-04-26T15:25:29.117Z",
                                "property3": 2
                            }
                        ]
                    }
                }
            }
        ]
    }
}
GETapi/v2/Invoice/Item/{id}
Retrieve an instance of the InvoiceItem object by its ID.
{id}Unique identifier for the InvoiceItem object.
Retrieve an instance of the InvoiceItem object by its ID.
GET api/v2/Invoice/Item/{id}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "accountId": 12,
        "accountName": "Sample Text Data",
        "packageId": 12,
        "packageName": "Sample Text Data",
        "serviceId": 17,
        "serviceName": "Sample Text Data",
        "amount": 0,
        "detail": "Sample Text Data",
        "periodStart": "2021-04-26T15:25:27.587Z",
        "periodEnd": "2021-04-26T15:25:27.587Z",
        "prorated": true,
        "date": "2021-04-26T15:25:27.587Z",
        "accountPackageId": "Sample Text Data",
        "accountPackageName": "Sample Text Data",
        "accountServiceId": "Sample Text Data",
        "accountServiceName": "Sample Text Data",
        "posting": "2021-04-26T15:25:27.587Z",
        "invoiceId": 24,
        "invoiceName": "Sample Text Data",
        "invoiceItemTypeId": 2,
        "invoiceItemTypeName": "Sample Text Data",
        "isTaxExempt": true,
        "baseAmount": 9,
        "invoiceAmount": 25,
        "invoiceCurrencyExchangeDetailId": 6,
        "invoiceCurrencyExchangeDetailName": "Sample Text Data",
        "originalInvoiceItemId": 26,
        "originalInvoiceItemName": "Sample Text Data",
        "isManual": true,
        "createdByUserId": 2,
        "createdByUserName": "Sample Text Data",
        "udrUsageIdentifier": "Sample Text Data",
        "accountServiceTemporalId": "Sample Text Data",
        "accountServiceTemporalName": "Sample Text Data"
    }
}
GETapi/v2/Invoice/Item/{id}/Detail
Retrieve deep detail of the InvoiceItem object by its ID. This endpoint returns additional detailed data related to this object. The specifics on which data is returned will depend on which related objects have been populated in the system.
{id}Unique identifier for the InvoiceItem object.
Retrieve deep detail of the InvoiceItem object by its ID.
GET api/v2/Invoice/Item/{id}/Detail
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "accountId": 22,
        "accountName": "Sample Text Data",
        "packageId": 8,
        "packageName": "Sample Text Data",
        "serviceId": 21,
        "serviceName": "Sample Text Data",
        "amount": 16,
        "detail": "Sample Text Data",
        "periodStart": "2021-04-26T15:25:27.587Z",
        "periodEnd": "2021-04-26T15:25:27.587Z",
        "prorated": true,
        "date": "2021-04-26T15:25:27.587Z",
        "accountPackageId": "Sample Text Data",
        "accountPackageName": "Sample Text Data",
        "accountServiceId": "Sample Text Data",
        "accountServiceName": "Sample Text Data",
        "posting": "2021-04-26T15:25:27.587Z",
        "invoiceId": 17,
        "invoiceName": "Sample Text Data",
        "invoiceItemTypeId": 10,
        "invoiceItemTypeName": "Sample Text Data",
        "isTaxExempt": true,
        "baseAmount": 26,
        "invoiceAmount": 16,
        "invoiceCurrencyExchangeDetailId": 19,
        "invoiceCurrencyExchangeDetailName": "Sample Text Data",
        "originalInvoiceItemId": 23,
        "originalInvoiceItemName": "Sample Text Data",
        "isManual": true,
        "createdByUserId": 19,
        "createdByUserName": "Sample Text Data",
        "udrUsageIdentifier": "Sample Text Data",
        "accountServiceTemporalId": "Sample Text Data",
        "accountServiceTemporalName": "Sample Text Data",
        "details": {
            "sampleSingleObject": {
                "identity": 2,
                "property1": "Sample Text",
                "property2": "2021-04-26T15:25:29.117Z",
                "property3": 2
            },
            "sampleMultipleObjects": {
                "totalCount": 1,
                "items": [
                    {
                        "identity": 2,
                        "property1": "Sample Text",
                        "property2": "2021-04-26T15:25:29.117Z",
                        "property3": 2
                    }
                ]
            }
        }
    }
}
PATCHapi/v2/Invoice/Item/{id}
Update or Add the InvoiceItem object and optionally make changes to any child objects. Patch end points allow for adding/updating multiple related entities and the results of those changes will be reported in the response JSON payload in the items array.
{id}Unique identifier for the InvoiceItem object.
Update or Add the InvoiceItem object and optionally make changes to any child objects.
PATCH api/v2/Invoice/Item/{id}

{
    "details": {},
    "invoiceItems": {
        "items": [
            {
                "patchType": "create",
                "patchClientId": 1,
                "accountId": 4,
                "packageId": 0,
                "serviceId": 13,
                "amount": 9,
                "detail": "Sample Text Data",
                "periodStart": "2021-04-26T15:25:27.587Z",
                "periodEnd": "2021-04-26T15:25:27.587Z",
                "prorated": true,
                "date": "2021-04-26T15:25:27.587Z",
                "accountPackageId": "Sample Text Data",
                "accountServiceId": "Sample Text Data",
                "posting": "2021-04-26T15:25:27.587Z",
                "invoiceId": 13,
                "invoiceItemTypeId": 24,
                "isTaxExempt": true,
                "baseAmount": 24,
                "invoiceAmount": 18,
                "invoiceCurrencyExchangeDetailId": 22,
                "originalInvoiceItemId": 10,
                "isManual": true,
                "createdByUserId": 10,
                "udrUsageIdentifier": "Sample Text Data",
                "accountServiceTemporalId": "Sample Text Data"
            }
        ]
    }
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "patch",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "action": "created",
                "dtoTypeKey": "invoiceItem",
                "instance": {
                    "identity": 1,
                    "accountId": 19,
                    "accountName": "Sample Text Data",
                    "packageId": 9,
                    "packageName": "Sample Text Data",
                    "serviceId": 1,
                    "serviceName": "Sample Text Data",
                    "amount": 5,
                    "detail": "Sample Text Data",
                    "periodStart": "2021-04-26T15:25:27.587Z",
                    "periodEnd": "2021-04-26T15:25:27.587Z",
                    "prorated": true,
                    "date": "2021-04-26T15:25:27.587Z",
                    "accountPackageId": "Sample Text Data",
                    "accountPackageName": "Sample Text Data",
                    "accountServiceId": "Sample Text Data",
                    "accountServiceName": "Sample Text Data",
                    "posting": "2021-04-26T15:25:27.587Z",
                    "invoiceId": 6,
                    "invoiceName": "Sample Text Data",
                    "invoiceItemTypeId": 5,
                    "invoiceItemTypeName": "Sample Text Data",
                    "isTaxExempt": true,
                    "baseAmount": 9,
                    "invoiceAmount": 15,
                    "invoiceCurrencyExchangeDetailId": 25,
                    "invoiceCurrencyExchangeDetailName": "Sample Text Data",
                    "originalInvoiceItemId": 25,
                    "originalInvoiceItemName": "Sample Text Data",
                    "isManual": true,
                    "createdByUserId": 24,
                    "createdByUserName": "Sample Text Data",
                    "udrUsageIdentifier": "Sample Text Data",
                    "accountServiceTemporalId": "Sample Text Data",
                    "accountServiceTemporalName": "Sample Text Data"
                }
            }
        ]
    }
}
POSTapi/v2/Invoice/Item/
Create a new instance of the InvoiceItem object.
Create a new instance of the InvoiceItem object.
POST api/v2/Invoice/Item/

{
    "accountId": 23,
    "packageId": 9,
    "serviceId": 21,
    "amount": 0,
    "detail": "Sample Text Data",
    "periodStart": "2021-04-26T15:25:27.587Z",
    "periodEnd": "2021-04-26T15:25:27.587Z",
    "prorated": true,
    "date": "2021-04-26T15:25:27.587Z",
    "accountPackageId": "Sample Text Data",
    "accountServiceId": "Sample Text Data",
    "posting": "2021-04-26T15:25:27.587Z",
    "invoiceId": 25,
    "invoiceItemTypeId": 20,
    "isTaxExempt": true,
    "baseAmount": 11,
    "invoiceAmount": 13,
    "invoiceCurrencyExchangeDetailId": 12,
    "originalInvoiceItemId": 27,
    "isManual": true,
    "createdByUserId": 0,
    "udrUsageIdentifier": "Sample Text Data",
    "accountServiceTemporalId": "Sample Text Data"
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "create",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "accountId": 8,
                "accountName": "Sample Text Data",
                "packageId": 20,
                "packageName": "Sample Text Data",
                "serviceId": 9,
                "serviceName": "Sample Text Data",
                "amount": 18,
                "detail": "Sample Text Data",
                "periodStart": "2021-04-26T15:25:27.587Z",
                "periodEnd": "2021-04-26T15:25:27.587Z",
                "prorated": true,
                "date": "2021-04-26T15:25:27.587Z",
                "accountPackageId": "Sample Text Data",
                "accountPackageName": "Sample Text Data",
                "accountServiceId": "Sample Text Data",
                "accountServiceName": "Sample Text Data",
                "posting": "2021-04-26T15:25:27.587Z",
                "invoiceId": 8,
                "invoiceName": "Sample Text Data",
                "invoiceItemTypeId": 18,
                "invoiceItemTypeName": "Sample Text Data",
                "isTaxExempt": true,
                "baseAmount": 3,
                "invoiceAmount": 5,
                "invoiceCurrencyExchangeDetailId": 15,
                "invoiceCurrencyExchangeDetailName": "Sample Text Data",
                "originalInvoiceItemId": 26,
                "originalInvoiceItemName": "Sample Text Data",
                "isManual": true,
                "createdByUserId": 5,
                "createdByUserName": "Sample Text Data",
                "udrUsageIdentifier": "Sample Text Data",
                "accountServiceTemporalId": "Sample Text Data",
                "accountServiceTemporalName": "Sample Text Data"
            }
        ]
    }
}
POSTapi/v2/Invoice/Item/Credit
Create an InvoiceItem that is a Credit. The Credit Resource has only the necessary properties to create a credit. This is typically easier to use than an InvoiceItem.
Create an InvoiceItem that is a Credit.
POST api/v2/Invoice/Item/Credit

{
  "accountId": 153,
  "accountName": "admin",
  "amount": -10, 
  "date": null,
  "posting": null,
  "serviceId": 1,
  "serviceName": "", 
  "detail": "Hotel Gelf",
  "periodStart": null,
  "periodEnd": null,
  "showOnInvoice": true,
  "showOnCreditNote": true,
  "details": {
    "creditDisbursements": {
      "items": [
        {
          "invoiceId": 18332,
          "amount": 10
        }
      ]
    }
  }
}
View Sample Response
HTTP/1.1 200 OK
{
  "trackingId": "53064b3f-a018-4dd2-96a1-793e07e4e3a6",
  "type": "create",
  "results": {
    "totalCount": 6,
    "items": [
      {
        "identity": 11,
        "action": "created",
        "dtoTypeKey": "invoiceItem",
        "instance": {
          "identity": 11,
          "accountId": 153,
          "accountName": "admin",
          "serviceId": 1,
          "serviceName": "Extreme DSL Service",
          "amount": -10,
          "detail": "Hotel Gelf",
          "periodStart": "2019-08-13T00:00:00",
          "periodEnd": "2019-08-13T00:00:00",
          "credit": true,
          "date": "2019-08-13T00:00:00",
          "posting": "2019-08-13T00:00:00",
          "bulkQuantity": 0,
          "nonRefundable": false,
          "invoiceItemTypeId": 2,
          "invoiceItemTypeName": "Credit",
          "automaticDisbursement": false,
          "isTaxExempt": false,
          "isManual": true,
          "createdByUserId": 153,
          "createdByUserName": "admin"
        }
      },
      {
        "identity": 15,
        "action": "created",
        "dtoTypeKey": "invoiceItemTax",
        "instance": {
          "identity": 15,
          "invoiceItemId": 11,
          "amount": -0.8,
          "taxRateId": 187,
          "taxRateName": "GST",
          "taxCodeId": 1,
          "taxCodeName": "Canada",
          "amountReportable": 0
        }
      },
      {
        "identity": 16,
        "action": "created",
        "dtoTypeKey": "invoiceItemTax",
        "instance": {
          "identity": 16,
          "invoiceItemId": 11,
          "amount": -0.7,
          "taxRateId": 188,
          "taxRateName": "PST",
          "taxCodeId": 1,
          "taxCodeName": "Canada",
          "amountReportable": 0
        }
      },
      {
        "identity": 4,
        "action": "created",
        "dtoTypeKey": "creditInvoiceDisbursement",
        "instance": {
          "identity": 4,
          "invoiceId": 18332,
          "invoiceName": "18332",
          "amount": 10,
          "invoiceItemId": 11,
          "baseAmount": 10,
          "invoiceAmount": 10
        }
      },
      {
        "identity": 18332,
        "action": "updated",
        "dtoTypeKey": "invoice"
      },
      {
        "identity": 4,
        "action": "created",
        "dtoTypeKey": "creditItem",
        "instance": {
          "identity": 4,
          "invoiceItemId": 11,
          "showOnInvoice": true,
          "showOnCreditNote": true
        }
      }
    ]
  }
}
PUTapi/v2/Invoice/Item/{id}
Update an existing instance of the InvoiceItem object.
Update an existing instance of the InvoiceItem object.
PUT api/v2/Invoice/Item/{id}

{
    "identity": 1,
    "accountId": 3,
    "packageId": 14,
    "serviceId": 9,
    "amount": 9,
    "detail": "Sample Text Data",
    "periodStart": "2021-04-26T15:25:27.587Z",
    "periodEnd": "2021-04-26T15:25:27.587Z",
    "prorated": true,
    "date": "2021-04-26T15:25:27.587Z",
    "accountPackageId": "Sample Text Data",
    "accountServiceId": "Sample Text Data",
    "posting": "2021-04-26T15:25:27.587Z",
    "invoiceId": 26,
    "invoiceItemTypeId": 12,
    "isTaxExempt": true,
    "baseAmount": 12,
    "invoiceAmount": 24,
    "invoiceCurrencyExchangeDetailId": 18,
    "originalInvoiceItemId": 7,
    "isManual": true,
    "createdByUserId": 3,
    "udrUsageIdentifier": "Sample Text Data",
    "accountServiceTemporalId": "Sample Text Data"
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "update",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "accountId": 13,
                "accountName": "Sample Text Data",
                "packageId": 20,
                "packageName": "Sample Text Data",
                "serviceId": 6,
                "serviceName": "Sample Text Data",
                "amount": 22,
                "detail": "Sample Text Data",
                "periodStart": "2021-04-26T15:25:27.587Z",
                "periodEnd": "2021-04-26T15:25:27.587Z",
                "prorated": true,
                "date": "2021-04-26T15:25:27.587Z",
                "accountPackageId": "Sample Text Data",
                "accountPackageName": "Sample Text Data",
                "accountServiceId": "Sample Text Data",
                "accountServiceName": "Sample Text Data",
                "posting": "2021-04-26T15:25:27.587Z",
                "invoiceId": 9,
                "invoiceName": "Sample Text Data",
                "invoiceItemTypeId": 24,
                "invoiceItemTypeName": "Sample Text Data",
                "isTaxExempt": true,
                "baseAmount": 23,
                "invoiceAmount": 11,
                "invoiceCurrencyExchangeDetailId": 0,
                "invoiceCurrencyExchangeDetailName": "Sample Text Data",
                "originalInvoiceItemId": 20,
                "originalInvoiceItemName": "Sample Text Data",
                "isManual": true,
                "createdByUserId": 3,
                "createdByUserName": "Sample Text Data",
                "udrUsageIdentifier": "Sample Text Data",
                "accountServiceTemporalId": "Sample Text Data",
                "accountServiceTemporalName": "Sample Text Data"
            }
        ]
    }
}