Docs Log in

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.

Download openapi.json

Basics

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.

FieldTypeRules
amountintegerRequired. Centavos, whole pesos (a multiple of 100). ₱100 to ₱50,000 by default, and more than the fee.
referencestringOptional, at most 100 characters. Your own id; shown in the dashboard.
descriptionstringOptional, at most 500 characters. Shown to the payer.
collectarrayOptional. Any of name, mobile, email, each once: the page asks the payer for them.
success_url, cancel_urlstringOptional. Absolute https URLs, at most 2048 characters.
expires_in_minutesintegerOptional. 5 to 10080 (7 days); default 60.
metadataobjectOptional. Up to 20 string keys (1 to 40 characters) with string values (at most 500 characters); returned as sent.
channelstringOptional. 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.

QueryRules
statusOptional. open, paid or expired.
limitOptional. 1 to 100; default 20.
starting_afterOptional. 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, paid or expired.
  • amount, fee, net_amount and their _display strings are null until the amount is set (a payment link where the payer enters the amount). The fee is 1% of the amount, ₱5 minimum, and net_amount is amount − fee.
  • url is the payment page. It may be on your own checkout domain.
  • payer holds the details asked for with collect, once the payer entered them.
  • expires_at can 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.

FieldTypeRules
amountintegerRequired. Centavos, whole pesos. ₱115 to ₱50,000 by default. You pay the ₱15 fee: it is taken from this amount.
payout_account_idstringRequired. 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.

StatuserrorWhen
400invalid_jsonThe body is not valid JSON.
400invalid_inputA field is missing or wrong, including a checkout amount with centavos; message names it.
400idempotency_key_requiredA create call without an Idempotency-Key of 1 to 255 characters.
400amount_requiredA checkout without an amount.
400amount_too_small, amount_too_largeA checkout or withdrawal amount outside your limits.
400amount_not_whole_pesosA withdrawal amount with centavos.
400channel_not_offeredThe channel is not offered to your account.
401invalid_api_keyNo key, or an unknown or revoked one.
403insufficient_scopeThe key lacks the endpoint's scope.
403ip_not_allowedThe caller is not on the key's IP allowlist.
403account_not_activeYour account is not active (not approved yet, or frozen).
403test_mode_onlysimulate with a live key.
404not_foundNo such object for this key's mode.
404payout_account_not_foundThe payout_account_id is not one of yours.
409idempotency_mismatchThe Idempotency-Key was used with a different body.
409insufficient_balanceThe withdrawal is more than your available balance.
409monthly_limit_exceededThe withdrawal is over this month's limit.
409daily_limitThe withdrawal is over your daily limit (Manila day); message says what is left today.
409daily_received_limitchannel: the payment would take your account over its daily limit for payments received.
409invalid_stateThe withdrawal cannot change from its current status.
409in_progresschannel: a payment on that channel is being created for this checkout; try again in a moment.
409too_many_attemptschannel: the checkout has had the most payment attempts allowed.
410checkout_closedThe checkout is no longer open.
413payload_too_largeThe body is over 64 KiB (past 6 MiB the answer is request_entity_too_large, and the connection may close before you read it).
415unsupported_encodingThe body has a Content-Encoding other than identity; send it uncompressed.
429rate_limitedToo many requests for your key; slow down and retry.
500internalOur fault. Retry later with the same Idempotency-Key.
502amount_mismatchchannel: the channel's QR was for a different amount, so it is not shown.
502no_qrchannel: the channel returned no QR code.
503gateway_unavailableLive payments are unavailable right now; retry later.

Rate limits

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.