Enable or disable the whole allow-list
curl -X PUT "https://test-api.kashier.io/v2/ip-address/toggle-all" \ -H "Content-Type: application/json" \ -d '{ "isActive": false }'{}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 entries, which means every IP is allowed again.
Requires both the edit-IP and create-IP permissions 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.
Response Body
application/json
application/json
application/json
application/json
application/json
Add an IP to the allow-list POST
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 I…
Get one allow-list entry GET
Returns a single IP allow-list entry. Requires the view-IP permission on your user's role.