• GuideBreaking change in 2.0.0: the tax ID is required
  • GuideAccess
  • GuideKey scopes
  • GuideLocking a key to your network addresses
  • GuideErrors
  • GuideRate limits
  • GuideSafe retries (Idempotency-Key)
  • GuidePages
  • GuideWebhooks
  • GuideCheck the signature
  • GuideA receiver to start from
  • GuideSandbox
  • RecipeYour first call in 5 minutesMake a sandbox key and list your merchants.
  • RecipeStart a review and wait for review.readyStart a website review, get told when it is done, read the findings and download the report.
  • RecipeVerify webhook signaturesProve a delivery came from Kvali, answer fast and handle retries once.
  • RecipeSend a merchant's documentsUpload a registration certificate or bank letter in two steps.
  • RecipeMonitoring: checks, changes, alerts, violationsLearn what monitoring found about your live merchants, without missing or repeating a row.
  • RecipeRetries, idempotency, pages and rate limitsA small client that retries safely, pages through lists and stays under the limit.
  • RecipeLock a key to your network addressesMake a stolen key useless outside your own network.
  • RecipeFrom sandbox to liveThe checks to pass in the sandbox, then the switch to production keys.

↑ ↓ to move · Enter to open · Esc to close

From sandbox to live

The checks to pass in the sandbox, then the switch to production keys.

30 minScope: read

What you get

  • A go-live checklist your team can tick.
  • Production keys and a production webhook secret, separate from the sandbox ones.
  • A first production call and a way to watch deliveries.
  1. Pass the checks in the sandbox

    Before going live, each of these works in the sandbox: GET /merchants?limit=1 answers 200 · every POST and PATCH sends an Idempotency-Key · creating a merchant without registry_id answers 422 invalid and creating the same merchant twice answers 409 exists ·a review started, review.ready received with its signature checked, GET /reviews/{id} read · your receiver accepts every signed sample and refuses a changed byte · it ignores a repeated delivery id (press Send a test twice) · it handles review.failed · on 429 it waits Retry-After seconds · it accepts alert kinds and reason codes it doesn't know yet.

  2. Make production keys

    Switch to your real organisation in Kvali and create new keys there: sandbox keys never touch your real merchants. Add your production webhook endpoint and copy its new secret. Store both in your secret store under new names.

  3. Switch your settings, not your code

    Your code reads the key, the secret and the address from its settings, so going live is a change of settings.

    Code
    # production settings (your secret store)
    KVALI_KEY="kv_live_…"              # a key of your real organisation
    KVALI_WEBHOOK_SECRET="whsec_…"     # the production endpoint's secret
  4. Make the first production call

    Read one merchant with the production key. Then let your back office tell Kvali when a merchant goes live: PATCH /merchants/{id} with status: live starts its daily checks.

    Code
    curl -X PATCH "https://aikvali.com/api/v1/merchants/3f0c2a52-6a1e-4c1b-9d55-2f7f5b1e9a10" \
      -H "Authorization: Bearer $KVALI_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{"status":"live"}'
  5. Watch the first deliveries

    For the first days, look at what your receiver answered. GET /webhooks/deliveries?status=failed should stay empty.

    Code
    curl "https://aikvali.com/api/v1/webhooks/deliveries?status=failed&limit=25" \
      -H "Authorization: Bearer $KVALI_KEY"