接口说明
根据账套ID获取所有末级科目信息
API 方法名:nuonuo.CloudBookkeeping.getLeafSubjectList 版本:V2.0
请求地址
| 环境 | 请求地址 |
|---|
| 正式环境 | https://sdk.nuonuo.com/open/v1/services |
| 沙箱环境 | https://sandbox.nuonuocs.cn/open/v1/services |
公共请求参数(消息头)
| 参数名 | 类型 | 必填 | 长度 | 说明 | 示例 |
|---|
| Content-type | String | 否 | - | MIME类型【消息头】 | - |
公共请求参数(消息体)
| 参数名 | 类型 | 必填 | 长度 | 说明 | 示例 |
|---|
| senid | String | 否 | - | 唯一标识,由企业自己生成32位随机码【消息体】 | - |
私有请求参数
| 参数名 | 类型 | 必填 | 长度 | 说明 | 示例 |
|---|
| accountId | String | 否 | - | 账套ID | c81030436ca249bb8678e4ecb000c18a |
响应参数
| 参数名 | 类型 | 必填 | 长度 | 说明 | 示例 |
|---|
| subjectId | Number | 否 | - | 科目ID | 438830638921945088 |
| subjectCode | String | 否 | - | 科目编码 | 1002 |
| fullName | String | 否 | - | 科目全名称 | 银行存款 |
请求报文示例
NNOpenSDK sdk = NNOpenSDK.getIntance();
String taxnum = "23***789"; // 授权企业税号
String appKey = "Hn***XL";
String appSecret = "F65***65F";
String method = "nuonuo.CloudBookkeeping.getLeafSubjectList"; // API方法名
String token = "2d484e**************pdui"; // 访问令牌
String content = "{
\"accountId\": \"c81030436ca249bb8678e4ecb000c18a\"
}";
String url = "https://sdk.nuonuo.com/open/v1/services"; // SDK请求地址
String senid = UUID.randomUUID().toString().replace("-", ""); // 唯一标识,32位随机码,无需修改,保持默认即可
String result = sdk.sendPostSyncRequest(url, senid, appKey, appSecret, token, taxnum, method, content);
System.out.println(result);
响应报文示例
{
"code": "JZ0000",
"describe": "OK",
"result": [
{
"subjectId": "438830638921945088",
"subjectCode": "10010101010101010101",
"fullName": "库存现金_二级_三级_四级_五级_六级_七级_八级_九级"
}
]
}
返回码说明