Webhook API

The Webhook object represents an endpoint of an external system that should be invoked for specific events within the Marketplace Platform.

This object contains the following attributes:

Field Name
Data Type
Description

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. Allowed values: enabled or disabled.

type

enum

Defines what the webhook is designed for. Allowed values: validatePurchaseOrderDraft, validatePurchaseOrderQuerying, validateChangeOrderDraft,

validateTerminateOrder,

validateRequest,

validateAccount,

selectOrderLines.

objectType

enum

An object that triggers the webhook event.

Allowed 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 to trigger the webhook call.

Example:

statistics

object (statistics)

The statistical and debug information regarding webhook executions.

Example:

lastSuccess

object (call)

The last successful call to webhook URL.

Example:

lastFailure

object (call)

Last failed call to webhook URL.

Example:

lastCall

object (call)

THe last call to webhook URL.

Example:

secret

string

The secret used for authorization in the third-party systems. It's returned only once in response to the Create Webhook endpoint.

Example: 3ct^6NoryQN22V

account

object

A reference to the vendor account object.

Example:

audit

object

A reference to the audit object.

Statistics object

Field Name
Data Type
Description

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 object

Field Name
Data Type
Description

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?