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