SubscriptionRequest
objectDetails of a subscription.
A valid URL that you own, which will be used to receive event notifications from the Central Dispatch Event service.
Example:https://abc-trcking.net/webhook
Details of subscription rules.
Show Child Parameters
{
"callbackUrl": "https://abc-trcking.net/webhook",
"subscriptionRules": {
"marketplaces": [
"10000"
],
"eventTypes": [
"DispatchCreated",
"DispatchUpdated",
"DispatchAccepted"
]
}
}SubscriptionResponse
objectDetails of a subscription.
The fully qualified URL of the subscription.
Example:https://event-api.centraldispatch.com/subscriptions/id/50b2863f-c75e-45cb-8d50-b5a975d67865
The ID of the subscription.
Example:50b2863f-c75e-45cb-8d50-b5a975d67865
A valid URL that you own, which will be used to receive event notifications from the Central Dispatch Event service.
Example:https://abc-trcking.net/webhook
Indicates whether the subscription is currently active.
Example:true
Details of subscription rules.
Show Child Parameters
{
"href": "https://event-api.centraldispatch.com/subscriptions/id/50b2863f-c75e-45cb-8d50-b5a975d67865",
"subscriptionId": "50b2863f-c75e-45cb-8d50-b5a975d67865",
"callbackUrl": "https://abc-trcking.net/webhook",
"isEnabled": true,
"subscriptionRules": {
"marketplaces": [
"10000"
],
"eventTypes": [
"DispatchCreated",
"DispatchUpdated",
"DispatchAccepted"
]
}
}SubscriptionRules
objectDetails of subscription rules.
A collection of Marketplaces to which the subscription applies. The caller must have access to all listed Marketplaces.
Example:10000
A collection of event types. Use the Get Event Types endpoint to retrieve valid values.
Example:DispatchCreated, DispatchUpdated, DispatchAccepted
{
"marketplaces": [
"10000"
],
"eventTypes": [
"DispatchCreated",
"DispatchUpdated",
"DispatchAccepted"
]
}UpdateSubscriptionRequest
objectDetails of update subscription request.
A valid URL that you own, which will be used to receive event notifications from the Central Dispatch Event service.
Example:https://abc-trcking.net/webhook
Details of subscription rules.
Show Child Parameters
Indicates whether the subscription is currently active.
Default:false
Example:true
{
"callbackUrl": "https://abc-trcking.net/webhook",
"subscriptionRules": {
"marketplaces": [
"10000"
],
"eventTypes": [
"DispatchCreated",
"DispatchUpdated",
"DispatchAccepted"
]
},
"isEnabled": true
}