Skip to content

A-App for developers

Your server sends events about what users do. A-App counts progress and badges against your scenarios and tells you when a user has earned a discount.
  1. Event. Your server sends POST /v1/events when a user does something: pays for an order, publishes a listing. We answer 202 right away and count progress in the background, usually within seconds.
  2. Progress. The engine checks the event against the scenarios we set up for your site and updates the user’s progress, levels and badges.
  3. Webhook. When something important changes, for example a reward becomes available, we send a webhook to your URL. A webhook only tells you that something changed; you fetch the data from the API.
  4. Coupon. On the reward.available webhook your site creates a coupon itself. At checkout you reserve the reward, and after payment you redeem it.

The API is always the source of truth: a webhook may arrive twice or out of order, while a GET returns the current state.

Quickstart

A test key, your first signed event and a user’s status in 15 minutes. Start

Webhooks

How to receive a webhook, verify its signature and never create a coupon twice. Read

API reference

Every operation, field, error and webhook. Built from the same contract the server is tested against. Open

Postman

A ready-made request collection for the test environment. Download

Environment URL Keys
Test (staging) https://test-api.dnk.az aapp_test_… and aapp_live_… for trying things out
Production coming before the pilot issued when you connect

The key sets the mode: test and live have their own keys, secrets and webhook URLs, and their data never mix.