[返回主目录](/doc)

<a name="menu">目录</a>
1. [减少余额](#reduceAccountBalance)
1. [加减可用余额](#addordelavailable)
1. [代客下单流水](#valetorder)

## **<a name="reduceAccountBalance"> 减少余额</a>**
[返回到目录](#menu)
##### URL
[/web/merchant/merchantaccountCtl/reduceAccountBalance]
#### 参数格式  `JSON`
#### HTTP请求方式 `POST`

``` javascript

    {
        "merchant_id":"12805595251001601",  //商户ID
        "amount": 10000                     //金额 
    }

```

#### 返回结果
```javascript

{
    "status": 0,
    "msg": "success",
    "data": [
        null,
        1
    ],
    "requestid": "67931cbaf71d4a7c8e70db387cf6adfd"
}
```


## **<a name="addordelavailable"> 加减可用余额</a>**
[返回到目录](#menu)
##### URL
[/web/merchant/merchantaccountCtl/addordelavailable]
#### 参数格式  `JSON`
#### HTTP请求方式 `POST`

``` javascript

    {
        "merchant_id":"12805595251001601",  //商户ID
        "amount":-10000                     //金额   正数为加  负数为减    
    }

```
#### 返回结果
```javascript
{
    "status": 0,
    "msg": "success",
    "data": [
        null,
        1
    ],
    "requestid": "67931cbaf71d4a7c8e70db387cf6adfd"
}

```


## **<a name="valetorder"> 代课下单流水</a>**
[返回到目录](#menu)
##### URL
[/web/merchant/merchanttradeCtl/valetorder]
#### 参数格式  `JSON`
#### HTTP请求方式 `POST`

``` javascript

    {
        "merchant_id":"12805595251001601", //商户ID
        "trade_data_id":"xxxxx",           //流水号
        "amount":100,                      //交易金额
        "trade_voucher":"凭证"              //交易凭证     

    }

```
#### 返回结果
```javascript
{
    "status": 0,
    "msg": "success",
    "data": {
        "version": 0,
        "merchant_id": "12805595251001601",
        "trade_time": "2020-06-29T08:27:00.000Z",
        "amount": 10000,
        "trade_voucher": "凭证",
        "trade_type": 1,
        "pay_type": 2,
        "amount_type": 1,
        "trade_data_id": "20200630174148",
        "available_amount": 10000,
        "balance_amount": 12405600,
        "id": "13685748088000638",
        "updated_at": "2020-06-30T09:41:48.920Z",
        "created_at": "2020-06-30T09:41:48.920Z"
    },
    "requestid": "d765cf11463d44b4a76edbb6a069346a"
}

```



