Skip to content
Billplz logo

Connectors / Finance · HTTP Connector

Billplz integration and API

Create a bill, create a collection and create a payment order in Billplz, and start a workflow when Billplz sends “Bill payment completed”.

What can you do with Billplz on Tray.ai?

Billplz is a Malaysian payment gateway for collecting payments through bills and FPX online banking, and for sending payouts through payment orders. Tray.ai connects to Billplz through the HTTP Connector, so your workflows can call the Billplz API alongside the rest of your stack.

  • When Billplz sends “Bill payment completed”, mark the order paid in your order management system.
  • Create a bill for each new order in your online store and send the payment link to the buyer.
  • When Billplz sends “Payment order completed”, record the payout in your accounting system.
Connects through
HTTP Connector
Authentication
Basic authentication
Base URL
https://www.billplz.com/api

Set it up

Connect Billplz to Tray.ai

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

Save Billplz's username and password

Save the credentials Billplz gives you as a Tray.ai authentication. The HTTP Client sends them as basic auth. They stay out of the workflow and out of the logs.

Point the HTTP Client at the API

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

Start with “Get a bill”

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

Start workflows from Billplz events

Give Billplz the URL of a Tray.ai webhook trigger. “Bill payment completed” can then start a workflow, and so can 1 other event.

Workflows to build with Billplz

Connect Billplz with HubSpot, Xero and Slack

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

Create Billplz bills from HubSpot deals

When

A deal reaches the contract stage in HubSpot

Then

  1. Create a bill for the deal amount
  2. Add the bill link to the deal in HubSpot

With HubSpot

Record completed Billplz payments in Xero

When

Bill payment completed

Then

  1. Get a bill for the payer and amount
  2. Record the payment against the invoice in Xero

With Xero

Post completed Billplz payouts to Slack

When

Payment order completed

Then

  1. Get a payment order
  2. Post the recipient and amount to the finance channel in Slack

With Slack

Apps you can build on Billplz data

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

Bill payment tracker

Shows bills and their transactions so finance can see which payments came in.

Payout request form

Lets finance create a payment order and check the remaining limit and its status.

Collection manager

Lists collections and lets an admin activate or deactivate them.

Billplz MCP server for AI agents

Build an MCP server on Billplz 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 bill
  • List collections
  • Create a payment order
  • Create a payment order collection
  • Create an agreement
  • Get a bill
  • Delete a bill
  • List bill transactions

What the Billplz API covers

5 resources and 17 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. New to APIs? Read what an API integration is.

Bills

  • Create a bill
  • Get a bill
  • Delete a bill
  • List bill transactions

Collections

  • List collections
  • Get a collection
  • Create a collection
  • Activate a collection
  • Deactivate a collection

Payment orders

  • Create a payment order
  • Get a payment order
  • Get the payment order limit

Payment order collections

  • Create a payment order collection
  • Get a payment order collection

Agreements

  • Create an agreement
  • Get an agreement
  • Delete an agreement

Events Billplz can send to a Tray.ai webhook trigger

  • Bill payment completed
  • Payment order completed

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

www.billplz.com/api

Frequently asked questions

What can a Tray.ai workflow do in Billplz?

The Billplz API documents 17 actions across 5 resources (Bills, Collections, Payment orders, Payment order collections, Agreements). For example: Create a bill; List collections; Create a payment order. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Billplz?

The Billplz API uses basic authentication. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

Which Billplz events can start a Tray.ai workflow?

Billplz sends 2 events to a webhook URL, for example: Bill payment completed; Payment order completed. A Tray.ai webhook trigger receives them and starts a workflow.

See Billplz 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.