Property | Type | Required? | Description |
Host | string | Yes | Base URL for SolarVista API calls. |
Features | object | Yes |
|
| _queryCustomerApptInfo
| object | Yes |
|
|
| Endpoint
| string | Yes | "/ServiceCentre/v2/{AccountId}/default/jobs/{jobId}/jobActions", // Endpoint for querying customer appointment information, with placeholders for account ID and job ID. |
|
| ResponseOverwrite
| object | Yes | The predefined Object to overwrite the appointment inform |
|
|
| ApptSearchInfo
| object | Yes |
|
|
|
|
| WorkType
| object | Yes |
|
|
|
|
|
| Name
| string | Yes | Specifies the type of work for the appointment. e.g. "AL2" |
|
|
| Days
| string
| Yes | Format or criteria for selecting appointment days. |
|
|
| Index
| integer | Yes | Index for the starting point of appointment search. |
|
|
| OfferOptions
| object | Yes |
|
|
|
|
| AllowEmpOT
| boolean | Yes | Option to allow employee overtime for appointments. e.g. true |
|
|
| ApptBookingInfo
| object | Yes | Container for appointment booking information, currently empty. |
|
|
|
|
|
|
|
|
| _createCustomerAppt
| object | Yes |
|
|
| Endpoint
| string | Yes | "https://sv-servicepowerintegration-fn-westeu-prod.azurewebsites.net/api/{AccountId}/createjob?code={AccountCode}", // Endpoint for creating a customer appointment, includes placeholders for account ID and account code. |
|
| ResponseOverwrite
| object | Yes | Similar structure to _queryCustomerApptInfo, use the preconfigured Object to overwrite the Appointment Search response. |
|
|
| ApptSearchInfo
| object | Yes |
|
|
|
|
| WorkType
| object | Yes |
|
|
|
|
|
| Name
| string | Yes | Specifies the type of work for the appointment |
|
|
|
| Days
| string | Yes | Format or criteria for selecting appointment days. |
|
|
|
| Index
| integer | Yes | Index for the starting point of appointment search. |
|
|
|
| OfferOptions
| object | Yes |
|
|
|
|
|
| AllowEmpOT
| boolean | Yes | Option to allow employee overtime for appointments. e.g. true |
|
|
| ApptBookingInfo
| object | Yes | Container for appointment booking information, currently empty. |
|
|
|
|
|
|
|
|
| _queryCustomerInfo
| object | Yes |
|
|
| Endpoint
| string | Yes | Endpoint for querying customer information, with placeholders for account ID and instance ID. e.g. "/ContactCentre/v2/{AccountId}/{InstanceId}/customers" |
| _updateCustomerApptInfo
| object | Yes |
|
|
| Endpoint
| string | Yes | "/ServiceCentre/v2/{AccountId}/{InstanceId}/jobActions/{jobActionId}" // Endpoint for updating customer appointment information, with placeholders for various IDs. |
Props
| object | Yes |
|
| AuthEndpoint
| string | Yes | "/ServiceCentre/v2/{AccountId}/default/jobs/{jobId}/jobActions", // Endpoint for querying customer appointment information, with placeholders for account ID and job ID. |
| AuthClientId
| string | Yes | "xxx-xxxx-xx-xxx-xxxx", // Client ID for OAuth2 authentication. |
| AuthClientSecret
| string | Yes | "xxxxxxxxx=", // Client secret for OAuth2 authentication. |
| AuthGrantType
| string | Yes | "client_credentials", // Type of grant used for OAuth2 authentication. |
| AuthResource
| string | Yes | "http://live.solarvista.com/live-service", // The resource URI for OAuth2 authentication. |
| AccountId
| string | Yes | "xxxxx-xxxxx-4124-a4ce-xxxxx", // Unique identifier for the account. |
| AccountCode
| string | Yes | "xxxxxxxxxxxx", // Encoded account code used in API calls. |
| InstanceId
| string | Yes | "default", // Instance ID, used to specify a particular instance in multi-instance setups. |
| customerEquipments
| string | Yes | "/ContactCentre/v2/{AccountId}/default/customers/{customerId}/equipment", // Endpoint for querying customer equipment, with placeholders for account ID and customer ID. |
| problemCodes
| string | Yes | "/ServiceCentre/v2/{AccountId}/default/jobs/{equipmentClassID}/relatedproblems" // Endpoint for querying problem codes related to a specific class of equipment. |