KashierDevelopersKashier Developers
API reference and playgroundCredentials and access

Validate a set of credentials

curl -X POST "https://test-api.kashier.io/v2/merchants/validate-credentials" \  -H "Content-Type: application/json" \  -d '{    "secretKeys": [      {        "mode": "test",        "key": "<your test secret key>"      }    ],    "apiKeys": [      {        "mode": "test",        "key": "<your test payment api key>"      }    ]  }'
{}

Checks whether the secret keys and Payment API keys you hold are the right ones for the modes you have filed them under. Useful in a deployment check, or when a partner platform stores merchant credentials on the merchant's behalf and wants to catch a test key pasted into a live slot before a payment fails.

Send whichever lists you want checked; each entry names the mode you believe the key belongs to and the key itself.

Authorization

secretKey
Authorization<token>

Merchant secret key used to identify the merchant, obtained from Kashier's dashboard. Pass the raw secret key value in the Authorization header (NOT a "Bearer" token).

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

POST
/v2/merchants/validate-credentials