π Complete documentation for APIs and notifications of the chargeback management system
This repository contains the complete technical documentation of the chargeback system, including API specifications, notification formats, and data flows for integration with external systems.


Note: The highlighted area represents components that must be developed by the client. This includes implementing the logic to retrieve internal data and sending the responses to our system during the enrichment flow.
Documentation of data enrichment flow between system and client:
| File | Description | Data Flow |
|---|---|---|
1.TRANSACTION.md |
π³ Transaction Data π€ TransactionEvent: Sent to clientπ₯ TransactionResponse: Received via API |
Event β Client Response β Client |
2.MERCHANT.md |
πͺ Merchant Data π€ MerchantEvent: Sent to clientπ₯ MerchantResponse: Received via API |
Event β Client Response β Client |

Documentation of status and lifecycle notifications for chargebacks:
| File | Description | Event Type |
|---|---|---|
3.STATUS.md |
π Status Notifications - Chargeback process status updates | status |
4.CYCLE.md |
π Cycle Notifications - Cycle changes (chargeback, pre-arbitration, arbitration) | cycle |

Documentation of AI agent integration for chargeback recommendations:
| File | Description | Data Type |
|---|---|---|
5.AI.md |
π§ AI Agent Data - Input data sent to the chargeback recommendation AI agent | Input API |
| Type | We Send (Event) | We Receive (Response) | Documentation |
|---|---|---|---|
transaction |
Request transaction data | Complete transaction data | TRANSACTION.md |
merchant |
Request merchant data | Complete merchant data | MERCHANT.md |
| Type | We Send (Event) | Purpose | Documentation |
|---|---|---|---|
status |
Status update | Inform status changes | STATUS.md |
cycle |
Cycle change | Inform cycle alterations | CYCLE.md |
The system uses two types of communication:
Notifications that we send to the client when we need additional data:
Complete data that we receive from the client via API to update our system:
All sent events follow a common base structure:
type BaseEvent = {
event: string;
payload: {
contractDisputeId: string;
// ... specific identifiers per event type
};
}
Responses received via API contain complete data:
type BaseResponse = {
// Complete and detailed data of the requested object
// Structure varies according to data type
}
contractDisputeId: Unique identifier of the dispute contracttransactionIdentifier: Transaction identifieracquirerReferenceNumber: Acquirer reference numberhelpdeskCaseIdentifier: Helpdesk case identifierTo run the chargeback system, ensure your environment meets the following minimum requirements:
For questions or suggestions about this documentation, contact the development team.