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

Compare with Current View Page History

« Previous Version 8 Next »

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 service number should be used when the call is made.

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
SAPBusinessPartnerIDThe 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.

400 - Bad Request

Bad input parameter, for example SAP record not found.

403 – Forbidden

Call is not allowed. The 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 concatenating the distributionChannelCodeText and countryCode. The found ServiceNumber will be used for signalling the outbound call.

  • No labels