You can create and submit a quote directly by sending a POST
request to the following endpoint:
https://staging.ap-southeast-2.aws.helloclaims.com/integrations/repairer/jobs/{id}/quotes
When sending a quote, you should include the Quote object in the body of the request. For a detailed breakdown of the Quote object, please click here.
POST https://staging.ap-southeast-2.aws.helloclaims.com/integrations/repairer/jobs/{id}/quotes
Authorization: "Bearer " + access_token
Content-Type: application/json
{
"status": "Submitted",
"rates": [
{
"type": "RemoveReplaceLabour",
"rate": 50
},
...
],
"items": [
{
"id": "QI-1",
"order": 1,
"type": "RemoveReplaceLabour",
"description": "Front Bar Disassembly",
"quantity": 1.0,
"price": 50,
"total": 50,
"metadata": {
"key": "value",
...
}
},
...
],
...
}
You will receive back a response with the created Quote object.
{
"status": "Submitted",
"rates": [
{
"type": "RemoveReplaceLabour",
"rate": 50
},
...
],
"items": [
{
"id": "QI-1",
"order": 1,
"type": "RemoveReplaceLabour",
"description": "Front Bar Disassembly",
"quantity": 1.0,
"price": 50,
"total": 50,
"metadata": {
"key": "value",
...
}
},
...
],
...
}
Note, once a quote has been submitted, you may no longer make any modifications to it.
Submit a draft quote
In the event the quote was created as a Draft
, you can update the status to submit the quote by sending a PUT
request to the following endpoint:
https://staging.ap-southeast-2.aws.helloclaims.com/integrations/repairer/jobs/{jobId}/quote/status/{status}
When sending the request, you should include the desired status in the request body. For now, use the following values:
Parameter | Value |
---|---|
status | Submitted |
POST https://staging.ap-southeast-2.aws.helloclaims.com/integrations/repairer/jobs/{jobId}/quotes/status/Submitted
200 Success
Authorization: "Bearer " + access_token
Content-Type: application/json
Note, once a quote has been submitted, you may no longer make any modifications to it.