chargeback-docs

πŸ“‹ Chargeback System Documentation

Status Version Documentation

πŸ“š Complete documentation for APIs and notifications of the chargeback management system

🌐 Language Versions

🎯 Overview

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

File Ingestion

πŸ“ Documentation Structure

πŸ”„ 1. Enrichment (Data Enrichment)

Data Enrichment

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

πŸ“’ 2. Notifications (System Notifications)

System Notifications

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

πŸ€– 3. AI (Artificial Intelligence)

AI Recommendation

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

πŸ“‹ Available Communication Types

πŸ”„ Data Enrichment (Events ↔ Responses)

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

πŸ“’ Unidirectional Notifications (Events)

Type We Send (Event) Purpose Documentation
status Status update Inform status changes STATUS.md
cycle Cycle change Inform cycle alterations CYCLE.md

πŸ”§ Integration

πŸ“€πŸ“₯ Communication Flow

The system uses two types of communication:

πŸ“€ Events - Sent by System

Notifications that we send to the client when we need additional data:

πŸ“₯ Responses - Received via API

Complete data that we receive from the client via API to update our system:

Base Event Structure

All sent events follow a common base structure:

type BaseEvent = {
    event: string;
    payload: {
        contractDisputeId: string;
        // ... specific identifiers per event type
    };
}

Base Response Structure

Responses received via API contain complete data:

type BaseResponse = {
    // Complete and detailed data of the requested object
    // Structure varies according to data type
}

Main Identifiers

βš™οΈ Minimum Requirements

To run the chargeback system, ensure your environment meets the following minimum requirements:

πŸ–₯️ Hardware Requirements

πŸ—„οΈ Database Requirements

☸️ Kubernetes Requirements

πŸ“Š Reports and BI Requirements

πŸ”’ Security Requirements

πŸ“ž Support

For questions or suggestions about this documentation, contact the development team.


**πŸ“„ Documentation maintained by Tupi Fintech team** *Last update: February 2026*