For the complete documentation index, see llms.txt. This page is also available as Markdown.

API Integration

Learn how to integrate Trybit via API to automate payment processing.

API integration gives you full control over the payment-acceptance process: automatic invoice creation for each order, automated payouts, retrieving balance and statistics, and payment notifications.

What you need to get started

To start integrating, you need to create a project in your Trybit dashboard and obtain an API key and Shop ID — this data is needed to configure the interaction between your system and the platform, and to authorize requests.

Project API key — issued in the integration settings. All API requests are signed with this key. Full method documentation is on https://docs.trybit.com/, with the reference available at /ru/api-reference-v2/[endpoint].

How creating an invoice via API works

  1. When placing an order, the merchant's side sends a request to create an invoice — with the amount, currency, and additional order data.

  2. In response, the API returns a ready-made payment link — show it to the customer (for example, redirect to it or open it in a separate window).

  3. The customer pays the invoice via this link.

  4. After payment, a POSTBACK notification arrives at the project's Notification URL.

  5. The invoice status can additionally be checked at any time using the API method, by invoice number (INV).

This scenario is suitable when you need to embed payment acceptance into your own order system without necessarily changing your payment interface — the payment itself happens on the Trybit payment page.

Last updated