Webhook API
The Webhook object represents an endpoint of an external system that should be invoked for specific events within the Marketplace Platform. The object contains the following attributes:
id
string
The webhook's unique identifier.
Example: WBH-5433-8787
href
string
The relative reference to the object within the API.
Example: /notifications/webhooks/WBH-5433-8787
description
string
A description of the webhook.
Example: Webhook for purchase order draft validation for Microsoft Office 365.
status
enum
The status of the webhook. Possible enum values: Enabled
or Disabled
.
type
enum
Defines what for webhook is designed for.
Possible enum values:
ValidatePurchaseOrderDraft
ValidatePurchaseOrderQuerying
ValidateChangeOrderDraft
ValidateTerminateOrder
ValidateRequest
ValidateAccount
SelectOrderLines
objectType
enum
An object that triggers the webhook event. Possible enum values: Order
,
Request
, or
Account
.
url
string
The webhook endpoint URL. Only https:// endpoints are allowed.
Example: https://some-api.vendor.com/order-validation
criteria
object
A set of key-value objects required in the webhook payload for triggering the webhook call.
Example:
statistics
Statistical and debug information regarding webhook executions.
Example:
lastSuccess
Last successful call to webhook URL.
Example:
lastFailure
Last failed call to webhook URL.
Example:
lastCall
Last call to webhook URL.
Example:
secret
string
The secret used for authorization in 3rd party systems.
Example: 3ct^6NoryQN22V
account
account
A reference to the vendor Account object.
Example:
audit
auditObject
The audit object. Possible values: Created
, Updated
, Enabled
, Disabled
.
Example:
Statistics
total
number
The total number of calls made from the Marketplace Platform to the external system represented by the Webhook object. Example: 77
successes
number
The total number of successful calls made from the Marketplace Platform to an external system represented by the Webhook object.
Example: 70
failures
number
The total number of failed calls made from the Marketplace Platform to an external system represented by the Webhook object.
Example: 7
failuresSinceLastSuccess
number
The total number of failed calls since the last successful call made by the Marketplace Platform to an external system, represented by the Webhook object. Example: 3
Call
total
number
The total number of calls made from the Marketplace Platform to the external system represented by the Webhook object.
Example: 77
successes
number
The total number of successful calls made from the Marketplace Platform to an external system represented by the Webhook object.
Example: 70
failures
number
The total number of failed calls made from the Marketplace Platform to an external system represented by the Webhook object.
Example: 7
failuresSinceLastSuccess
number
The total number of failed calls since the last successful call made by the Marketplace Platform to an external system, represented by the Webhook object. Example: 3
Last updated
Was this helpful?