# Payhere AI integration on Definable

> Easy payment links for accepting online payments

## What this connects

Easy payment links for accepting online payments

Vendor: https://payhere.co

## Tools available

**13** tools available. First 12:

- `PAYHERE_CREATE_HOOK` — Create Hook — Tool to subscribe to a REST hook for receiving webhook events. Use when you need to register a webhook endpoint to receive real-time notifications for payment_received, subscription_cancelled, or subscription_created events.
- `PAYHERE_CREATE_PLAN` — Create Plan — Tool to create a new payment plan in PayHere. Use when you need to set up either a recurring subscription or one-off payment plan for accepting payments.
- `PAYHERE_DELETE_HOOK` — Delete Hook — Tool to remove a REST hook listener subscription. Use when you need to stop receiving webhook events for a specific hook.
- `PAYHERE_GET_CURRENT_COMPANY` — Get Current Company — Tool to fetch company information for the currently authenticated user. Use when you need to retrieve comprehensive company details including identity, configuration, integration status, and associated users.
- `PAYHERE_GET_CURRENT_COMPANY_STATS` — Get Current Company Stats — Tool to fetch payment statistics for the last 30 days with comparison data from the preceding 30-day period (30-60 days ago). Use when you need to analyze recent payment trends, subscriber growth, or compare current performance against the previous month.
- `PAYHERE_GET_USER` — Get User — Tool to fetch information on the currently authenticated user. Use when you need to retrieve details about the logged-in user.
- `PAYHERE_LIST_CUSTOMERS` — List Customers — Tool to list all customers from Payhere, ordered chronologically with most recent first. Use when you need to retrieve customer records, browse customers, or access customer information. Supports pagination via page and per_page parameters.
- `PAYHERE_LIST_HOOKS` — List REST Hooks — Tool to list all active REST hooks subscriptions for the authenticated company. Use when you need to view all currently registered webhook listeners for your PayHere account.
- `PAYHERE_LIST_PAYMENTS` — List Payments — Tool to list all payments ordered chronologically, most recent first. Use when you need to retrieve payment history or check payment statuses. Supports pagination with page and per_page parameters.
- `PAYHERE_LIST_PLANS` — List Plans — Tool to list all plans in your PayHere account. Use when you need to retrieve and paginate through available plans.
- `PAYHERE_LIST_SUBSCRIPTIONS` — List subscriptions — Tool to list all subscriptions ordered chronologically by most recent payment first. Use when you need to retrieve subscription data with customer and plan details.
- `PAYHERE_UPDATE_CURRENT_COMPANY` — Update Current Company — Tool to update the company information for the currently authenticated user. Use when modifying company details such as name, legal name, address, logo, support email, website, or branding preferences (button color and text color).

## Auth

Auth schemes: `API_KEY`.

## How agents use Payhere

Inside a Definable workflow, Payhere is one of the tools the **Distributor specialist** can call. Example coordination patterns:

- **Researcher → Payhere** — the Researcher (GPT-5.5) pulls context from Payhere (records, threads, documents), synthesises findings, and briefs the rest of the team.
- **Writer → Distributor → Payhere** — the Writer (Claude Opus 4.7) drafts copy in brand voice, the Verifier passes it, then the Distributor writes the result into Payhere (create record, post message, draft email).
- **Designer / Engineer → Distributor → Payhere** — the Designer ships an asset or the Engineer ships a code change, the Distributor delivers it via Payhere (attach file, open PR comment, post status).

The Verifier checks every Payhere call. On rate limit, schema drift, or auth refresh it self-heals and retries — the workflow completes without manual intervention.

## Categories

- payment processing — https://definable.ai/apps/category/payment-processing/

## Related

- HTML page: https://definable.ai/apps/payhere/
- Same category (payment processing): https://definable.ai/apps/category/payment-processing/
- All integrations: https://definable.ai/apps/
- Workflow (multi-agent loop): https://definable.ai/workflow/
- Apps llms.txt index: https://definable.ai/llms-apps.txt
