Updating manual rates for coverage cost and other cost items

You can use the Cloud API to update manual pricing for products that enable manual pricing. You can update the rates on coverages (coverage costs) and risk objects (other costs).

Update coverage cost item or other cost items

Use the following command to update a coverage cost item or other cost items:
  • PATCH /job/v1/jobs/{jobId}/lines/{lineId}/manual-pricing-details/{manualPricingDetailId}
When updating a coverage cost item or other cost item consider the following:
Cost type Available updates by cost type
coverage cost with a term pricing basis You can:
  • Change the cost type to coverage cost with a coverable pricing basis
  • Update existing fields
You cannot:
  • Change the cost type to coverage cost with an exposure pricing basis.
  • Change the cost type to an other cost
coverage cost with a coverable pricing basis You can:
  • Change the cost type to coverage cost with a term pricing basis
  • Update existing fields
You cannot:
  • Change the cost type to coverage cost with an exposure pricing basis
  • Change the cost type to an other cost
coverage cost with an exposure pricing basis You can:
  • Update the existing fields
You cannot:
  • Change the cost type to coverage cost with a coverable pricing basis or a term pricing basis
  • Change the cost type to an other cost
other cost with a coverable pricing basis You can:
  • Update the existing fields
You cannot:
  • Change the cost type to a coverage cost
coverage cost with cumulative pricing basis You can :
  • Update the existing fields
You cannot:
  • Change the cost type to coverage cost with a coverable pricing basis, a term pricing basis, or an exposure pricing basis
  • Change the cost type to an other cost
other cost with a cumulative pricing basis You can :
  • Update the existing fields
You cannot:
  • Change the cost type to a coverage cost

For example, you can use the following command to update coverage cost 106 for job pc:Sirpo9VXJ_UM95fzVzNp9:

Command
PATCH job/v1/jobs/pc:Sirpo9VXJ_UM95fzVzNp9/lines/SBOLine/manual-pricing-details/106

This following request updates the rate for a coverage cost item or other cost:

Request body - example 1
{
  "data": {
    "attributes": {
      "rate": "0.05",
      "ratingScale": {
        "code": "1000"
      }
    }
  }
}
Note: To update a rate associated with an exposure pricing basis, see Update the rate on a coverage cost item with an exposure pricing basis.

The following request updates the entire cost coverage:

Request body - example 2
{
  "data": {
    "attributes": {
      "basisSource": "LineDecimalField",
      "costCode": {
        "id": "ipt"
      },
      "rate": "0.01",
      "ratingScale": {
        "code": "1000"
      },
      "separateBilling": false,
      "separateCollection": false
    }
  }
}

The following request updates the list of manual pricing items for a coverage cost with a cumulative cost basis:

Request body - example 3
{
  "data": {
    "attributes": {
      "cumulativeCostCodeFilters": [
        {
          "costCode": {
            "id": "premium"
          }
        },
        {
          "costCode": {
            "id": "stampDuty"
          }
        }       
      ]  
    }
  }
}

Sync exposures to manual pricing details

After you create a coverage cost item with exposure pricing basis, if you add or delete an exposure from the submission, GET requests to view manual pricing details may not reflect the exposure updates.

Use the following endpoint to sync the exposure data with the manual pricing details:
  • POST /job/v1/jobs/{jobId}/lines/{lineId}/manual-pricing-details/{manualPricingDetailId}/sync-manual-exposure-pricing-details

For example, the following request syncs exposures related to coverage cost 109 for job pc:Sirpo9VXJ_UM95fzVzNp9:

Command:
POST /job/v1/jobs/pc:Sirpo9VXJ_UM95fzVzNp9/lines/SBOLine/manual-pricing-details/109/sync-manual-exposure-pricing-details

Update the rate on a coverage cost item with an exposure pricing basis

Use the following endpoint to update a manual exposure pricing rate on a coverage cost with an exposure pricing basis:
PATCH /job/v1/jobs/{jobId}/lines/{lineId}/manual-pricing-details/{manualPricingDetailId}/manual-exposure-pricing-details/{manualExposurePricingDetailId}

For example, the following request updates the rate to the exposure pricing detail 3 on the coverage cost 109 for job pc:Sirpo9VXJ_UM95fzVzNp9:

Command
PATCH /job/v1/jobs/pc:Sirpo9VXJ_UM95fzVzNp9/lines/SBOLine/manual-pricing-details/109/manual-exposure-pricing-details/3
Request
{
  "data": {
      "attributes": {
                "rate": "10.0000"
                    }
           }
}

Delete a coverage cost item or other cost items

Use the following endpoint to delete a coverage cost item or an other cost item:
  • DELETE job/v1/jobs/{jobId}/lines/{lineId}/manual-pricing-details/{manualPricingDetailId}

For example, you can use the following command to delete coverage cost 106 for job pc:Sirpo9VXJ_UM95fzVzNp9:

Command
DELETE job/v1/jobs/pc:Sirpo9VXJ_UM95fzVzNp9/lines/SBOLine/manual-pricing-details/106