# 单一钱包

## Request 参数 <a href="#h3-2-api" id="h3-2-api"></a>

{% hint style="info" %}
OMG平台调用商户所有API调用均会包含
{% endhint %}

<mark style="color:green;">`POST`</mark> `/接口URL?trace_id=omg_trace_id`

### Header

<table><thead><tr><th width="291">Name</th><th>Value</th></tr></thead><tbody><tr><td><code>Content-Type</code></td><td>"application/json; charset=utf-8"</td></tr><tr><td><code>sign</code></td><td>"omg_sign_string"</td></tr></tbody></table>

{% hint style="info" %}
签名算法请查阅 [签名算法及示例](https://docs.omgapi.cc/kuai-su-kai-shi/quickstart#qian-ming-suan-fa-ji-shi-li) 页面描述
{% endhint %}

### Body

<table><thead><tr><th width="194">Name</th><th width="130">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>app_id</code></td><td>string</td><td>商户的唯一标识,可通过商户后台获得</td></tr><tr><td><code>timestamp</code></td><td>integer</td><td>发送请求的时间戳（秒）</td></tr></tbody></table>

***

## Response 参数 <a href="#h3-2-api" id="h3-2-api"></a>

{% hint style="info" %}
当接入方返回的http code为200时，为HTTP访问API正常，可正常解析返回结果。其余http错误时为链路异常。
{% endhint %}

### Header

<table><thead><tr><th width="291">Name</th><th>Value</th></tr></thead><tbody><tr><td>Content-Type</td><td><code>application/json</code></td></tr></tbody></table>

### Body

| 参数名  | 类型      | 说明                    |
| ---- | ------- | --------------------- |
| code | integer | 状态码 **code=1**时表示调用成功 |
| msg  | string  | 提示信息                  |
| data | object  | 返回的数据                 |

## 错误码

{% hint style="info" %}
更多返回错误代码请查阅 [通用错误码 ](https://docs.omgapi.cc/kuai-su-kai-shi/tong-yong-cuo-wu-ma)页面描述
{% endhint %}
