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:
id
string
(Read-only) The webhook's unique identifier.
href
string
(Read-only) The relative reference to the object within the API.
description
string
A description of the webhook.
status
enum
The status of the webhook. Allowed values are enabled or disabled.
type
enum
Defines what the webhook is designed for. Allowed values are:
validatePurchaseOrderDraftvalidatePurchaseOrderQueryingvalidateChangeOrderDraftvalidateTerminateOrdervalidateRequestvalidateAccountselectOrderLines
objectType
enum
Object that triggers the webhook event. Allowed values are
OrderRequestAccount
url
string
The webhook endpoint URL. Only https:// endpoints are allowed.
criteria
object
(Read-only) A set of key-value objects required in the webhook payload to trigger the webhook call.
statistics
object
(Read-only) Represents the statistics object containing statistical and debug information regarding webhook executions.
lastSuccess
object
(Read-only) Represents the call object containing the last successful call to the webhook URL.
lastFailure
object
(Read-only) Represents the call object with details of the last failed call to the webhook URL.
lastCall
object
(Read-only) Represents the call object with details of the last call to the webhook URL.
secret
string
The secret used for authorization in the third-party systems. It's returned only once in response to the Create Webhook endpoint.
Statistics object
total
number
(Read-only) Total number of calls made from the platform to the external system represented by the Webhook object.
successes
number
(Read-only) Total number of successful calls made from the platform to an external system represented by the Webhook object.
failures
number
(Read-only) Total number of failed calls made from the platform to an external system represented by the Webhook object.
failuresSinceLastSuccess
number
(Read-only) Total number of failed calls since the last successful call made by the platform to an external system, represented by the Webhook object.
Call object
total
number
(Read-only) Total number of calls made from the platform to the external system represented by the webhook object.
successes
number
(Read-only) Total number of successful calls made from the platform to an external system represented by the webhook object.
failures
number
(Read-only) Total number of failed calls made from the platform to an external system represented by the webhook object.
failuresSinceLastSuccess
number
(Read-only) Total number of failed calls since the last successful call made by the platform to an external system, represented by the webhook object.
Example
Last updated
Was this helpful?