# HitPay integrations: payment requests and charges

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

**Canonical page:** https://tray.ai/connectors/hitpay-integrations/
**Categories:** Finance
**Connects through:** HTTP Connector

## Overview

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.

## Use cases

### Payment requests

Read, create, update, and delete payment requests in HitPay from any Tray.ai workflow. The HitPay API covers calls such as create a payment request and list payment requests.

- Create a payment request
- List payment requests
- Get payment request status

### Charges

Read charges in HitPay from any Tray.ai workflow. The HitPay API covers calls such as list charges and get charge details.

- List charges
- Get charge details
- Export charges

### Refunds

Read and create refunds in HitPay from any Tray.ai workflow. The HitPay API covers calls such as create a refund and get refund details.

- Create a refund
- Get refund details

### Invoices

Read, create, update, and delete invoices in HitPay from any Tray.ai workflow. The HitPay API covers calls such as list invoices and create an invoice.

- List invoices
- Create an invoice
- Update an invoice

### Customers

Read, create, update, and delete customers in HitPay from any Tray.ai workflow. The HitPay API covers calls such as list customers and create a customer.

- List customers
- Create a customer
- Update a customer

### Recurring billing

Read, create, delete, and manage recurring billing in HitPay from any Tray.ai workflow. The HitPay API covers calls such as create a recurring billing and list recurring billings.

- Create a recurring billing
- List recurring billings
- Charge a saved card

## Challenges Tray.ai solves

### Keeping HitPay credentials out of logs

A raw API call usually means pasting a key or token into the request, where it ends up in step inputs, logs, and screenshots.

**How Tray.ai helps:** Store HitPay credentials once as a Tray.ai authentication and reference them from the HTTP Connector. Tray.ai masks authentication values in logs, so the secret never shows up in a step's input or output.

### Going from the HitPay API docs to a working call

Translating an example request from API docs into a workflow step means copying the method, URL, headers, and body by hand.

**How Tray.ai helps:** Paste a cURL example from the HitPay API docs into the HTTP Connector and Tray.ai fills in the method, URL, headers, and body for you.

### Handling files and non-JSON responses

Not every API answers in JSON. Some return XML, files, or binary data, or expect a multipart upload.

**How Tray.ai helps:** The HTTP Connector parses JSON and XML responses, returns files you can pass to the next step, and sends multipart form data for uploads.

## Frequently asked questions

### Does Tray.ai connect to HitPay?

Yes. Tray.ai connects to HitPay through the HTTP Connector, which calls the HitPay API directly. Any call the HitPay API documents can run as a step in a Tray.ai workflow.

### 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.

### Can I get a dedicated HitPay connector?

HitPay runs through the HTTP Connector rather than a dedicated connector. If your team wants one, the Tray.ai connector SDK can build a dedicated HitPay connector from the HitPay API.

## Learn more

- Tray iPaaS: https://tray.ai/platform/ipaas/
- Tray Helix agents: https://tray.ai/helix/agents/
- Agent Gateway for MCP: https://tray.ai/platform/agent-gateway/
- Book a demo: https://tray.ai/contact/
