Use these recipes to get started with Pay Ops features and functions. See Pay Ops overview for more.
New to the API? Start with the authentication guide on the cookbooks home.
Register a webhook so Payabli notifies your server in real time when an event occurs. This recipe creates a single subscription for one event type.
/// Prerequisites
Before you start, make sure you have the following:
eventType to subscribe to. See the webhook payloads reference for all available events.ownerId of the paypoint or organization that owns the notification, plus its matching ownerType: 0 for organization or 2 for paypoint./// Step 1: Create the webhook subscription
Register the webhook with Payabli. Set method to web and target to your server’s public URL.
Send a POST request to /api/Notification.
The response returns the notificationId in responseData. Save this — you need it to update or delete the subscription later.
See Create notification for the full API reference.
/// What’s next
You’re now subscribed. Trigger the event to see a payload land on your server. Learn more about webhook payloads and managing notifications.
Retrieve a list of ACH returns for a paypoint to monitor failed ACH debits and respond to return codes. The disputes endpoint returns both card chargebacks and ACH returns, so this recipe filters by payment method to return ACH-side records only.
/// Prerequisites
Before you start, make sure you have the following:
entrypoint identifier/// List ACH returns for the paypoint
Query the disputes endpoint with a method filter of ach to exclude card chargebacks from the results. Filtering on method (instead of status) keeps the request robust to the different status values an ACH return can carry, including R29 returns and any legacy records.
Send a GET request to /api/Query/chargebacks/{entry}.
The response includes one record per ACH return. The ReasonCode field contains the Nacha return code (for example, R01 for insufficient funds), Reason contains the human-readable explanation, and Transaction contains the original ACH transaction details.
See List disputes by paypoint for the full API reference, including all available filters and pagination options.
/// What’s next
You’ve retrieved ACH returns for a paypoint. To resolve them, see Managing merchant ACH debit failures and returns and the ACH return codes reference. To get notified when a return comes in, subscribe to the ReceivedAchReturn webhook event.