# Credit In

> Increase the account credit ledger. Requires the 'funding:credit-in' permission.

Source: /admin/accounts-funding/funding/accounts-service_-credit-in-transaction

## `POST /accounts/{accountId}/credit-in`

**Credit In**

Increase the account credit ledger. Requires the 'funding:credit-in' permission.

Tags: `Funding`

#### Path parameters

- `accountId` (string) (required) — The account id to deposit to


### Request body

**Content-Type:** `application/json`

Funding instruction to credit or debit an account's cash balance.
amount is in the account's own currency and is rounded to that currency's decimals at write time.
For the deposit/withdraw endpoints the sign is encoded in the URL and amount must be positive;
the deprecated balance endpoint accepts a signed amount.
comment is an optional free-text memo persisted on the resulting BALANCE deal.
- `comment` (string)
- `amount` (number) — The amount to deposit/withdraw, in account currency. Sent/received as a JSON string (e.g. "10000"), per proto3 JSON encoding of doubles.
- `clientDealId` (string) — Optional passthrough audit metadata (max 36 chars); not used for deduplication.


### Responses

#### `200` — A successful response.

**Content-Type:** `application/json`

Identifier of the BALANCE deal posted to the ledger.
- `dealId` (string)

#### `default` — An unexpected error response.

**Content-Type:** `application/json`

- `code` (integer)
- `message` (string)
- `details` (array)
  - items:
    - `@type` (string)

