API Doc XeroxBot STAAR
API Doc XeroxBot STAAR
v1.0
(Last Updated 7/26/2023)
Upon successful lookup of Client and completion of bot tasks, a third step will be used
to create a required Note linked to the Client
3) the request to perform a script
The complete expected responses for the illustrated calls are detailed below.
Call Type
POST
Endpoint
https://opal.profiledevelopers.com/fmi/data/vLatest/databases/
Stella_CRM/sessions
Headers Required
Content-type:application/json
Authorization: Basic <credential above>
The example data shown below of “Fake Miller” and “Dudeman Test Fake” both
exist in the live system and can be used for testing.
Call Type
POST
Endpoint
https://opal.profiledevelopers.com/fmi/data/vLatest/databases/
Stella_CRM/layouts/xeroxBotAccess/_find
Headers Required
Content-Type:application/json
Authorization:Bearer <token>
Body Required
{“query”: [{<queryJSON>}]}
An example query to look up the Client with the name “Dudeman Test Fake”
would be structured as:
{
"query": [
{
"NameLast": "Test Fake",
"NameFirst": "Dudeman",
"DOB_Date": "9/9/1925",
"Active": 1
}
]
}
{
"query": [
{
"res_contracthh_STOCK::Line": "FAKE",
"res_contracthh_STOCK::AccountNumber":1000,
"Active": 1
}
]
}
{
"response": {
"dataInfo": {
"database": "Stella_CRM",
"layout": "xeroxBotAccess",
"table": "RES__RESIDENT",
"totalRecordCount": 63962,
"foundCount": 1,
"returnedCount": 1
},
"data": [
{
"fieldData": {
"res_contracthh_STOCK::Line": "FAKE",
"res_contracthh_STOCK::AccountNumber":
"1000",
"res_TPP::MemberID": "1234567890",
"res_tpp_PAYOR::PayorID": "3220",
"res_caremgr_PAYOREMP::Email1":
"nigrellizv@automatedsecurityALERT.com",
"Active": 1,
"id":
"64D17E30-54C1-0A4A-95C4-958C31067D23",
"NameFirst": "FAKE",
"NameLast": "MILLER",
"DOB_Date": "05/05/1980",
"Phone": "(412) 555-7894",
"ClientID": "CL09915849"
},
"portalData": {},
"recordId": "28127",
"modId": "46"
}
]
},
"messages": [
{
"code": "0",
"message": "OK"
}
]
}
The “id” field value returned from the search will need to be saved as a parameter
to send for next step…
Call Type
GET
Endpoint
https://opal.profiledevelopers.com/fmi/data/vLatest/databases/
Stella_CRM/layouts/xeroxBotAccess_ACTIVITY/script/
api_xeroxCreateNote?script.param=<id>
Headers Required
Authorization:Bearer <token>
Body Required
None
The <id> in the endpoint URL would be saved from the previous Client query in
step 2.