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
- PATCH
/job/v1/jobs/{jobId}/lines/{lineId}/manual-pricing-details/{manualPricingDetailId}
| Cost type | Available updates by cost type |
|---|---|
| coverage cost with a term pricing basis | You can:
You cannot:
|
| coverage cost with a coverable pricing basis | You can:
You cannot:
|
| coverage cost with an exposure pricing basis | You can:
You cannot:
|
| other cost | You can:
You cannot:
|
For example, you can use the following command to update coverage cost 106 for job pc:Sirpo9VXJ_UM95fzVzNp9:
PATCH job/v1/jobs/pc:Sirpo9VXJ_UM95fzVzNp9/lines/SBOLine/manual-pricing-details/106This following request updates the rate for a coverage cost item or other cost:
{
"data": {
"attributes": {
"rate": "0.05",
"ratingScale": {
"code": "1000"
}
}
}
}The following request updates the entire cost coverage:
{
"data": {
"attributes": {
"basisSource": "LineDecimalField",
"costCode": {
"id": "ipt"
},
"rate": "0.01",
"ratingScale": {
"code": "1000"
},
"separateBilling": false,
"separateCollection": false
}
}
}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.
- 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:
POST /job/v1/jobs/pc:Sirpo9VXJ_UM95fzVzNp9/lines/SBOLine/manual-pricing-details/109/sync-manual-exposure-pricing-detailsUpdate the rate on a coverage cost item 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:
PATCH /job/v1/jobs/pc:Sirpo9VXJ_UM95fzVzNp9/lines/SBOLine/manual-pricing-details/109/manual-exposure-pricing-details/3Request
{
"data": {
"attributes": {
"rate": "10.0000"
}
}
}Delete a coverage cost item or other cost items
- 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:
DELETE job/v1/jobs/pc:Sirpo9VXJ_UM95fzVzNp9/lines/SBOLine/manual-pricing-details/106