# Blockpurse VCC 接口文档

报文传输协议

```
接口采用https POST方式进行报文传输
```

#### 报文格式约定

```
交互过程中，接口请求参数及响应结果都采用JSON格式包装。
如：

{
  "custNo": "客户编号（平台开户成功返回的客户编号），必填",
  "request": 接口具体请求参数（泛型）
  "verify": "7iu23kj ...... ew3i2o4r" 签名串
}
```

#### 报文加解密

```
部分或全部接口需要对部分请求参数进行组装加密对其进行签名验证，具体拼接字段见接口内容。

第一步、明文拼接相关字段字符串，如：

"requestNo= 20222102618240002&currency=USD&limitAmount=100&cardType=NORMAL"

第二步、使用Base64对字符串进行Encode，得到待加密字符串。

第三步、使用apiKey 对待加密字符串进行加密，加密方式为AES。
```

**环境地址**

```
正式环境 https://vccapi.blockpurse.io
商测环境 https://test-vccapi.blockpurse.io
```

#### API key获取方式

```
商户后台【设置】>【安全设置】中可查看您的商户号和API key
```

**DEMO**

{% file src="/files/zrcJLr1BHVeGbb1kPMYF" %}
java版
{% endfile %}

{% file src="/files/w2nBItOxdWXau1vNdBBT" %}
Python版
{% endfile %}

{% file src="/files/sL6myKxH54G8fT2NzE0e" %}
Go版1
{% endfile %}

{% file src="/files/MaQpYJNpAnM2JBLNGUip" %}
Go版2
{% endfile %}

{% file src="/files/EbQmCIDepFmSanmPSrTq" %}
PHP版
{% endfile %}

{% file src="/files/BCBkddL0XX9XpWQuz4sV" %}
nodejs
{% endfile %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://blockpursevcc.gitbook.io/api-document/blockpurse-vcc-jie-kou-wen-dang.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
