KashierDevelopersKashier Developers
API reference and playgroundCredentials and access

Add an IP to the allow-list

curl -X POST "https://test-api.kashier.io/v2/ip-address" \  -H "Content-Type: application/json" \  -d '{    "name": "Production API server",    "ipAddress": "203.0.113.24",    "userId": "507f1f77bcf86cd799439012"  }'
{}

Adds one address to the allow-list.

Adding the first entry switches the allow-list on. Until then every IP is allowed; the moment one entry exists, every other IP is refused with 403 Unauthorized IP address. So add all of your callers before you rely on the list, and make sure the machine you are adding from is one of them.

Requires the create-IP permission on your user's role.

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.

An entry on the secret-key IP allow-list.

Response Body

application/json

application/json

application/json

application/json

application/json

POST
/v2/ip-address