> ## Documentation Index
> Fetch the complete documentation index at: https://doc.va777.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Deposit

> Deposit: request parameters, response format and response codes.

> [!NOTE]
>
> * Deposits are allowed while the member is online.
> * The response includes the wallet balance before and after the deposit.
> * The maximum amount per deposit is 99,999,999,999.99.
> * When the wallet balance exceeds 30,000,000,000, deposits for the member are suspended. Contact our support team.
> * `balanceAfter` equals `balanceBefore` plus `amount`.
> * Deposit transaction IDs must have the deposit- prefix.

## Path

```text theme={null}
POST {host}/vendor/v2.0/transaction/deposit
```

## Headers

<table>
  <colgroup>
    <col width="27%" />

    <col width="10%" />

    <col width="7%" />

    <col width="56%" />
  </colgroup>

  <thead><tr><th>Field</th><th>Type</th><th>Required</th><th>Description</th></tr></thead>

  <tbody>
    <tr><td>`Authorization`</td><td>string</td><td>Yes</td><td>Token we provide</td></tr>
    <tr><td>`Content-Type`</td><td>string</td><td>Yes</td><td>`multipart/form-data`</td></tr>
  </tbody>
</table>

## Request parameters

<table>
  <colgroup>
    <col width="27%" />

    <col width="10%" />

    <col width="7%" />

    <col width="11%" />

    <col width="45%" />
  </colgroup>

  <thead><tr><th>Field</th><th>Type</th><th>Required</th><th>Signed</th><th>Description</th></tr></thead>

  <tbody>
    <tr><td>`transactionID`</td><td>string</td><td>Yes</td><td>✓</td><td>Transaction ID (must be unique)</td></tr>
    <tr><td>`channelID`</td><td>number</td><td>Yes</td><td>✓</td><td>Channel ID (use 1 if you have no channels)</td></tr>
    <tr><td>`account`</td><td>string</td><td>Yes</td><td>✓</td><td>Member account (allowed characters: `a-z A-Z 0-9 _-`)</td></tr>
    <tr><td>`currency`</td><td>string</td><td>Yes</td><td>✓</td><td>Currency (contact our business team)</td></tr>
    <tr><td>`amount`</td><td>number</td><td>Yes</td><td>✓</td><td>Transfer amount (up to 2 decimal places)</td></tr>
    <tr><td>`sign`</td><td>string</td><td>Yes</td><td /><td>Signature. See [Signature](https://doc.va777.net/en/v2/guides/signature.md) for how to generate it</td></tr>
  </tbody>
</table>

## Response

Success (the HTTP status code is always 200; check `status.code` for the result)

<table>
  <colgroup>
    <col width="34%" />

    <col width="12%" />

    <col width="54%" />
  </colgroup>

  <thead><tr><th>Field</th><th>Type</th><th>Description</th></tr></thead>

  <tbody>
    <tr><td>`data`</td><td>object</td><td /></tr>
    <tr><td>`data.transactionID`</td><td>string</td><td>Transaction ID</td></tr>
    <tr><td>`data.channelID`</td><td>number</td><td>Channel ID</td></tr>
    <tr><td>`data.account`</td><td>string</td><td>Member account</td></tr>
    <tr><td>`data.amount`</td><td>number</td><td>Transfer amount</td></tr>
    <tr><td>`data.currency`</td><td>string</td><td>Currency (contact our business team)</td></tr>
    <tr><td>`data.balanceBefore`</td><td>number</td><td>Wallet balance before the transfer</td></tr>
    <tr><td>`data.balanceAfter`</td><td>number</td><td>Wallet balance after the transfer</td></tr>
    <tr><td>`status`</td><td>object</td><td>Response status. See [Response format](https://doc.va777.net/en/v2/guides/request-format.md#response-format)</td></tr>
  </tbody>
</table>

### Response example

```json theme={null}
{
  "data": {
    "transactionID": "deposit-7524266853ebe08f9783dae0ac31ba97",
    "channelID": 1,
    "account": "player001",
    "amount": 10.0,
    "currency": "CNY",
    "balanceBefore": 20.0,
    "balanceAfter": 30.0
  },
  "status": {
    "code": "0",
    "message": "success",
    "datetime": "2022-07-04T23:13:54.920+08:00",
    "traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
  }
}
```

## Response codes

Besides the [common codes](https://doc.va777.net/en/v2/reference/response-codes.md), this API may also return:

| Code | Description |
| - | - |
| `103` | Request failed on our side |
| `203` | Duplicate transaction ID |
| `205` | Account does not exist |
| `207` | Wallet processing error |
| `800` | Risk control error |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.