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