# DIGIT Exchange

## Overview

The DIGIT Exchange Service is a robust data interchange platform designed to facilitate the seamless and secure exchange of digital information between two endpoints. Built with a fixed schema for headers and dynamic messaging capabilities, this service ensures reliable communication while prioritizing data integrity and confidentiality.

### Dependencies

DIGIT-exchange can implement any service if it has the same request structure as the program.

* [Program Service](/public-finance/technology/architecture/low-level-design/program-service.md)

## API Specifications

**Base Path:** /digit-exchange/

### API Contract Link

API spec [YAML is here.](https://raw.githubusercontent.com/egovernments/DIGIT-Specs/refs/heads/ifix-v2.2/Common%20Services/digit-exchange.yaml) Click below to view it in Swagger Editor.

{% embed url="<https://editor-next.swagger.io/?url=https://raw.githubusercontent.com/egovernments/DIGIT-Specs/refs/heads/ifix-v2.2/Common+Services/digit-exchange.yaml>" %}

### APIs

{% openapi src="<https://raw.githubusercontent.com/egovernments/DIGIT-Specs/ifix-v2.2/Common%20Services/digit-exchange.yaml>" path="/exchange/EXCHANGE\_TYPE" method="post" %}
<https://raw.githubusercontent.com/egovernments/DIGIT-Specs/ifix-v2.2/Common%20Services/digit-exchange.yaml>
{% endopenapi %}

## Exchange Flow

<figure><img src="/files/X3Ae6HKsZpb7EGRMrcq4" alt=""><figcaption></figcaption></figure>

## Data Model&#x20;

### DB Schema Diagram

<div align="left"><figure><img src="/files/ZpcgAfTjnlY01SrlwSKz" alt=""><figcaption></figcaption></figure></div>

### Web Sequence Diagrams

#### Sequence of exchange between two environments

<figure><img src="/files/I0SKupxhifeESb54vNdS" alt=""><figcaption></figcaption></figure>

#### Exchange Service example of an exchange

<figure><img src="/files/sUEjoTAwAXOdMR5Bzksl" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.digit.org/public-finance/technology/architecture/low-level-design/digit-exchange.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
