Overview
Once your HitPay account is enabled as a Platform account (see the Platforms overview and contact [email protected]), you receive a Platform Key, available in your dashboard under Settings → Platform. Passing it as anX-PLATFORM-KEY header on payment requests you create for your sub-merchants unlocks two capabilities:
- Commissions - earn a share of each transaction, as a platform-wide percentage or a fixed amount per payment.
- Unified webhooks - charge events for all your sub-merchants’ payments are delivered to your platform account’s webhook endpoints.
Authentication
IncludeX-PLATFORM-KEY in addition to the sub-merchant’s credentials on each request:
https://api.sandbox.hit-pay.com.
How to set Commission Rate
The Commission Rate applies a percentage commission to every transaction made through your platform.
- Sign in to your platform-enabled HitPay account (sandbox or live).
- Go to Settings → Platform and click Set Commission Rate.

platform_commission_amount (see below).
Set a commission per transaction
In addition to the percentageCommission Rate, platforms can set an exact commission amount on an individual payment request by passing the platform_commission_amount field when creating it. When provided, this fixed amount takes precedence over the percentage Commission Rate for that transaction.
platform_commission_amount requires a valid X-PLATFORM-KEY and is currently supported for PayNow (Singapore). It cannot be used on payment requests that allow repeated payments.Create a payment request with a fixed commission
platform_commission_amount so you can confirm it was applied. Once the customer pays, your platform receives the commission, and the sub-merchant receives the payment amount minus HitPay’s processing fee and the commission.
Unified webhooks
Becoming a Platform account does not automatically start sending webhooks. Register webhook endpoints on your platform’s own HitPay account under Developers → Webhook Endpoints before you can receive events. For sub-merchant payments created withX-PLATFORM-KEY:
- Charge events (
charge.created,charge.failed,charge.updated) are delivered to webhook endpoints registered on the platform account - not the sub-merchant’s endpoints. This gives you one webhook stream covering every sub-merchant. - The payload is for the sub-merchant’s transaction; use the charge or payment-request data (and
business_idin the payload) to identify which sub-merchant it belongs to. - Payment request events (
payment_request.completed,payment_request.failed) are currently sent to the sub-merchant’s registered webhook endpoints.
In-Person Payments
Platforms can create in-person terminal payments on behalf of sub-merchants using Wi-Fi card readers and QR terminals. To initiate an in-person payment as a platform:- Include the sub-merchant’s credentials together with your
X-PLATFORM-KEYheader - Set
payment_methods[]towifi_card_reader(for card payments) or a supported QR method (for QR payments) - Pass the sub-merchant’s
wifi_terminal_id