KashierDevelopersKashier Developers
Dashboard API

Authentication

Authenticate with your secret key and keep keys secure

Authenticate your API calls by including your secret key in the Authorization header of every request you make. You can create and manage your secret keys from the Dashboard > Developers > Integrations > Secret Keys. Each key belongs to your merchant account and has its own permissions, IP allow-list and expiry. See Secret keys.

Generally, we provide both payment API keys and secret keys. The secret key is used to authenticate your API calls by including it in the Authorization header of every request. The payment API key is used to generate the order hash for payment authentication. Create a separate secret key for each integration, with only the permissions it needs.

Your API keys carry many privileges, so keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub or client-side code.

Secure your secret key

Do not commit your secret keys to Git or use them in client-side code.

Each account is provided with separate keys for testing and live transactions. All API requests exist in either test or live mode, and one mode cannot interact with objects in the other.

All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.

Authorization headers should follow this format: Authorization:SECRET_KEY.

Send the raw key, with no Bearer prefix. New keys start with ksk_test_ or ksk_live_. Keys created before merchant-owned keys keep their original format.

Sample Authorization header:

Authorization: ksk_test_YOUR_SECRET_KEY

Requests that are not authenticated or not permitted are rejected with 401 or 403. See Error responses for troubleshooting.

Select the acting merchant

A secret key belongs to exactly one merchant, so you do not need to tell Kashier which MID a key call acts on. If you send the authmerchantid header with a secret key, it must name the key's own MID.

IP allow-list

Each secret key has its own IP allow-list, set when you create or edit the key. A call from an address that is not on the key's list is rejected.

Key points:

  • Use exact public IPv4 addresses. CIDR ranges, IPv6 and private addresses are not accepted.
  • A key that holds Transfers or Beneficiaries must list at least one IP.
  • Behind a proxy or NAT, allow-list the egress IP your traffic actually leaves from. Update each key's list before you migrate servers or change egress IPs, otherwise live calls start failing.

Request rejected unexpectedly

Check the key's IP allow-list, its permissions and its mode before you roll it.

Keeping your keys safe

Your keys can be used to perform actions on behalf of your account, such as creating charges or issuing refunds. Treat your keys like any other password — grant access only to those who need it. Ensure they are excluded from version control systems. Use a password manager or secrets management service to manage access securely.

Compromised keys

If a secret key is compromised, roll it from the Kashier dashboard and choose Stop the current key immediately, then deploy the new value. If the integration is no longer used, revoke the key instead. When you roll a key on a schedule rather than after a leak, keep the old value working for 24 hours so you can deploy without downtime.

If a payment API key is compromised, delete it and generate a new one. Update both the dashboard and your system at the same time to avoid downtime, as Kashier invalidates a deleted key immediately.

Teams and user roles

Give team members controlled access to your Kashier account. You can invite other team members to access your account. To protect sensitive information or restrict their actions, user roles define their permissions. Manage team members and user roles on your account's team member settings page > manage team. Add team members individually using their email addresses.

Steps to manage your team members' user roles

  • Log in to your Kashier Dashboard and navigate to Settings.
  • Select "Manage Team," then choose the user you want to edit. Click the three dots in the top-right corner and select "Edit User."

Manage team

  • Choose a default or custom role by clicking the menu selector. This displays all available roles.
  • Click "Save" to update the team member's permissions.

Change user role

About custom user roles

Custom user roles let you control exactly what team members can see and do on the Kashier Dashboard. If default roles don't meet your needs, you can create a custom role with specific permissions.

Steps to create custom user roles on the Kashier Dashboard

  • Navigate to the "Manage Team" section on the Settings page, then click the "Roles" tab.

Create role

  • Click "Create Role" to open the custom role creation form.

Create role form

  • Fill out the form and click "Save Changes" to create your custom role.

Secret key permissions on a role

The Integrations section of a role has five secret key permissions: View, Create, Edit, Roll and Revoke secret keys. Every action except View also needs View. The Owner and the Administrator role see every key on the account. Other team members see only the keys they created.

A team member can give a key only the permissions their own role holds. See Secret keys.

On this page