# Repzo API - Adjust Account

OpenAPI specification for Repzo Adjust Account endpoints.

**Version:** 1.0.0

## Overview

### Base URLs

- \*\*\*\*: `https://sv.api.repzo.me`

## Authentication

No authentication required.

## Endpoints

### `/adjust-account`

#### GET /adjust-account

**Summary:** Find account adjustments

##### Parameters

| Name | Location | Type | Required | Description |
| ---- | -------- | ---- | -------- | ----------- |

| `params` | query | object | No | Query parameters for filtering account adjustments |

##### Responses

**200** - A list of account adjustments

Content-Type: `application/json`

---

#### POST /adjust-account

**Summary:** Create an account adjustment

##### Request Body

**Content Types:**

- `application/json`

##### Responses

**201** - Account adjustment created

Content-Type: `application/json`

---

### `/adjust-account/{id}`

#### GET /adjust-account/{id}

**Summary:** Get an account adjustment by ID

##### Parameters

| Name | Location | Type | Required | Description |
| ---- | -------- | ---- | -------- | ----------- |

| `id` | path | string | Yes | No description |

##### Responses

**200** - Account adjustment details

Content-Type: `application/json`

---

## Data Models

### AdjustAccountFindResult

Result of finding account adjustments

| Property | Type | Required | Description |
| -------- | ---- | -------- | ----------- |

| `data` | array | No | No description |

| `total_result` | number | No | Total number of account adjustments |

| `current_count` | number | No | Count of account adjustments in current page |

| `total_pages` | number | No | Total number of pages |

| `current_page` | number | No | Current page number |

| `per_page` | number | No | Number of account adjustments per page |

### AdjustAccountSchema

Account adjustment schema

| Property | Type | Required | Description |
| -------- | ---- | -------- | ----------- |

| `_id` | string | No | Unique identifier for the account adjustment |

| `client` | string | No | Client ID whose account is being adjusted |

| `rep` | string | No | Representative ID who made the adjustment |

| `type` | string | No | Type of adjustment (credit increases balance, debit decreases) |

| `amount` | number | No | Adjustment amount |

| `reason` | string | No | Reason for the adjustment |

| `reference` | string | No | Reference number or document |

| `description` | string | No | Detailed description of the adjustment |

| `previousBalance` | number | No | Account balance before adjustment |

| `newBalance` | number | No | Account balance after adjustment |

| `adjustmentDate` | string | No | Date when adjustment was made |

| `approvedBy` | string | No | ID of user who approved the adjustment |

| `approvalDate` | string | No | Date when adjustment was approved |

| `integration_meta` | object | No | Integration metadata |

| `company_namespace` | array | No | Company namespaces |

| `createdAt` | string | No | Creation timestamp |

| `updatedAt` | string | No | Last update timestamp |

| `__v` | number | No | Version number |

### AdjustAccountCreateBody

Body for creating an account adjustment

| Property | Type | Required | Description |
| -------- | ---- | -------- | ----------- |

| `client` | string | Yes | Client ID whose account is being adjusted |

| `rep` | string | No | Representative ID who made the adjustment |

| `type` | string | Yes | Type of adjustment (credit increases balance, debit decreases) |

| `amount` | number | Yes | Adjustment amount |

| `reason` | string | Yes | Reason for the adjustment |

| `reference` | string | No | Reference number or document |

| `description` | string | No | Detailed description of the adjustment |

| `adjustmentDate` | string | No | Date when adjustment was made |

| `integration_meta` | object | No | Integration metadata |

### AdjustAccountCreateResult

Result of creating an account adjustment

### AdjustAccountGetResult

Result of getting an account adjustment

## TypeScript Usage

See [adjust-account-examples.md](./adjust-account-examples.md) for detailed TypeScript usage examples.
