Settings

Create an API key

Let your point of sale or website talk to your loyalty cards, with a key you can revoke at any time.

About 3 minutes5 steps

You'll need

A business owner account, on a plan with API access (or with the API access add-on switched on by the Q Wallet team). Staff accounts cannot manage keys.

  1. 1

    Open Settings, then API keys

    Sign in to your business account and select Settings in the menu on the left, then open the API keys card. If you see "API access is not included in your plan", upgrade your plan or ask the Q Wallet team to switch on API access for your business.

  2. 2

    Create a key and choose its permissions

    Select Create key. Give it a name that says where it will be used, such as POS front desk, so you can tell your keys apart later. Then tick only the permissions that system needs: Read cards, Update card progress, Issue new cards, Send notifications, Read locations and Read templates. Send notifications is off by default. Select Create key again to confirm.

  3. 3

    Copy the secret now

    The new key (it starts with qwk_) is shown once. Select Copy and paste it straight into where it will be kept. Once you close the window it cannot be shown again; if you lose it, create a new key and revoke the old one.

  4. 4

    Give it to your developer safely

    Send the key through a password manager or another private channel, not by email, chat or a shared document. Tell them to store it on a server only, never in a website or mobile app, and point them to the API reference at qwallet.qa/docs/api.

  5. 5

    Revoke it when you no longer need it

    Back on the API keys page, select Revoke next to the key and confirm. Any system still using it stops working within a minute. Revoke a key the day someone who knew it leaves, or if you think it has leaked, then create a new one. You can have up to 5 active keys, so give each system its own.

If you see this message

API access is not included in your plan
Upgrade your plan, or ask the Q Wallet team to switch on the API access add-on for your business. Keys you already made start working again when access returns.
This business already has 5 active API keys
Revoke a key you no longer use, then create the new one.
Name is required / Name must be 100 characters or fewer
Give the key a short name on the Create API key form.
Choose at least one permission
Tick at least one permission before creating the key.
Insufficient permissions
Only the business owner can create and revoke keys. Sign in with the owner account.
API key not found (when revoking)
The key was already revoked. Refresh the page to see the current list.