Skip to Content
Version 1.1 · A Coming soon badge is a backward-compatible change still rolling out.
Environments

Environments

There are two environments. These are the only base URLs.

EnvironmentBase URL
Sandboxhttps://api-sandbox.inspay.dev/merchant
Productionhttps://api.inspay.dev/merchant

Append the path to the base URL. A deposit in sandbox is POST https://api-sandbox.inspay.dev/merchant/deposit.

Sandbox keys do not work in production. Each environment has its own API key and secret key.

IP allow list

Your server IPs must be allow-listed for that environment. A request from any other IP returns 403 with {"message": "Invalid IP address."}.

Allow-list the IP that opens the connection to InsPay, per environment, before you switch traffic.

Request shape

  • Method: POST
  • Header: Content-Type: application/json
  • Header: x-api-key
  • Header: x-signature
  • Body: JSON, including timestamp and nonce

Field names in requests and responses are camelCase. Callbacks use snake_case. The balance response uses snake_case keys.

The payer’s payment page, returned as address on a deposit, is on https://pay.inspay.dev. That host is not an API base URL.

Last updated on