Webhook management

Is there an api for managing my webhooks?

Hello @jayrald.empino,

Yes, there is an API available for managing your webhooks.

Webhook configuration is applicable to Maya’s online payment solutions such as Maya Checkout, Maya Vault, and Pay with Maya.

You can manage (create, retrieve, update, and delete) your webhooks via the API using your Secret Key. Below are the available endpoints:

Name Method Endpoint Description
Create Webhook POST /payments/v1/webhooks Registers a webhook URL for a specific transaction event on which the merchant wants to be notified of..
Get Webhook GET /payments/v1/webhooks Retrieves a list of webhooks that a merchant registered..
Get Webhook GET /payments/v1/webhooks/{webhookId} Retrieves a webhook via a webhook ID.
Update Webhook PUT /payments/v1/webhooks/{webhookId} Change the URL of a registered webhook.
Delete Webhook DELETE /payments/v1/webhooks/{webhookId} Removes a registered webhook from a merchant. The API returns the last state of the webhook upon successful deletion.

Important:

  • These endpoints require your Secret API Key.
  • Make sure to configure webhooks in the correct environment (Sandbox vs Production).

You may refer to the API reference (included as links in the list above) for full request/response samples and supported event types in the Payments API documentation.

If you need guidance on implementing webhook, refer to Managing Webhooks.