Create a new webhook subscription. If called with a marketplace API key, the subscription will be at the marketplace level.
If called with merchant credentials or if the Merchant-Id
header is provided, the subscription will be at the merchant level.
required | object (CreateWebhookMarketplaceSubscription1) |
{- "CreateWebhookMarketplaceSubscription": {
- "events": [
- "MerchantCreated"
], - "description": "string",
- "metadata": { }
}
}
{- "WebhookMarketplaceSubscription": {
- "id": "webhook_Zz_j8B6IwWmwGetm",
- "marketplaceId": "mktp_Zz_j6R6IwWmwGetM",
- "events": [
- "MerchantCreated"
], - "description": "string",
- "metadata": { },
- "status": "Active",
- "secret": "string"
}
}