Developers
API Reference
Every endpoint of the QuickPay API. The same is in openapi.json (OpenAPI 3.1) for Postman, code generators and other tools.
Basics
- Base URL:
https://quickpayph.com. Every path starts with/api/v1. Requests and answers are JSON; field names aresnake_case. - Authentication:
Authorization: Bearer qp_test_…orqp_live_…. See API Keys. A test key sees only test objects, a live key only live ones. - Money: integers in centavos, in whole pesos (multiples of 100):
150000is ₱1,500.00. Every amount has a_displaystring. The currency is alwaysPHP. - Times: RFC 3339, such as
2026-11-17T03:04:05Z. - Idempotency: the two create calls need an
Idempotency-Keyheader of 1 to 255 characters. The same key and body again answer the first result with200andIdempotent-Replayed: true; the same key with another body answers409 idempotency_mismatch. Keys are per account and per mode. - Lists are newest first and answer
{"items": [...], "has_more": true|false}.limitis 1 to 100 (default 20); passstarting_afterwith the last id you got for the next page. - Body size: at most 64 KiB, sent uncompressed.
- Not in the API: payment links, payout accounts (other than reading them), webhook endpoints and support chat are managed only in the dashboard. The dashboard's own routes (
/api/…withoutv1) need a signed-in session, are not a public API and may change without notice.
| Endpoint | Scope |
|---|---|
POST /api/v1/checkouts | checkouts |
GET /api/v1/checkouts | read |
GET /api/v1/checkouts/{id} | read |
POST /api/v1/checkouts/{id}/simulate | checkouts, test keys only |
GET /api/v1/balance | read |
GET /api/v1/payout-accounts | read |
POST /api/v1/withdrawals | withdraw |
GET /api/v1/withdrawals | read |
GET /api/v1/withdrawals/limits | read |
GET /api/v1/withdrawals/{id} | read |
POST /api/v1/withdrawals/{id}/simulate | withdraw, test keys only |
Every endpoint can also answer 401 invalid_api_key, 403 insufficient_scope, 403 ip_not_allowed, 429 rate_limited and 500 internal.
Checkouts
POST /api/v1/checkouts
Create a checkout. Scope checkouts. Header Idempotency-Key required.
| Field | Type | Rules |
|---|---|---|
amount | integer | Required. Centavos, whole pesos (a multiple of 100). ₱100 to ₱50,000 by default, and more than the fee. |
reference | string | Optional, at most 100 characters. Your own id; shown in the dashboard. |
description | string | Optional, at most 500 characters. Shown to the payer. |
collect | array | Optional. Any of name, mobile, email, each once: the page asks the payer for them. |
success_url, cancel_url | string | Optional. Absolute https URLs, at most 2048 characters. |
expires_in_minutes | integer | Optional. 5 to 10080 (7 days); default 60. |
metadata | object | Optional. Up to 20 string keys (1 to 40 characters) with string values (at most 500 characters); returned as sent. |
channel | string | Optional. Start a payment on this channel at once and return its QR: gcash, maya, gotyme, grabpay, shopeepay, banks or qrph (your account's list can differ). |
Response: 201 with the checkout (200 on an idempotent replay). With channel, the checkout also has "qr": {"channel", "emv", "image", "deeplink"}. If a channel error happens after the checkout was made, send the same request with the same Idempotency-Key to get it and another try at the QR.
Errors: 400 idempotency_key_required, 400 invalid_json, 400 invalid_input (including an amount with centavos), 400 amount_required, 400 amount_too_small, 400 amount_too_large, 400 channel_not_offered, 403 account_not_active, 409 idempotency_mismatch, 409 in_progress, 409 too_many_attempts, 409 daily_received_limit, 502 amount_mismatch, 502 no_qr, 503 gateway_unavailable.
GET /api/v1/checkouts
List checkouts, newest first. Scope read.
| Query | Rules |
|---|---|
status | Optional. open, paid or expired. |
limit | Optional. 1 to 100; default 20. |
starting_after | Optional. A checkout id: answers the ones older than it. |
Response: 200, {"items": [checkout, ...], "has_more": false}. Checkouts made by your payment links are listed too (live keys).
Errors: 400 invalid_input (a bad status, limit or starting_after).
GET /api/v1/checkouts/{id}
Read one checkout. Scope read.
Response: 200 with the checkout.
Errors: 404 not_found (no such checkout, or one of the other mode).
POST /api/v1/checkouts/{id}/simulate
Settle a test checkout's payment as paid or failed. Scope checkouts, test keys only. Body: {"result": "paid"} or {"result": "failed"}.
Response: 200 with the checkout after the change. The same webhooks as for a real payment are sent, with "livemode": false.
Errors: 400 invalid_json, 400 invalid_input (a result other than paid or failed), 400 amount_required (a link checkout with no amount yet), 403 test_mode_only (a live key), 404 not_found, 410 checkout_closed (no longer open).
The checkout object
{
"id": "cs_8Q2M4X7RJK1V9TNC3H6PWZ5D",
"object": "checkout",
"livemode": false,
"status": "open",
"amount": 150000,
"amount_display": "₱1,500.00",
"fee": 1500,
"fee_display": "₱15.00",
"net_amount": 148500,
"net_amount_display": "₱1,485.00",
"currency": "PHP",
"reference": "order-1001",
"description": "2 x T-shirt",
"url": "https://quickpayph.com/c/cs_8Q2M4X7RJK1V9TNC3H6PWZ5D",
"expires_at": "2026-11-17T04:04:05Z",
"paid_at": null,
"source": "api",
"created_at": "2026-11-17T03:04:05Z",
"metadata": {"order_id": "1001"},
"payer": {}
}
status:open,paidorexpired.amount,fee,net_amountand their_displaystrings arenulluntil the amount is set (a payment link where the payer enters the amount). The fee is 1% of the amount, ₱5 minimum, andnet_amountisamount − fee.urlis the payment page. It may be on your own checkout domain.payerholds the details asked for withcollect, once the payer entered them.expires_atcan move later once a payer has started paying.
Balance and payout accounts
GET /api/v1/balance
Your wallet. Scope read. A test key always answers zeros.
{"available": 1234500, "available_display": "₱12,345.00",
"pending_withdrawal": 100000, "pending_withdrawal_display": "₱1,000.00"}
available is what you can withdraw; pending_withdrawal is held for withdrawals that are not finished.
GET /api/v1/payout-accounts
Your saved bank and e-wallet accounts, numbers masked. Scope read. They are added and changed only in the dashboard.
Response: 200, {"items": [payout_account, ...]}, each with id, object ("payout_account"), label, bank_id, bank_name, kind (gcash or bank), account_name, account_number_masked, contact_mobile_masked, created_at and updated_at (these two carry fractions of a second, such as 2026-11-10T02:00:00.230879Z).
Withdrawals
POST /api/v1/withdrawals
Send money to a payout account. Scope withdraw. Header Idempotency-Key required.
| Field | Type | Rules |
|---|---|---|
amount | integer | Required. Centavos, whole pesos. ₱115 to ₱50,000 by default. You pay the ₱15 fee: it is taken from this amount. |
payout_account_id | string | Required. A pa_… id from GET /api/v1/payout-accounts. |
Response: 201 with the withdrawal (200 on an idempotent replay).
Errors: 400 idempotency_key_required, 400 invalid_json, 400 invalid_input (no or a zero amount, no payout_account_id), 400 amount_not_whole_pesos, 400 amount_too_small, 400 amount_too_large, 403 account_not_active, 404 payout_account_not_found, 409 idempotency_mismatch, 409 insufficient_balance, 409 monthly_limit_exceeded, 409 daily_limit.
GET /api/v1/withdrawals
List withdrawals, newest first. Scope read. Query: status (pending, processing, paid, failed or rejected), limit (1 to 100, default 20) and starting_after.
Response: 200, {"items": [withdrawal, ...], "has_more": false}.
Errors: 400 invalid_input.
GET /api/v1/withdrawals/limits
Your withdrawal limits now. Scope read.
Response: 200 with min_amount, max_per_tx, max_per_month, used_this_month, left_this_month, fee, available, max_withdrawable, daily_max, daily_used and daily_left, each with a _display string, and automatic, an object with approved, active, inactive_reason (null, "not_approved", "paused" or "needs_2fa"), max and max_display; see Automatic Withdrawals. You pay the withdrawal fee: it is taken from the amount. fee_rate_bp is the account's withdrawal fee rate in basis points, 0 when the account pays the flat fee (fee_rate_display, such as "0.8%", is empty then). The fee for an amount is this share of it, rounded to the nearest peso, but never less than fee. The three daily_ values are null when your account has no daily limit. A test key sees available and max_withdrawable as zero. See the example.
GET /api/v1/withdrawals/{id}
Read one withdrawal. Scope read.
Response: 200 with the withdrawal.
Errors: 404 not_found.
POST /api/v1/withdrawals/{id}/simulate
Finish a test withdrawal as paid or failed. Scope withdraw, test keys only. Body: {"result": "paid"} or {"result": "failed"}.
Response: 200 with the withdrawal after the change.
Sending the result the withdrawal already has changes nothing and answers it again.
Errors: 400 invalid_json, 400 invalid_input, 403 test_mode_only, 404 not_found, 409 invalid_state (already finished with the other result).
The withdrawal object
{
"id": "wd_6M3K9Q2X7V1T8N4C5R0JHPWZ",
"object": "withdrawal",
"livemode": true,
"status": "pending",
"amount": 100000,
"amount_display": "₱1,000.00",
"fee": 1500,
"fee_display": "₱15.00",
"net_amount": 98500,
"net_amount_display": "₱985.00",
"currency": "PHP",
"destination": {"payout_account_id": "pa_2H7W4N9K1Q6X3M8V5T0CRJZP", "bank_id": 27, "bank_name": "GCash (GC)",
"account_name": "Juan dela Cruz", "account_number_masked": "*******1234"},
"payout_reference": null,
"failure_reason": null,
"created_at": "2026-11-17T05:20:02Z",
"paid_at": null,
"updated_at": "2026-11-17T05:20:02Z",
"automatic": false
}
status: pending, processing, paid, failed or rejected (see statuses).
Errors
Every error answers a JSON body with a code and a message:
{"error": "amount_too_small", "message": "The minimum amount is ₱100.00."}
Use error in your code. message is plain English for people and may change.
| Status | error | When |
|---|---|---|
| 400 | invalid_json | The body is not valid JSON. |
| 400 | invalid_input | A field is missing or wrong, including a checkout amount with centavos; message names it. |
| 400 | idempotency_key_required | A create call without an Idempotency-Key of 1 to 255 characters. |
| 400 | amount_required | A checkout without an amount. |
| 400 | amount_too_small, amount_too_large | A checkout or withdrawal amount outside your limits. |
| 400 | amount_not_whole_pesos | A withdrawal amount with centavos. |
| 400 | channel_not_offered | The channel is not offered to your account. |
| 401 | invalid_api_key | No key, or an unknown or revoked one. |
| 403 | insufficient_scope | The key lacks the endpoint's scope. |
| 403 | ip_not_allowed | The caller is not on the key's IP allowlist. |
| 403 | account_not_active | Your account is not active (not approved yet, or frozen). |
| 403 | test_mode_only | simulate with a live key. |
| 404 | not_found | No such object for this key's mode. |
| 404 | payout_account_not_found | The payout_account_id is not one of yours. |
| 409 | idempotency_mismatch | The Idempotency-Key was used with a different body. |
| 409 | insufficient_balance | The withdrawal is more than your available balance. |
| 409 | monthly_limit_exceeded | The withdrawal is over this month's limit. |
| 409 | daily_limit | The withdrawal is over your daily limit (Manila day); message says what is left today. |
| 409 | daily_received_limit | channel: the payment would take your account over its daily limit for payments received. |
| 409 | invalid_state | The withdrawal cannot change from its current status. |
| 409 | in_progress | channel: a payment on that channel is being created for this checkout; try again in a moment. |
| 409 | too_many_attempts | channel: the checkout has had the most payment attempts allowed. |
| 410 | checkout_closed | The checkout is no longer open. |
| 413 | payload_too_large | The body is over 64 KiB (past 6 MiB the answer is request_entity_too_large, and the connection may close before you read it). |
| 415 | unsupported_encoding | The body has a Content-Encoding other than identity; send it uncompressed. |
| 429 | rate_limited | Too many requests for your key; slow down and retry. |
| 500 | internal | Our fault. Retry later with the same Idempotency-Key. |
| 502 | amount_mismatch | channel: the channel's QR was for a different amount, so it is not shown. |
| 502 | no_qr | channel: the channel returned no QR code. |
| 503 | gateway_unavailable | Live payments are unavailable right now; retry later. |
Rate limits
- Each API key may make 120 requests a minute by default. Past that, calls answer
429 rate_limited. Wait a moment and retry; the limit refills continuously. Your account's limit may differ. - The payment page has its own limits, which your API calls never count against: 30 requests a minute per checkout and per payment link, and 20 a minute per payer IP address. Past them the page's requests answer
429withRetry-After: 60, and the payer tries again a moment later.
OpenAPI
openapi.json describes every endpoint above, its scope, parameters, request bodies, responses and errors, in OpenAPI 3.1. Import it into Postman or Insomnia, or generate a client from it. Webhooks are described on the Webhooks page.