Creates a new webhook, based on a given webhookEventTypeName
or webhookEventTypeId
.
Created
Bad request
Unauthorised
Forbidden
Not found
Method not allowed
Unsupported media type
Too many requests
Internal server error
{- "webhookEventTypeName": "AccountCreated",
- "accountId": "C12345",
- "authorizationHeader": "Basic AXVubzpwQDU1dzByYM==",
- "sharedSecret": "123e4567-e89b-12d3-a456-426614174000",
- "enabled": true
}
{- "id": "da91434a-4026-42ea-84b8-d0317b64af9c",
- "productId": "911db6db-ef58-4992-87cd-2fe2cfde05f9",
- "webhookEventTypeId": "da91434a-4026-42ea-84b8-d0317b64af9c",
- "accountId": "C12345",
- "authorizationHeader": "Basic AXVubzpwQDU1dzByYM==",
- "webhookEventTypeName": "OrderCreated",
- "enabled": true,
- "sharedSecret": "123e4567-e89b-12d3-a456-426614174000",
- "createdAt": "2021-01-30T08:30:00Z",
- "updatedAt": "2021-01-30T08:30:00Z"
}