Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 9 Next »

5.0.0

The Appointment Offer object represents the appointment offerings (if any) returned from a REST Work Item Appointment Search.

Appointment Offer Object Format

JSON Format
{
	"Providers": [
		{
			"Info": {
				"Name": "",
				"Src": ""
			},
			"Offers": [
				{
					"OfferToken": "",
					"OfferText": "",
					"StartDate": "",
					"EndDate": "",
					"PromBand": "",
					"PromType": "",
					"TravelTime": "",
					"Day": ""
				},
				...
			],
			"Result": {
				"More": false
			}
		},
		...
	]	
}

Appointment Offer Object Properties

Field Mappings

Appointment Search API calls may result in an appointment search being directed to either a ServiceDispatch system, a ServiceScheduling system, or both. (See the Appointment Search API definition for details on how this is configured).

As a result, some of the appointment offer response field definitions depend on the API that they have come from.

ServiceDispatch Field Mappings

When a Appointment Search API call results in an appointment search being directed to ServiceDispatch, some of the fields that are present in the Appointment Offer Object (below) will come from ServiceDispatch.

As a result, the definition of these fields depends on the ServiceDispatch response.

Please speak with the ServicePower customer services team for the field definitions.

ServiceScheduling Field Mappings

When a Appointment Search API call results in an appointment search being directed to ServiceScheduling, some of the fields that are present in the Appointment Offer Object (below) will come back from ServiceScheduling.

As a result, the definition of these fields depends on the ServiceScheduling response.

Please see the appropriate version of the ServiceScheduling sp:ApptOfferRequest API for the field definitions.

PropertyTypeLengthDescription
ProvidersArray
Top level array containing one more more objects, containing appointment offers and associated information.


PropertyTypeDescription
InfoobjectMandatory object, containing details which describe which system and system servicer (if relevant) is supplying the appointment offers described in the parent object.


PropertyTypeDescription
Namestring

SD Field: SvcrCollection[].SvcrName

SS Field: SysConfg.Scheduler.ExtId.Id

Srcstring

One of:

  • SD: If the system supplying the appointment offers is ServiceDispatch.
  • SS: If the system supplying the appointment offers is ServiceScheduling.
  • External: If the system supplying the appointment offers is some other system.
OffersArrayMandatory array of one or more appointment offer details objects.


PropertyTypeDescription
OfferTokenstring

SD Field: OfferToken

SS Field: offerToken

OfferTextstringSS Field: offerText
StartDateDateTime

For ServiceScheduling, the value in the StartDate will be returned in UTC format but will actually represent customer local time.

SD Field: SchdDelDate + TimePeriod[0]

SS Field: start

EndDateDateTime

For ServiceScheduling, the value in the StartDate will be returned in UTC format but will actually represent customer local time.

SD Field: SchdDelDate + TimePeriod[1]

SS Field: end

PromBand
SS Field: promBand
PromType
SS Field: promType
TravelTime
SS Field: travelTime
Day
SS Field: day
ResultobjectOptional object, containing the ServiceScheduling response's more field, when relevant and present.


PropertyTypeDescription
MorebooleanSS Field: more
  • No labels