get https://api.vendy.money/webhooks/get-webhook
Endpoint to retrieve a specific webhook by it's identifier 'id'.
Request:
Query Parameter | Type | Description |
---|---|---|
businessId | Integer | Unique identifier for business |
id | String | Unique identifier for webhook |
Example request
curl --location 'https://api.vendy.money/webhooks/get-webhook?businessId=1&id=39a1e4bf-fbc3-4b78-9555-c50f8cfa17bw' \
--header 'Authorization: Bearer <token>'
Response:
Field | Type | Description |
---|---|---|
status | Boolean | States if request was successfully executed or not |
code | Integer | Internal code, success if 200 |
msg | String | A description of the status of the request |
data | Webhook | Webhook details |
Example response
{
"code": "00",
"error": "success",
"data": {
"allowedEvents": "all",
"clientId": "39a1e4bf-fbc3-4b78-9555-c50f8cfa17bw",
"created": "2022-08-24T07:05:40.432Z",
"id": "39a1e4bf-fbc3-4b78-9555-c50f8cfa17bw",
"retryStatus": "ENABLED",
"secretHash": "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad",
"updated": "2022-08-24T07:05:40.432Z",
"url": "https://example.com/webhook"
},
"status": true
}