Skip to content

Test the validation URL ​

Before starting your application's review or triggering the first real installation, make sure your validation URL is answering Appmax's health check correctly. This tool fires a synthetic POST — with the exact payload Appmax uses on POST /app/client/generate — and runs every assertion of the contract.

Haven't implemented it yet?

The contract and the Go, Node.js and PHP examples are in Implement the validation URL. The health check's role in the flow is in App installation.

A POST will be sent with the same payload Appmax uses during POST /app/client/generate.

What is validated ​

The tool fires two requests in sequence with distinct external_key values. That allows comparing the external_id returned in each one and catching handlers that respond with a hardcoded UUID — a common bug that silently breaks new installations.

AssertionCriterion
URL reachableThe URL responds within 8 seconds without DNS, connection-refused or TLS errors.
HTTP 200The tool requires exactly 200, which is what your handler should respond. When another code appears, the detail tries to classify the cause (anti-bot WAF, auth, 5xx).
Returns external_id as valid UUIDBody parses as JSON and the external_id field is present as a string in the xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (8-4-4-4-12 hex) format.
external_id changes per request (not hardcoded)The second call (with a different external_key) returns a distinct UUID. If they match, your handler is hardcoded — each installation needs a unique external_id.

Why these assertions?

What Appmax needs is a success response with a UUID external_id that is unique per installation — the tool is stricter and requires exactly 200. The tool runs the scenario twice and shows both UUIDs side by side so you can compare.

The payload sent ​

The tool fires the same shape Appmax uses for the real health check:

json
{
  "app_id": "DEMO_APP_ID",
  "client_id": "DEMO_CLIENT_ID",
  "client_secret": "DEMO_CLIENT_SECRET",
  "client_key": "DEMO_EXTERNAL_KEY",
  "external_key": "DEMO_EXTERNAL_KEY"
}

The values are obvious placeholders so they show up in your server log as a test call. In production, Appmax sends the real merchant client_id/client_secret — your handler needs to accept any payload in this shape.

What your handler should respond, and how to store the external_id, is in Implement the validation URL.

Limitations of this tool ​

  • The external_id values generated here belong to no installation: this tool fires synthetic calls, outside the POST /app/client/generate flow. If your handler stores a record per call, discard the two UUIDs it generated during the test. Using one of them in the checkout's init() returns 404 Merchant not found, which arrives in onError as TOKENIZATION_FAILED / status: 404 — with no hint that the cause was a test id.
  • No calls to private IPs: the tool refuses URLs that resolve to localhost, 10.x, 192.168.x, 172.16-31.x or link-local — use ngrok / beeceptor to expose a local endpoint.
  • No following redirects: a 302 is treated as failure. The real health check follows up to 5 redirects, but register the final URL so you don't depend on it.
  • 8s timeout: if your URL doesn't respond within that window, you get Timeout (Appmax's production timeout is larger, but delays > 5s are considered an operational issue).
  • HTTPS or HTTP: both accepted here, but in production Appmax only calls HTTPS URLs — refuse HTTP on your final domain.

When to use ​

  • Before starting the app's review in the panel.
  • After updating the health-check handler.
  • When an installation fails with a 400 on POST /app/client/generate — the validation URL didn't answer as expected. See Troubleshooting.