The Role of Transmissions
In our API, a Transmission is a fundamental concept that helps manage and track data exchanges, particularly for operations that create new resources. Think of it as a record or a message that signifies an event or a piece of data that needs to be processed or acknowledged. While you interact with our API using standard RESTful principles (e.g., sending aPOST request to create an invoice), behind the scenes, these actions are often translated into an event-driven flow. Transmissions are a key part of this, providing a way to decouple the initial request from its subsequent processing and to ensure reliability.
Bridging REST and Event-Driven Architecture: Even though you make a
synchronous REST API call, the creation of a resource might trigger
asynchronous processes in our backend. Transmissions allow your system and
ours to keep track of these processes.
Automatic Creation of Transmissions
Whenever you successfully send a request to create a new entity in our system, such as:- Creating a Catalogue Item (Create a new catalogue item)
- Creating a Delivery Note (Create a new delivery note)
- Creating an Invoice (Create a new invoice)
- Creating an Order (Create a new order)
Processing Transmissions (For Receiving Systems)
If your system is on the receiving end (e.g., you need to be notified of new orders or invoices created by a partner via our platform), you will interact with the transmissions system to retrieve and process these data events.1
Retrieving Pending Transmissions
Your system can poll for new, unprocessed transmissions by making a
GET request to the /transmissions endpoint.See Get all pending transmissions for deatils.2
Processing the Transmission
Once you retrieve a transmission, your system should process its content. This might involve:
- Importing the data into your local database.
- Triggering internal workflows.
- Validating the received information.
3
Updating Transmission Status
After your system has successfully processed the data from a transmission, it is crucial to notify our API that this specific transmission has been handled. This prevents the same data from being processed multiple times and allows for proper tracking of data flow.You achieve this by making a
PUT request to the /transmissions/status/{uuid} endpoint, where {uuid} is the unique identifier of the transmission you have just processed.See Update the status of a transmission for details.