This webhook interface is linked to a specific Data Export Query.
The query Q is executed every M minutes. For each new line produced by the query, the webhook is called.
S-360 does POST
the line of the query in the form of a flat JSON object, which parameters are named according to the columns of the query result.
Synchronization rate
When setting up the webhook, the operator defines:
Default values:
It is an object with no hierarchy.
Posting access control ticket checks.(as returned to S-360 by the access control system)
[{
"ticket_check_id":10228845124401,
"movement_id":10228844462196,
"ticket_id":10228844446468,
"barcode":"072212349924430836880155",
"access_time":"2023-02-09 18:25:10",
"check_flow":"IN",
"result":"OK",
"failure_reason":"NO_FAIL"},
{"ticket_check_id":10228845124402,
"movement_id":10228844462195,
"ticket_id":10228844446467,
"barcode":"321488720810990025100150",
"access_time":"2023-02-09 18:25:02",
"check_flow":"IN",
"result":"FAIL",
"failure_reason":"NO_MORE_ENTRY_ALLOWED_TODAY"}]
Posting data about updated products in the catalog:
[{
"id": 10223696442077,
"externalDescription": "A very important match",
"state": "SUSPENDED",
"eventId": 10228253332100,
"start": "2023-01-28 17:00:00.0",
"season": "Summer season",
"hostTeam": "FC Triffoully",
"opposingTeam": "SGS Essen",
"Day": "MATCH_DAY/1/4",
"venue": "Stadion Somewhere",
"city": "Triffoully"
}
]
Posting simple contact data (this could replace the contact webhook if only very simple data are needed)
[
{
"socialConnections.providerUserReference": "362639947",
"contactNumber": "3346662",
"creationDate": "2022-11-01T05:53:22.530+00:00",
"role": "PUBLIC",
"type": "INDIVIDUAL",
"individualFirstname": "James",
"individualLastname": "Bond",
"cellPhoneNumber": "+4436411225",
"email": "james.bond@mi6.gov.uk",
"individualCountryCode": "UK"
},
{
"socialConnections.providerUserReference": "362639949",
"contactNumber": "3346663",
"creationDate": "2022-11-01T17:51:22.530+00:00",
"role": "PUBLIC",
"type": "INDIVIDUAL",
"individualFirstname": "Felix",
"individualLastname": "Leiter",
"cellPhoneNumber": "+1555342552",
"email": "felix.leiter@cia.gov",
"individualCountryCode": "US"
}
]
Any data that is available in S-360 database can be provided via this webhook and any reasonably simple flat JSON object can be produced.
There are the following restrictions:
The callee must provide an URL which will accept POST requests containg the JSON payload described below and return 200 when accepted.
If the URL returns values (an id, a message...), those values will be ignored.
If the URL returns an error, the same item will be sent every M minute.
It is possible for S-360 to process an authentication on the remote URL. Here are the supported authentication protocols: