Create Quote for Home Visits Action
This action is available in API version 63.0 and later.
Special Access Rules
The Create Quote for Home Visits action is available when Home Health is enabled. This action is available to users that have access to Home Health Quote perm set.
Supported REST HTTP Methods
- URI
- /services/data/v63/actions/standard/createQuoteForHomeVisits
- Formats
- JSON, XML
- HTTP Methods
- POST
- Authentication
- Authorization: Bearertoken
Inputs
| Input | Details |
|---|---|
| quoteName |
|
| priceBookId |
|
| accountId |
|
| opportunityId |
|
| startDateTime |
|
| endDateTime |
|
| workTypeIds |
|
| visitCount |
|
| isTravelInventoryIncluded |
|
| resourceTravelDistance |
|
| pricingPreference |
|
| currencyCode |
|
| productPricingAttributeDetails |
|
Outputs
| Output | Details |
|---|---|
| quoteId |
|
| errorMessage |
|
| errorCode |
|
Example
- POST
-
This sample request is for the Create Quote for Home Visits action.
1 { 2 "inputs": [ 3 { 4 "quoteName": "Quote For Charles", 5 "priceBookId": "01sxx0000005qWXAAY", 6 "accountId": "001xx000003GaC7AAK", 7 "startDateTime": "2024-08-18T00:00:00.000Z", 8 "endDateTime": "2024-08-25T00:00:00.000Z", 9 "workTypeIds": [ 10 "08qxx0000004C92AAE" 11 ], 12 "visitCount": 2, 13 "isTravelInventoryIncluded": false, 14 "productPricingAttributeDetails": [ 15 { 16 "productId": "08qxx0000004C92AAE", 17 "unitCount": 1, 18 "pricingAttributeList": [ 19 { 20 "attributeDefinitionId": "dayBasedAttributeDefinitionId", 21 "attributeValue": "Sunday" 22 } 23 ] 24 } 25 ] 26 } 27 ] 28}This sample response is for the Create Quote for Home Visits action.
1{ 2 "actionName": "createQuoteForHomeVisits", 3 "isSuccess": true, 4 "outputValues": { 5 "quoteId": "0Q0XXXXXXXXXXXXXXX", 6 "errorMessage": null, 7 "errorCode": null 8 } 9}