Skip to content
Last updated

Webhooks Events

Merchant ID Authorisation Events

Be notified of merchant ID authorisation events via the webhook.

The types of authorisation events are:

Authorisation EventDescription
PAY_TERMINAL_MERCHANT_ID_ENABLEDA merchant ID has been enabled for Pay Instore.
PAY_TERMINAL_MERCHANT_ID_DISABLEDA merchant ID has been disabled for Pay Instore.

Sample Merchant ID Authorisation Event

{
  "type": "PAY_TERMINAL_MERCHANT_ID_ENABLED",
  "data": {
    "id": "EXAMPLE_MERCHANT123",
    "uri": "https://api.tyro.com/connect/pay-terminal/merchants/EXAMPLE_MERCHANT123",
    "resource": "payterminalmerchant"
  }
}

Pay Request Events

Be notified of events on a Pay Request via the webhook.

The types of events are:

Pay Request EventDescription
NEW_PAY_TERMINAL_REQUESTA new Pay Request has been created.
PAY_TERMINAL_REQUEST_INITIALISEDThe Pay Request has been initialised on the terminal, ready to take payment.
PAY_TERMINAL_REQUEST_UPDATEDThe Pay Request has new status, prompts or data to consume.
PAY_TERMINAL_REQUEST_SUCCESSThe Pay Request has been successfully processed.
PAY_TERMINAL_REQUEST_FAILEDThe Pay Request has failed, and cannot be reused.

Sample Pay Request Event

{
  "type": "NEW_PAY_TERMINAL_REQUEST",
  "data": {
    "id": "2688fcf2-44dd-4c72-88ac-79d0910f2933",
    "uri": "https://api.tyro.com/connect/pay-terminal/requests/2688fcf2-44dd-4c72-88ac-79d0910f2933",
    "resource": "payterminalrequest"
  }
}
Registering webhooks

For information on how to register for webhooks and how to interpret the webhook message. Documentation can be found here: Webhooks.