Service Parameters for the create event service are -
•PBX Id
•Org Id
•Activity Look Up Id
•Caller Id / IVR Id
•PBX Token
•Start Date
•Start Time
•End Date
•End Time
•Notes (Optional)
To create an event in the Salesforce the Event post call has to be used from the PBX:
https://acd1.miragecloud.com/acd/api/Event/<PBXOrgId>
Body:
{
"ActivityLookupId": "2E816A-2ED7BF-7EDDA4",
"CallerId": "000497852416200xxx",
"IVRId": "",
"StartDate": "2021-03-22",
"StartTime": "10:10:04",
"EndDate": "2021-03-22",
"EndTime": "10:12:04",
"Notes": "These are my Notes",
"Token": "<provide here or with Bearer Token in Header>"
}
Parameters:
The first parameter in the path <PBXId><OrgId> is the PBX Id joined with the Org Id (without a blank or separator).
The Activity Look up Id is unique id of the activity look up
The parameters callerid and ivrid are optional, but at least one has to be used.
Start date requires a date format string
Start time requires a time format string
End date requires a date format string
End time requires a time format string
Notes field is optional but can be used to add comment to the task.
To call Task service a PBX-Token has to be used. The PBX-Token can be requested inside ACDPortal and has to match the PBX it has been issued for.
The Token has to be delivered in the call either as a post-Param or in the HTTP Header as Bearer Authorization:
Authorization: Bearer <theToken>
Create Event Example:
https://acd1.miragecloud.com/acd/api/Event/E0SE26-51A3C0-65B26700D24000000HxH6SQA
{
"ActivityLookupId": "576ZS1-3QW62C-12C0C4",
"CallerId": "+4975254331234",
"IVRId": "",
"StartDate": "16-04-2021",
"StartTime": "11:57:04",
"EndDate": "16-04-2021",
"EndTime": "11:59:04",
"Notes": "These are my event Notes",
"Token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJBQ0RQdCIsImF1ZCI6IkUwQkUyNi01OEEzQzAtNjVCMjY3In0"
}
Online help - Create PBX Token