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 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
List the IP allow-list GET
Returns the IP addresses allowed to call Kashier with your secret key. Read this first when a working integration suddenly returns 403. Every secret-key call is checked against this list, and an IP…
Enable or disable the whole allow-list PUT
Turns every entry on the allow-list active or inactive in one call — the escape hatch for when the list has locked you out. Sending isActive: false deactivates every entry, which leaves no active e…