With webhooks, our users may define an endpoint that will be called when an event occurs for a specific action, such as sending the results of a batch when the batch closes.

Events

Batch Closed

The "batch.closed" event is fired when a batch has successfully been sent to the settlement platform and PaidYET has received confirmation that it was rececived.

The following status is reported:

Status NameDescriptionStatus
ClosedThe Batch was successfully closed and we received confirmation from the settlement platform.closed

Batch Created

The "batch.created" event is fired any time a new batch is created.

The following status is reported:

Status NameDescriptionStatus
CurrentThe Batch is still open for new transactions. Any transactions in a Batch with this status can be voided.open

Batch Failed

The "batch.failed" event is fired if an error occurs during a batch closure attempt. This could happen if the settlement platform does not receive the closure or if there was an error that we received back from the settlement platform.

Notifications will be sent automatically and PaidYET support and/or merchant can take corrective actions accordingly. The following statuses are reported:

Status NameDescriptionStatus
ProcessingIssue with a transaction, token, batch, or other disallowed processing object.processing_error
SendingIssue with communication, trigger, connectivity connection, or other obstruction.sending_error
ErrorIssue not identified but unsuccessful.error
RejectedIssue with card brand values, record indicators, processor formats, or other mismatches.rejected

Responses

For any of the batch related webhooks, the webhook response will include the following as a JSON string:

{
  "event": "batch.closed",
  "data": [
    {
      "id": 22642,
      "status": "closed",
      "amount": "1.23",
      "merchant": {
        "name": "Acme Anvils"
      },
      "source": "tsys",
      "device": {
           "name": "Front Office Terminal",
           "sn": "123456789"
       },
      "number_transactions": 1,
      "date_opened": "2023-11-21 13:07:39",
      "date_closed": "2023-11-22 16:20:54"
    }
  ]
}

Note that the event property's value will change based on which event was fired.

Adding Webhooks to your PaidYET Account

  1. Log into your PaidYET Merchant Dashboard.
  2. Expand the Account tab on the left, then click Tools.
  3. Click the Access Points tab.
  4. Scroll to the bottom and find the Web Hooks section.
  5. Click the "+ ADD WEBHOOK" button.
  6. Select the event you'd like to utilize, then fill out the webhook destination, which is the URL you'd like the event to be posted to.
  7. Click Save, and notice the webhook appear in the table. You may pause or edit the destination of any webhook at any time.

Automatic Retries

PaidYET automatically retries any failed webhook calls once a day for 5 days after the failure. The first retry takes place 24 hours after the failure.