全球商业网络
  1. 3.文档管理
全球商业网络
  • 接口文档
    • 1.认证授权
      • Oauth2认证
    • 2.企业管理
      • 企业注册接口
    • 3.文档管理
      • 1.发送UBL文档接口
        POST
      • 2.接收到文档通知接口
        POST
      • 3.根据文档id获取UBL文档内容
        GET
  • 业务文档
    • 1.企业信息
      • 1.企业信息字典信息
    • 2.UBL文档
      • 1.UBL文档说明
      • 2.文档profileId说明
      • 3.文档数据枚举定义
      • UBL示例说明
        • RemittanceAdvice
        • RequestForQuotation
        • Quotation
        • Enquiry
        • EnquiryResponse
  • 产品目标
    • 1.商业网络818发布
      • 1.商业网络818目标
  • 产品对接
    • 1.采购Baas
      • 1.对接说明
      • 2.数据样例
    • 2.银企联
      • 1.对接说明
      • 2.数据样例
  1. 3.文档管理

1.发送UBL文档接口

测试中
开发环境
10.255.5.51
开发环境
10.255.5.51
POST
10.255.5.51
/doccenter/open/document/send
外部业务系统通过AP发送UBL文档接口.
关于企业IdentifierScheme 定义
IdentifierSchemeIdentifierValue
CN:VAT税号
COMPANY:NAME企业名称

请求参数

Header 参数
coupler-auth
string 
必需
认证token jwt
示例值:
Bearer token
Body 参数application/json
id
string 
文档id
必需
ulid,可以使用工具 ulid-creator生成 UlidCreator.getUlid().toString,如:01H6MYGGHHDN12JAXP1HXXG9XF
senderIdentifierScheme
string 
发送方标识scheme
必需
如senderIdentifierValue是税号, CN:VAT
senderIdentifierValue
string 
发送方标识value
必需
如senderIdentifierScheme=CN:VAT , 该字段为税号
receiverIdentifierScheme
string 
接收方标识scheme
必需
如receiverIdentifierValue是税号, CN:VAT
receiverIdentifierValue
string 
接收方标识scheme
必需
如receiverIdentifierScheme=CN:VAT , 该字段为税号
documentProfileId
string 
文档定义id
必需
如:yonyou.order.cn.1.0
documentContent
string 
ubl文档内容
必需
示例
{
    "id": "string",
    "senderIdentifierScheme": "string",
    "senderIdentifierValue": "string",
    "receiverIdentifierScheme": "string",
    "receiverIdentifierValue": "string",
    "documentProfileId": "string",
    "documentContent": "string"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '10.255.5.51/doccenter/open/document/send' \
--header 'coupler-auth: Bearer token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "id": "string",
    "senderIdentifierScheme": "string",
    "senderIdentifierValue": "string",
    "receiverIdentifierScheme": "string",
    "receiverIdentifierValue": "string",
    "documentProfileId": "string",
    "documentContent": "string"
}'

返回响应

🟢200成功
application/json
Body
code
string 
业务处理编码
必需
SUCCESS
msg
string 
返回处理信息
必需
操作成功
success
string 
是否成功标志
必需
true
示例
{
    "code": "SUCCESS",
    "success": true,
    "msg": "操作成功"
}
上一页
企业注册接口
下一页
2.接收到文档通知接口
Built with