Interline network webhooks are emitted by the Accounts API when an interline network is updated (PUT /interline/:interlineId/network) or when an interline is deleted (DELETE /interline/:interlineId).
Events
| Action |
Event name |
| update network (PUT /interline/:interlineId/network) |
interlinenetwork.updated |
| delete interline (DELETE /interline/:interlineId) |
interlinenetwork.deleted |
Payload example (interlinenetwork.updated)
{
"attemptId": "8d36d39e-366a-4144-b11d-50ddc182c4b1",
"created": 1635870690,
"data": {
"_id": "618166d6df685b060a2fa9af",
"accountId": "52a377ec430c7d4e220001fc",
"active": true,
"createdAt": {
"offset": 0,
"value": "2021-11-02T16:27:02.035Z"
},
"deleted": false,
"disabled": false,
"fares": [
"55d34a3af86794781a00011c"
],
"globalSearch": true,
"paymentProviders": [],
"paymentSettings": {},
"productIds": [
"52a377ec430c7d4e220001fe",
"52de9df700340f067c00000d"
],
"providerId": "52a377ec430c7d4e220001fc",
"providerName": "Tal Break Stuff",
"sellerId": "612e3e5a9afc794cdd77f8f0",
"sellerName": "NewInterline",
"type": "interline",
"updatedAt": {
"offset": 0,
"value": "2021-11-02T16:30:19.782Z"
},
"updatedBy": "60e2f9e02fe4c044072249d5",
"userId": "60e2f9e02fe4c044072249d5",
"value": 0,
"valueType": "%"
},
"event": "interlinenetwork.updated",
"id": "42078283-30cf-46c4-946f-735f56fffe16",
"livemode": false
}
Payload fields (interlinenetwork.updated)
| Field |
Type |
Description |
| id |
string |
Webhook event id |
| attemptId |
string |
Delivery attempt id |
| created |
int |
Unix timestamp when the event was created |
| event |
string |
interlinenetwork.updated |
| livemode |
boolean |
Whether the account is in live mode |
| data |
object |
The updated network document |
| data._id |
string |
Network id (ObjectId) |
| data.accountId |
string |
Account id |
| data.providerId |
string |
Provider account id |
| data.providerName |
string |
Provider name |
| data.sellerId |
string |
Seller (consumer) account id |
| data.sellerName |
string |
Seller name |
| data.type |
string |
e.g. interline |
| data.productIds |
array |
Product ids |
| data.fares |
array |
Fare ids |
| data.active |
boolean |
|
| data.deleted |
boolean |
|
| data.disabled |
boolean |
|
| data.globalSearch |
boolean |
|
| data.paymentProviders |
array |
|
| data.paymentSettings |
object |
|
| data.value |
number |
|
| data.valueType |
string |
e.g. % |
| data.createdAt |
object |
Creation date (value, offset) |
| data.updatedAt |
object |
Last update date (value, offset) |
| data.updatedBy |
string |
User id |
| data.userId |
string |
User id |
The API emits the event with { providerId, apiKey, data: network }; the webhook envelope may expose these as data.providerId, data.apiKey, and data (or data.data) containing the network document above.
Payload example (interlinenetwork.deleted)
{
"attemptId": "15db93d0-4a7e-46e4-9a2c-5047af2a823c",
"created": 1635870188,
"data": {
"networkId": "6137a8db5bc3aa138a5c1984"
},
"event": "interlinenetwork.deleted",
"id": "6434a44c-4019-446c-8ad3-fbb05508a6cc",
"livemode": false
}
Payload fields (interlinenetwork.deleted)
| Field |
Type |
Description |
| id |
string |
Webhook event id |
| attemptId |
string |
Delivery attempt id |
| created |
int |
Unix timestamp when the event was created |
| event |
string |
interlinenetwork.deleted |
| livemode |
boolean |
Whether the account is in live mode |
| data |
object |
Deletion payload |
| data.networkId |
string |
Id of the deleted interline/network (sent by the API; path param is interlineId) |