Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languageen

This API is called when a click to dial is requested by agents using SAP.

The API can decide whether the call can proceed, and what calling party service number should be used when the call is made.For example, calling a customer might require that the hotline telephone number is transmitted, whilst calling a supplier might require that the extension number of the agent be used. 

To make use of this API, a REST endpoint must be provided in SAP for the Jtel System to access. The following pages describe an example implementation.

Request

GET

Parameters

Data is passed to this API as parameters in the GET request.

The following parameters are provided:

Field NameDescription
Authorization TokenSAPBusinessPartnerIDThe Basic Authentication Token which is the encoded Base 64 of username:password
REST ParametersThese parameters are separated by Carriage return. All variable starts with the dollar sign '$' e.g.
 $filter=CustomerID eq '$SAPBusinessPartnerID'
 $expand=IndividualCustomerSalesData
Id of the record in SAP which should be called.
SAPPhoneNumberThe number to be called (the number clicked on in SAP, cleaned to remove unnecessary characters, punctuation and characters which cannot be dialled).

http Status Codes

The following status codes should be used:

Status CodeMeaning

200 – OK

OK, dialling may proceed using the supplied information.

200 – REST HTTP No Results Found

400 - Bad Request

Bad input parameter, for example SAP record not found.

403 – Forbidden

Bad credential and Call is not allowed. The Jtel jtel system will refuse to place the call if this code is returned.
404 - Not foundSAP record not found. The jtel system will refuse to place the call if this code is returned.

Return Data

Data should be returned from this request in JSON format. The following fields should be supplied:

Field NameDescription

distributionChannelCodeText

This parameter will be parsed from the JSON Result path and will be used to match a service number. 
countryCodeThis parameter will be parsed from the JSON Result path and will be used to match a service number.

The Jtel system will attempt to match a ServiceNumber based on the Contract Number by concatinating concatenating the distributionChannelCodeText and countryCode. The found ServiceNumber will be used for signalling the outbound call.

...