Create sequence diagrams with simple online tool

Swimlanes.io is a free webapp for making sequence diagrams. You simply edit the text on the left and the diagram is updated in real time. You can download your sequence diagrams as images or distribute with a link.

Title: Brite Export/Reconciliation Process (API) _: **1. Initiate export of transactions to CSV file** note_: This process should run after 00:00 UTC to capture the right statuses of every transaction and it should be limited to the settled transactions of the timeframe of the previous day. Merchant -> Brite: Initiate export `POST /api/transaction.csv_export` note_: ``` POST /api/transaction.csv_export { "settled_from": 1721772000, "settled_to": 1721858399, "states": ["6"] } ``` Brite -> Merchant: Respond with the `id` of the newly created bank account note_: ``` { "task_id": "du732ssFib25lYS0xNzYyMTNyFAsSB1Nlc3Npb24YgICAtevC9woM" } ``` _: **2. Check for the status of the export / retrieve CSV file** Merchant -> Brite: Check status `POST /api/export_task.get` note_: Parameter is the prefiously received `task_id` ``` POST /api/transaction.csv_export { "id": "du732ssFib25lYS0xNzYyMTNyFAsSB1Nlc3Npb24YgICAtevC9woM" } ``` Brite -> Merchant: Respond with the status and depending on the status also with the URL of the file note_: ``` { "state": 4, "artifact_url": "https://...exports...csv", "id": "65b7483e-0be2-457f-9fd0-83e3e2e15155" } ``` if: Status `state = 4` (`COMPLETED`) Merchant -> Brite: Download the CSV from the `artifact_url` else: Status `state = 1` (`CREATED`) / `state = 2` (`QUEUED`) / `state = 3` (`STARTED`) note_: Export task isn't finished yet. Try to fetch task in 5 minutes again. Merchant -> Merchant: Wait 5 minutes else: Status `state = 5` (`FAILED`) Merchant -> Merchant: Handle error end