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