Skip to content
HitPay logo

Connectors / Finance · HTTP Connector

HitPay integration and API

Create a payment request, export charges and create a refund in HitPay, and start a workflow when HitPay sends “Charge created”.

What can you do with HitPay on Tray.ai?

HitPay is a payments platform for businesses in Southeast Asia that collects online and in-person payments through cards, PayNow, QR codes and other local methods. Tray.ai connects to HitPay through the HTTP Connector, so your workflows can call the HitPay API alongside the rest of your stack.

  • When HitPay sends “Payment request completed”, mark the order paid in your online store.
  • When HitPay sends “Transfer failed”, alert finance with the payout details.
  • Create an invoice in HitPay when a deal is marked won in your CRM.
  • Record the payout in your accounting system when HitPay sends “Payout created”.
Connects through
HTTP Connector
Authentication
An API key in a request header
Base URL
https://api.hit-pay.com/v1

Set it up

Connect HitPay to Tray.ai

Each step uses HitPay's own API details, from its documentation.

Save HitPay's API key

Save the key as a Tray.ai authentication. The HTTP Client puts it in the request header, read from $.auth. The key stays out of the workflow and out of the logs.

Point the HTTP Client at the API

Add an HTTP Client step and use https://api.hit-pay.com/v1 as the base URL. Or paste a cURL example from HitPay's API docs, and Tray.ai fills in the method, URL, and headers.

Start with “List payment requests”

It's one of 22 documented actions, under Payment requests. The response comes back as data the next step can map into your other apps.

Start workflows from HitPay events

Give HitPay the URL of a Tray.ai webhook trigger. “Charge created” can then start a workflow, and so can 9 other events.

Workflows to build with HitPay

Connect HitPay with Xero, Slack, Asana and HubSpot

Each one uses actions and events from HitPay's own API documentation.

Record completed HitPay payments in Xero

When

Payment request completed

Then

  1. Get payment request status in HitPay
  2. Record the payment against the invoice in Xero

With Xero

Alert finance in Slack when a HitPay transfer fails

When

Transfer failed

Then

  1. Post the failed transfer details to the finance channel in Slack
  2. Create a follow-up task in Asana for the payout team

With Slack and Asana

Send HitPay payment links for new HubSpot deals

When

A deal closes in HubSpot

Then

  1. Create a customer in HitPay
  2. Create a payment request for the deal amount
  3. Email the payment link to the buyer from Gmail

With HubSpot and Gmail

Apps you can build on HitPay data

Internal tools your team can build with an AI assistant, each one using HitPay calls from its API documentation.

Failed payment follow-up

Lists failed payment requests and lets a team update a request before following up with the customer.

Refund desk

Looks up charges and lets a finance user issue a refund and check its status.

Subscription billing board

Lists recurring billings by customer and lets staff charge a saved card or cancel a plan.

HitPay MCP server for AI agents

Build an MCP server on HitPay in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • Create a payment request
  • List charges
  • Create a refund
  • List invoices
  • List customers
  • Create a recurring billing
  • List payment requests
  • Get payment request status

What the HitPay API covers

6 resources and 22 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Payment requests

  • Create a payment request
  • List payment requests
  • Get payment request status
  • Update a payment request
  • Delete a payment request

Charges

  • List charges
  • Get charge details
  • Export charges

Refunds

  • Create a refund
  • Get refund details

Invoices

  • List invoices
  • Create an invoice
  • Update an invoice
  • Delete an invoice

Customers

  • List customers
  • Create a customer
  • Update a customer
  • Delete a customer

Recurring billing

  • Create a recurring billing
  • List recurring billings
  • Charge a saved card
  • Delete a recurring billing

Events HitPay can send to a Tray.ai webhook trigger

  • Charge created
  • Charge updated
  • Order created
  • Invoice created
  • Payout created
  • Transfer paid
  • Transfer failed
  • Payment request completed
  • Payment request failed
  • Subscription updated

Checked against HitPay's own documentation on 2026-10-22

docs.hitpayapp.com/apis/overview

Frequently asked questions

What can a Tray.ai workflow do in HitPay?

The HitPay API documents 22 actions across 6 resources (Payment requests, Charges, Refunds, Invoices, Customers, Recurring billing). For example: Create a payment request; List charges; Create a refund. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with HitPay?

The HitPay API uses an API key in a request header. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

Which HitPay events can start a Tray.ai workflow?

HitPay sends 10 events to a webhook URL, for example: Charge created; Charge updated; Order created; Invoice created; Payout created; Transfer paid; Transfer failed; Payment request completed. A Tray.ai webhook trigger receives them and starts a workflow.

See HitPay working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great, a couple more details

This helps us connect you with the right person. Optional, and you can skip it.