> For the complete documentation index, see [llms.txt](https://doc.pkspay.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.pkspay.com/merchant.md).

# Merchant

仅用于同步商户余额

## 获取余额

> 仅用于同步商户余额

```json
{"openapi":"3.0.4","info":{"title":"渠道收银 API","version":"v1"},"tags":[{"name":"Merchant","description":"仅用于同步商户余额"}],"servers":[{"url":"https://api-beta.pkspay.com","description":"当前服务器"}],"security":[{}],"paths":{"/api/channel/Merchant/Balance":{"get":{"tags":["Merchant"],"summary":"获取余额","description":"仅用于同步商户余额","responses":{"200":{"description":"OK","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Zero.Core.Result.SysResultOfCoinWallet.Domain.Channel.Response.Merchant.BalanceResponse"}},"application/json":{"schema":{"$ref":"#/components/schemas/Zero.Core.Result.SysResultOfCoinWallet.Domain.Channel.Response.Merchant.BalanceResponse"}},"text/json":{"schema":{"$ref":"#/components/schemas/Zero.Core.Result.SysResultOfCoinWallet.Domain.Channel.Response.Merchant.BalanceResponse"}}}}}}}},"components":{"schemas":{"Zero.Core.Result.SysResultOfCoinWallet.Domain.Channel.Response.Merchant.BalanceResponse":{"type":"object","properties":{"code":{"$ref":"#/components/schemas/Zero.Core.Result.ErrorCode"},"errorDesc":{"type":"string","nullable":true},"result":{"$ref":"#/components/schemas/CoinWallet.Domain.Channel.Response.Merchant.BalanceResponse"}},"additionalProperties":false},"Zero.Core.Result.ErrorCode":{"enum":[0,1,2,3,11,12,13,14,15,16,17,18,99],"type":"integer","description":"- 0 = SYS_SUCCESS(SUCCESS)\n- 1 = SYS_FAIL(FAIL)\n- 2 = SYS_PARAM_FORMAT_ERROR(PARAM ERROR)\n- 3 = SYS_RESOURCE_NOT_FOUND(RESOURCE NOT FOUND)\n- 11 = USER_RESERVED_1(USER_RESERVED_1)\n- 12 = USER_RESERVED_2(USER_RESERVED_2)\n- 13 = USER_RESERVED_3(USER_RESERVED_3)\n- 14 = USER_RESERVED_4(USER_RESERVED_4)\n- 15 = USER_RESERVED_5(USER_RESERVED_5)\n- 16 = USER_RESERVED_6(USER_RESERVED_6)\n- 17 = USER_RESERVED_7(USER_RESERVED_7)\n- 18 = USER_RESERVED_8(USER_RESERVED_8)\n- 99 = USER_CUSTOM(USER_CUSTOM)\n","format":"int32"},"CoinWallet.Domain.Channel.Response.Merchant.BalanceResponse":{"type":"object","properties":{"balance":{"type":"number","description":"余额","format":"double","nullable":true},"frozenBalance":{"type":"number","description":"冻结余额","format":"double","nullable":true},"remainBalance":{"type":"number","description":"可用余额","format":"double","nullable":true}},"additionalProperties":false,"description":"余额响应"}}}}
```
