# Update Invoice Detail

Update Invoice Detail

Endpoint: PUT /rest/2.0/ACTIVITY
Version: 1.0
Security: JWT

## Header parameters:

  - `sessionId` (string, required)

## Request fields (application/json; charset=utf-8):

  - `brmObjects` (object)

  - `brmObjects.Updated` (string)
    System controlled field: Date and time the record was last updated

  - `brmObjects.UpdateError` (string)
    Update Error: Mass Update Error

  - `brmObjects.MDLEventId` (integer)
    MDL Event Id

  - `brmObjects.Created` (string)
    System controlled field: Date and time the record was created

  - `brmObjects.AccountId` (integer, required)
    Account

  - `brmObjects.ProductId` (integer, required)
    Product

  - `brmObjects.Id` (string, required)
    Invoice Detail ID: BILLING_ACTIVITY_ID

  - `brmObjects.AccountProductId` (integer)
    Account Product: Customer Product

  - `brmObjects.ActivityDate` (string, required)
    Activity Date

  - `brmObjects.DiscountedBy` (integer)
    Discounted By: Applicable only for usage charges that are part of a linked overage associated to a customer's subscription. This will redirect to the invoice detail of the associated subscription charge.

  - `brmObjects.RatedAmount` (string)
    Rating Amount: RATING_AMOUNT

  - `brmObjects.CreatedUserId` (string)
    System controlled field: Id of the user that created the record

  - `brmObjects.UpdatedUserId` (string)
    System controlled field: Id of the last user that updated the record

  - `brmObjects.SubscriptionFromDate` (string)
    SubscriptionFromDate

  - `brmObjects.StandardCostUnrounded` (string)
    Standard Cost Unrounded

  - `brmObjects.RateDate` (string)
    Rate Date

  - `brmObjects.ReprocessQueueID` (integer)
    Reprocess Queue ID: Reference to last reprocess task for the entry

  - `brmObjects.Formula` (string)
    Formula

  - `brmObjects.Quantity` (string, required)
    Quantity

  - `brmObjects.ProcessStatus` (string)
    ProcessStatus

  - `brmObjects.ProcessDescription` (string)
    ProcessDescription

  - `brmObjects.InvoiceId` (integer)
    InvoiceId

  - `brmObjects.BillingIdentifierId` (string)
    BillingIdentifierId: USER_VENDOR_MAPPING_ID

  - `brmObjects.ManualChargeByUserId` (string)
    ManualChargeByUserId

  - `brmObjects.CountryCodeMapId` (string)
    CountryCodeMapId

  - `brmObjects.CollectorStageId` (string)
    CollectorStageId

  - `brmObjects.ActivityCollectorId` (string)
    ActivityCollectorId

  - `brmObjects.Feature` (string)
    Feature

  - `brmObjects.EventInvoiceCycleId` (string)
    EventInvoiceCycleId

  - `brmObjects.ContractId` (string)
    ContractId

  - `brmObjects.ContractRateId` (string)
    ContractRateId

  - `brmObjects.MinChargeFlag` (string)
    MinChargeFlag

  - `brmObjects.DestinationCountryCodeId` (integer)
    DestinationCountryCodeId

  - `brmObjects.OriginationCountryCodeId` (integer)
    OriginationCountryCodeId

  - `brmObjects.CurrencyCode` (integer)
    CurrencyCode

  - `brmObjects.PackageProductId` (string)
    PackageProductId

  - `brmObjects.ProrateFactor` (string)
    ProrateFactor

  - `brmObjects.UpperBand` (string)
    UpperBand

  - `brmObjects.AccumulatorValueId` (integer)
    AccumulatorValueId

  - `brmObjects.RatingMethodId` (integer)
    RatingMethodId

  - `brmObjects.ExchangeRateId` (integer)
    ExchangeRateId

  - `brmObjects.PricingCurrencyCode` (integer)
    PricingCurrencyCode

  - `brmObjects.SplitFromBillActId` (integer)
    SplitFromBillActId

  - `brmObjects.DiscountActivityId` (integer)
    DiscountActivityId

  - `brmObjects.AccountPackageId` (integer)
    AccountPackageId: Account Package

  - `brmObjects.BillingIdentifierAccountProductId` (integer)
    BillingIdentifierAccountProductId: Billing Identifier Account Product

  - `brmObjects.TieredGroup` (string)
    TieredGroup

  - `brmObjects.RateSource` (string)
    RateSource

  - `brmObjects.AvalaraGroupKey` (string)
    AvalaraGroupKey

  - `brmObjects.CostUnrounded` (string)
    CostUnrounded

  - `brmObjects.TaxCostUnrounded` (string)
    TaxCostUnrounded

  - `brmObjects.PricingId` (string)
    PricingId

  - `brmObjects.RateClassProductId` (string)
    RateClassProductId

  - `brmObjects.Estimated` (integer)
    Estimated

  - `brmObjects.SubscriptionToDate` (string)
    SubscriptionToDate

  - `brmObjects.RatingDate` (string)
    Rating Date

  - `brmObjects.EffectiveRated` (integer)
    Effective Rated

## Response 200 fields (application/json):

  - `retrieveResponse` (object)

  - `retrieveResponse.Updated` (string)
    System controlled field: Date and time the record was last updated

  - `retrieveResponse.UpdateError` (string)
    Update Error: Mass Update Error

  - `retrieveResponse.MDLEventId` (integer)
    MDL Event Id

  - `retrieveResponse.Created` (string)
    System controlled field: Date and time the record was created

  - `retrieveResponse.AccountId` (integer)
    Account

  - `retrieveResponse.ProductId` (integer)
    Product

  - `retrieveResponse.Id` (string)
    Invoice Detail ID: BILLING_ACTIVITY_ID

  - `retrieveResponse.AccountProductId` (integer)
    Account Product: Customer Product

  - `retrieveResponse.ActivityDate` (string)
    Activity Date

  - `retrieveResponse.DiscountedBy` (integer)
    Discounted By: Applicable only for usage charges that are part of a linked overage associated to a customer's subscription. This will redirect to the invoice detail of the associated subscription charge.

  - `retrieveResponse.RatedAmount` (string)
    Rating Amount: RATING_AMOUNT

  - `retrieveResponse.CreatedUserId` (string)
    System controlled field: Id of the user that created the record

  - `retrieveResponse.UpdatedUserId` (string)
    System controlled field: Id of the last user that updated the record

  - `retrieveResponse.SubscriptionFromDate` (string)
    SubscriptionFromDate

  - `retrieveResponse.StandardCostUnrounded` (string)
    Standard Cost Unrounded

  - `retrieveResponse.RateDate` (string)
    Rate Date

  - `retrieveResponse.ReprocessQueueID` (integer)
    Reprocess Queue ID: Reference to last reprocess task for the entry

  - `retrieveResponse.Formula` (string)
    Formula

  - `retrieveResponse.Quantity` (string)
    Quantity

  - `retrieveResponse.ProcessStatus` (string)
    ProcessStatus

  - `retrieveResponse.ProcessDescription` (string)
    ProcessDescription

  - `retrieveResponse.InvoiceId` (integer)
    InvoiceId

  - `retrieveResponse.BillingIdentifierId` (string)
    BillingIdentifierId: USER_VENDOR_MAPPING_ID

  - `retrieveResponse.ManualChargeByUserId` (string)
    ManualChargeByUserId

  - `retrieveResponse.CountryCodeMapId` (string)
    CountryCodeMapId

  - `retrieveResponse.CollectorStageId` (string)
    CollectorStageId

  - `retrieveResponse.ActivityCollectorId` (string)
    ActivityCollectorId

  - `retrieveResponse.Feature` (string)
    Feature

  - `retrieveResponse.EventInvoiceCycleId` (string)
    EventInvoiceCycleId

  - `retrieveResponse.ContractId` (string)
    ContractId

  - `retrieveResponse.ContractRateId` (string)
    ContractRateId

  - `retrieveResponse.MinChargeFlag` (string)
    MinChargeFlag

  - `retrieveResponse.DestinationCountryCodeId` (integer)
    DestinationCountryCodeId

  - `retrieveResponse.OriginationCountryCodeId` (integer)
    OriginationCountryCodeId

  - `retrieveResponse.CurrencyCode` (integer)
    CurrencyCode

  - `retrieveResponse.PackageProductId` (string)
    PackageProductId

  - `retrieveResponse.ProrateFactor` (string)
    ProrateFactor

  - `retrieveResponse.UpperBand` (string)
    UpperBand

  - `retrieveResponse.AccumulatorValueId` (integer)
    AccumulatorValueId

  - `retrieveResponse.RatingMethodId` (integer)
    RatingMethodId

  - `retrieveResponse.ExchangeRateId` (integer)
    ExchangeRateId

  - `retrieveResponse.PricingCurrencyCode` (integer)
    PricingCurrencyCode

  - `retrieveResponse.SplitFromBillActId` (integer)
    SplitFromBillActId

  - `retrieveResponse.DiscountActivityId` (integer)
    DiscountActivityId

  - `retrieveResponse.AccountPackageId` (integer)
    AccountPackageId: Account Package

  - `retrieveResponse.BillingIdentifierAccountProductId` (integer)
    BillingIdentifierAccountProductId: Billing Identifier Account Product

  - `retrieveResponse.TieredGroup` (string)
    TieredGroup

  - `retrieveResponse.RateSource` (string)
    RateSource

  - `retrieveResponse.AvalaraGroupKey` (string)
    AvalaraGroupKey

  - `retrieveResponse.CostUnrounded` (string)
    CostUnrounded

  - `retrieveResponse.TaxCostUnrounded` (string)
    TaxCostUnrounded

  - `retrieveResponse.PricingId` (string)
    PricingId

  - `retrieveResponse.RateClassProductId` (string)
    RateClassProductId

  - `retrieveResponse.Estimated` (integer)
    Estimated

  - `retrieveResponse.SubscriptionToDate` (string)
    SubscriptionToDate

  - `retrieveResponse.RatingDate` (string)
    Rating Date

  - `retrieveResponse.EffectiveRated` (integer)
    Effective Rated

## Response 400 fields (application/json):

  - `error` (string)
    Bad request

  - `message` (string)
    Bad request

## Response 401 fields (application/json):

  - `error` (string)
    Unauthorized

  - `message` (string)
    Unauthorized

## Response 404 fields (application/json):

  - `error` (string)
    Not found

  - `message` (string)
    Not found

## Response 429 fields (application/json):

  - `error` (string)
    Too many requests

  - `message` (string)
    Too many requests

## Response 500 fields (application/json):

  - `error` (string)
    Internal error

  - `message` (string)
    Internal error


