Jèko
Service Providers

Create webhook subscription for merchant business (Service Provider API)

POST
/partner_api/service_providers/business_webhook_subscriptions

Creates a webhook subscription for a merchant (max 1 per business).

Authorization

ApiKey ApiKeyId
X-API-KEY<token>

In: header

X-API-KEY-ID<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/partner_api/service_providers/business_webhook_subscriptions" \  -H "Content-Type: application/json" \  -d '{    "merchantBusinessId": "19d467bb-96e1-48c8-88c3-25dccb98467b",    "url": "string"  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "url": "string",  "name": "string",  "businessId": "50092e54-cd12-4059-9828-e8c4ee9a3cf5",  "events": [    "TRANSACTION_COMPLETED"  ],  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "secret": "string"}