> For the complete documentation index, see [llms.txt](https://docs.digit.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digit.org/public-finance/technology/architecture/low-level-design/digit-exchange.md).

# 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
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 dynamically by asking a question.

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

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
