> For the complete documentation index, see [llms.txt](https://support.trybit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.trybit.com/es/integration/api.md). Agents can also search and read this documentation through its [MCP server](https://support.trybit.com/~gitbook/mcp).

# Integración por API

Aprende a integrar Trybit mediante API para automatizar el procesamiento de pagos.

**Integración de API** te da control total sobre el proceso de aceptación de pagos: creación automática de facturas para cada pedido, pagos automatizados, obtención del saldo y estadísticas, y notificaciones de pago.

### Lo que necesitas para empezar

Para comenzar la integración, necesitas crear un proyecto en tu panel de control de Trybit y obtener una clave API y un ID de tienda — estos datos se necesitan para configurar la interacción entre tu sistema y la plataforma, y para autorizar las solicitudes.

Clave API del proyecto — se emite en la configuración de integración. Todas las solicitudes de API se firman con esta clave. La documentación completa de los métodos está en <https://docs.trybit.com/>, y la referencia está disponible en `/api-reference-v2/[endpoint]`.

<figure><img src="https://546573016-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhlibkdeN79Y0EFrnLB1c%2Fuploads%2FpQZOX0ARJEcm18e4c3hV%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202026-10-15%20%D0%B2%2014.11.38.png?alt=media&amp;token=d4da5a83-a894-439c-ac10-5847a0d5d295" alt=""><figcaption></figcaption></figure>

### Cómo funciona la creación de una factura mediante API

1. Al realizar un pedido, el lado del comerciante envía una solicitud para crear una factura — con el importe, la moneda y datos adicionales del pedido.
2. Como respuesta, la API devuelve un enlace de pago listo para usar — muéstraselo al cliente (por ejemplo, redirígelo a él o ábrelo en una ventana separada).
3. El cliente paga la factura a través de este enlace.
4. Después del pago, una [POSTBACK](https://support.trybit.com/es/integration/postback.md) notificación llega a la URL de notificaciones del proyecto.
5. El estado de la factura también puede comprobarse en cualquier momento mediante el método de API, por número de factura (INV).

Este escenario es adecuado cuando necesitas integrar la aceptación de pagos en tu propio sistema de pedidos sin necesariamente cambiar tu interfaz de pago: el pago en sí se realiza en la página de pago de Trybit.

{% hint style="success" %}
Si tiene alguna pregunta o necesita ayuda, puede contactar con nuestro soporte mediante el chat en el sitio web y en su cuenta personal, así como comunicarse con nosotros en Telegram. Los datos de contacto del soporte figuran [en nuestro sitio web](https://trybit.com/support).
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://support.trybit.com/es/integration/api.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
