Webhooks: Get

In this request, you can retrieve information on already created webhooks by specifying the app token, secret, (merchant ID), store ID, and webhook ID.
If you do not specify a webhook ID, you can retrieve a list of webhooks that match the criteria by filtering with the query parameter.
When retrieving webhook information specifying a store, merchants/{merchantId} can be omitted.

Request

GET https://api.univapay.com/merchants/{merchantId}/stores/{storeId}/webhooks/{webhookId}

Headers:

Authorization: Bearer {secret}.{jwt}

Body:

curl --request GET \
--url https://api.univapay.com/stores/af857264-180c-11e7-9be2-276aea4fed28/webhooks/0fe1e42a-1845-11e7-9b1f-d3bd0c055a99 \
--header 'Authorization: Bearer {secret}.{jwt}'

Response

Code: 200

Headers:

Content-Type: application/json

Body:

{ 
    "id": "0fe1e42a-1845-11e7-9b1f-d3bd0c055a99",
    "merchant_id": "11ecda53-ed43-3s4-a6da-0b40bd376d41",
    "store_id": "af857264-180c-11e7-9be2-276aea4fed28",
    "triggers": [
        "charge_updated",
        "charge_finished",
        "subscription_created",
        "token_created"
    ],
    "url": "https://docs.univapay.com/References/reference/",
    "auth_token": "Bearer eyJhbGciqwdcirE1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2NTY1NjY5NDl9.HRPDOGYj_jz7amfGu-s4pjmAvg7p9nxEf3TlefQDSiE",
    "active": true,
    "created_on": "2022-06-30T05:29:10.085639Z"
}