Overview

What is a callback in the API context?

A callback in the context of APIs (Application Programming Interfaces) is a mechanism that allows a server to send data or notifications back to a client after a certain event has occurred, typically in response to a previous request. Callbacks are often used to provide real-time updates or results from asynchronous processes.

In this section, you will learn how to subscribe to receive callbacks for each applicable context in the BaaSiC API, as well as how to manage your subscription and handle the notifications.

Understading a Webhook

A webhook is a way for one system to send real-time data or notifications to another system when a specific event occurs. Instead of the client repeatedly asking for updates, the server automatically "pushes" the information to the client via an HTTP request. Webhooks are commonly used in APIs to deliver updates or responses, such as payment confirmations or status changes, to a predefined URL.

You can read more about Webhooks here

Understanding a Swap Order

In the context of Transfero, a swap order refers to a series of internal processes initiated by the client. To summarize this process, we create trades between fiat currency and cryptocurrency, as well as between cryptocurrency and fiat currency, based on necessity. During this process, we generate various orders, such as deposit orders and payments, which can be categorized as "pay-ins" and "pay-outs." If you subscribe to receive notifications for swap orders, you will be informed of every step we undertake.