> ## Documentation Index
> Fetch the complete documentation index at: https://docs-api.dexchange.sn/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

Welcome to the Dexchange API reference documentation. Our API follows RESTful principles and uses standard HTTP methods and status codes.

## Base URL

```bash theme={null}
https://api-m.dexchange.sn/v1
```

## Authentication

All API requests require authentication using an API key. Include your API key in the Authorization header:

```bash theme={null}
Authorization: Bearer YOUR_API_KEY
```

## Request Format

* Content-Type: `application/json`
* Method: `POST`, `GET` (as specified per endpoint)
* Body: JSON formatted (for POST requests)

## Response Format

All responses are returned in JSON format:

```json theme={null}
{
  "message": "Operation status message",
  "success": true,
  "data": {
    // Response data specific to the endpoint
  }
}
```

## Available Endpoints

### Transaction Operations

* `POST /transaction/init` - Initialize a transaction
* `GET /transaction/:transactionId` - Get transaction status
* `POST /transaction/refund/:transactionId` - Process refund

### Merchant Operations

* `POST /merchant/get-link` - Generate payment link
* `GET /merchant/:transactionId` - Get merchant transaction

### Service Information

* `GET /api-services/balance` - Check balance
* `GET /api-services/services` - List available services

### Provider-Specific

* `POST /transaction/confirm/wizall` - Confirm Wizall transaction

## Rate Limits

* Standard tier: 100 requests per minute
* Enterprise tier: Custom limits available

## Webhooks

We provide webhooks for real-time transaction updates. Configure your webhook URL in the dashboard.

## SDKs and Libraries

Official SDKs available for:

* [JavaScript/Node.js](https://www.npmjs.com/package/dexchange-api-sdk)
* Python (In progress)
* PHP (In progress)
* Java (In progress)

## Additional Resources

* [Getting Started Guide](/introduction)
* [Error Handling](/errors)
* [Support Email](mailto:team@dexchange.sn)
