Docs Log in

Developers

API Keys

Your server sends an API key with every API request. A key belongs to your account, works in one mode (test or live) and can do only what its permissions allow.

Create a key

  1. In the dashboard, open Developers. The API Keys tab lists your keys.
  2. Press Create key.
  3. Give it a Name you will recognise, such as “Online shop”.
  4. Choose the Mode: Test (no real money) while you build, Live when you go live. Make one of each.
  5. Choose the Permissions it needs, and no more (see below).
  6. Optionally list the Allowed IP addresses of your servers, separated by commas.
  7. Press Create.
The Developers page, API keys tab: the list of keys and the Create key form with name, mode, permissions and allowed IP addresses
Developers → API keys → Create key.

The key is shown once

QuickPay shows the full key once, right after you create it. Copy it into your server's configuration, then press I saved it. QuickPay keeps only a hash of it, so nobody, not even QuickPay Support, can show it to you again. If you lose it, create a new key and revoke the old one.

The Copy your API key dialog showing a new test key once, with a Copy button and I saved it
The new key, shown once.

A test key starts with qp_test_ and a live key with qp_live_. The list shows only the first characters of each key, its permissions and when it was last used.

Permissions

PermissionScopeAllows
ReadreadRead checkouts, your balance, payout accounts, withdrawals and withdrawal limits.
CheckoutscheckoutsCreate checkouts, and simulate test payments.
WithdrawwithdrawRequest withdrawals to your saved payout accounts, and simulate test withdrawals.

A website that only takes payments needs Read and Checkouts. Give Withdraw only to a system that must move money out. A call without the permission it needs answers 403 insufficient_scope.

Use the key

Send the key in the Authorization header of every request:

curl https://quickpayph.com/api/v1/balance \
  -H "Authorization: Bearer qp_test_…"

A missing, unknown or revoked key answers 401 invalid_api_key. A test key only sees test objects and a live key only live ones: each answers 404 not_found for an object of the other mode.

Keep keys on your server

Revoke a key

In Developers → API keys, press Revoke next to the key and confirm. Anything using it stops working at once, and this cannot be undone. Revoke a key when you stop using it, when someone who had it leaves, or as soon as you think it leaked. To change keys without downtime, create the new key, deploy it, then revoke the old one.