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_Zz6SP_8bIUK88STK",
- "marketplaceId": "mktp_Zz6SN_8bIUK88SSw",
- "events": [
- "MerchantCreated"
], - "description": "string",
- "metadata": { },
- "status": "Active",
- "secret": "string"
}
}