Overview

High-level overview of how to start working with the AzothPay payment flow.

Flow

  1. Register your app and get an API key

    • Go to Telegram and open @azothpay_bot.

    • Register your application through the bot.

    • Receive your API key.

  2. Create an invoice

    • Use the API endpoint: POST /api/invoice

    • Pass the required parameters (recipient, rate, period).

    • The API will return an invoiceID.

  3. Redirect the user to the payment page

    • Once you have the invoiceID, redirect your customer to:

      https://invoice.azothpay.com?id={invoiceID}
    • The customer will see the invoice and complete the payment.


Summary

  • All integrations start by registering your app via the Telegram bot @azothpay_bot.

  • The API key is required for authentication.

  • You create invoices through the API, then use the returned invoice ID to redirect users to the hosted payment page.

This flow ensures a simple, secure, and user-friendly way to accept stablecoin payments with AzothPay.

Last updated