# Overview

> Send, retrieve, update and remove the sales transactions that feed Prevention and Dispute, with Basic Auth and JSON.

Página: https://doc.rapidchargeback.com/en/canais/transactions/visao-geral/

The Transactions API lets you send, retrieve, update and remove your company's sales transactions on the Rapid platform. These transactions are used by the solutions you subscribe to in order to protect your business against disputes and chargebacks.

## How it works

1. Your application sends the sales transactions over HTTPS to the Rapid API
2. Rapid stores the transaction data (items, customer, addresses, payments, refunds)
3. The active solutions use this data automatically when needed

## Available endpoints

| Method | Endpoint | Description |
|---|---|---|
| POST | `/api/v1/transactions` | Create a transaction |
| POST | `/api/v1/transactions/batch` | Create multiple transactions (up to 1000) |
| GET | `/api/v1/transactions/:id` | Retrieve a transaction |
| GET | `/api/v1/transactions?external_id=` | Find a transaction by your system's ID |
| PATCH | `/api/v1/transactions/:id` | Update a transaction |
| DELETE | `/api/v1/transactions/:id` | Delete a transaction |

## Base URL

```
https://api.rapidchargeback.com/api/v1
```

## Authentication

Every request uses **Basic Auth** with the `client_id` and `client_secret` generated in the dashboard. How to generate and send them is in [Authentication](https://doc.rapidchargeback.com/en/referencia/autenticacao/).

```
Authorization: Basic base64(client_id:client_secret)
```

## Limits

| Limit | Value |
|---|---|
| Requests per minute | 100 per IP |
| Transactions per request (batch) | 1000 |

## Immutability protection

Transactions that were already used by a solution (e.g. queried by **Prevention**) cannot be changed or deleted. In that case, the API returns `409 Conflict`.

Transactions that have not been used yet can be freely updated or deleted.
