kdp open api
  1. 发票
kdp open api
  • 使用须知
  • 访问凭证
    • 获取token
      POST
  • SAP
    • 分销商
      • 客户物料关系接收状态更新
      • 获取分销商staff-废弃
      • 获取dealer主数据(用这个)
      • 回传分销商dealer code和store code
      • 客户物料关系列表
    • 商品
      • 获取国家产品发布类型(寄售/非寄售)
      • 获取商品信息-废弃
      • 寄售商品主数据回传
      • 商品彩盒信息回传
      • 产品物料信息回传
    • 订单
      • 寄售商品
        • 销售订单列表(consignment issue)
        • 销售订单接收状态更新
        • 补货订单列表
        • 补货单接收状态更新
        • iot设备激活数据回传
        • sap-寄售结算订单库存回传上报
        • sap寄售订单延迟发货原因同步
      • 非寄售商品
        • 非寄售订单列表
        • 非寄售订单接收状态更新
        • sap非寄售订单延迟发货原因同步
    • 物流
      • 寄售商品补货订单发货信息回传
      • 寄售补货订单发货单DN回传
      • 非寄售商品订单发货信息回传
      • 非寄售补货订单发货单DN回传
    • 库存
      • dummy库存导入
      • SAP同步大库数据
      • RDC_STOCK库存信息回传
      • 库存在途信息回传(RDC intransit)
      • 获取所有取消中的补货发货单信息
      • 取消补货发货单回传
    • 发票
      • 发票信息回传
        POST
      • 订单发票文件上传
        POST
      • 上报AR open balance
        POST
    • 售后
      • 获取Warranty claim列表
      • Warranty 凭证信息回传接口
      • 报销凭证文件上传
      • 上报AP open balance
      • 配件历史数据更新Excel
    • 退换货
      • 销售订单列表(退换货)
      • 销售订单接收状态更新(退换货)
      • 补货订单列表(退换货)
      • 补货单接收状态更新(退换货)
      • 非寄售订单列表(退换货)
      • 非寄售订单接收状态更新(退换货)
  • QDS安装包上传
    • 美国正式环境
      POST
    • 欧洲正式环境
      POST
  • dealer邮件通知
    • dealer批量发送邮件
      POST
  • SSO
    • 获取code
      GET
    • 获取token
      POST
    • 刷新token
      POST
  • pds
    • (测试环境)获取PDS产品主数据_自有品牌
      POST
    • (测试环境)获取PDS产品主数据_客户品牌
      POST
    • (正式环境)获取PDS产品主数据_自有品牌
      POST
    • (正式环境)获取PDS产品主数据_客户品牌
      POST
    • (正式环境)获取PDS产品主数据_自有品牌 (内网)
      POST
  • onpage
    • onpage- category
    • onpage- image
    • onpage- key_feature
    • onpage- product
    • onpage- in the box
    • onpage- articles & bullet points
    • onpage- markets
    • onpage- article country
    • onpage- schema
    • onpage- technical_specification
    • onpage数据同步
    • onpage-拉取subcategories
    • onpage-拉取banners
    • onpage-拉取PDF
  • 注册平台
    • (开发环境)同步销售数据接口
    • 产品注册接口
    • 检查是否在质保期接口
  1. 发票

发票信息回传

开发中
POST
inventory-server/api/invoice/report/info
sap回传发票信息,每整年全量提交

请求参数

Header 参数
Content-Type
string 
必需
消息体类型;取值:application/json;charset=utf-8
示例值:
application/json;charset=utf-8
sys
string 
必需
系统类型,取值:pp
示例值:
pp
token
string 
必需
访问凭证token;通过获取token接口获取
traceId
string 
必需
本次请求id,uuid
deviceType
integer 
取值:1
必需
示例值:
1
lang
string 
取值:en
必需
示例值:
en
uid
integer 
取值:1
必需
示例值:
1
Body 参数application/json
array of:
orderId
string 
订单id
必需
sapOrderId
string 
必需
sap order id
invoiceId
string 
发票id
必需
amount
integer 
必需
发票金额(含税),double型
taxAmount
string 
必需
税金额,double型
dueDate
string 
必需
到期日期,YYYYMMDD
distributionChannel
string 
分销渠道
必需
deliveryNote
string 
DN
必需
currency
string 
币种
必需
payer
string 
必需
付款方: sapDealerCode或sapStoreCode
reverseMark
integer 
必需
冲销标识,0:未冲销,1:已冲销
createDate
string 
必需
创建时间,YYYYMMDD
taxRate
integer 
必需
税率,例如20%,显示0.2,小数格式,默认为0
taxCode
string 
税码
必需
invoiceDate
string 
必需
发票日期,YYYYMMDD
orderItem
string 
销售订单行
必需
reverseId
string 
被冲销发票id
必需
invoiceType
string 
必需
发票类型( M为Invoice, O为Credit, L为Debit S为Cancle)
amountLC
integer 
发票本位币金额
必需
currencyLC
string 
本位币币种
必需
taxAmountLC
integer 
必需
本位币税金额,double型
orderItems
array [object {1}] 
必需
itemNo
string 
订单行号
必需
billTo
string 
必需
sapDealerCode
示例
[
    {
        "orderId": "66",
        "sapOrderId": "33",
        "invoiceId": "80",
        "amount": 6,
        "taxAmount": "90",
        "dueDate": "2011-12-02",
        "distributionChannel": "sunt labore veniam magna",
        "deliveryNote": "sunt incididunt ullamco",
        "currency": "ex minim incididunt est",
        "payer": "001700142",
        "reverseMark": 92,
        "createDate": "2012-07-22",
        "taxRate": 75,
        "taxCode": "90",
        "invoiceDate": "2023-02-12",
        "orderItem": "tempor voluptate",
        "reverseId": "7",
        "invoiceType": "M",
        "amountLC": 6,
        "currencyLC": "USD",
        "taxAmountLC": 90,
        "orderItems": [
            {
                "itemNo": "000001"
            },
            {
                "itemNo": "000002"
            }
        ],
        "billTo": "0017001245"
    },
    {
        "orderId": "78",
        "sapOrderId": "4",
        "invoiceId": "55",
        "amount": 70,
        "taxAmount": "44",
        "dueDate": "1982-01-04",
        "distributionChannel": "laborum dolor Ut aliqua minim",
        "deliveryNote": "Ut dolor adipisicing mollit officia",
        "currency": "aute",
        "payer": "001700142",
        "reverseMark": 7,
        "createDate": "1975-04-11",
        "taxRate": 81,
        "taxCode": "66",
        "invoiceDate": "1974-01-24",
        "orderItem": "cupidatat",
        "reverseId": "67",
        "invoiceType": "M",
        "amountLC": 6,
        "currencyLC": "USD",
        "taxAmountLC": 90,
        "orderItems": [
            {
                "itemNo": "000001"
            },
            {
                "itemNo": "000002"
            }
        ],
        "billTo": "0017001245"
    },
    {
        "orderId": "11",
        "sapOrderId": "25",
        "invoiceId": "57",
        "amount": 81,
        "taxAmount": "16",
        "dueDate": "1993-10-17",
        "distributionChannel": "in aute",
        "deliveryNote": "do elit Duis sit eu",
        "currency": "exercitation veniam",
        "payer": "001700142",
        "reverseMark": 18,
        "createDate": "2008-12-20",
        "taxRate": 33,
        "taxCode": "25",
        "invoiceDate": "2017-07-12",
        "orderItem": "ipsum esse occaecat nisi",
        "reverseId": "44",
        "invoiceType": "M",
        "amountLC": 6,
        "currencyLC": "USD",
        "taxAmountLC": 90,
        "orderItems": [
            {
                "itemNo": "000001"
            },
            {
                "itemNo": "000002"
            }
        ],
        "billTo": "0017001245"
    },
    {
        "orderId": "53",
        "sapOrderId": "92",
        "invoiceId": "36",
        "amount": 34,
        "taxAmount": "42",
        "dueDate": "1988-01-28",
        "distributionChannel": "non ut",
        "deliveryNote": "do aliquip qui",
        "currency": "laboris et amet non",
        "payer": "001700142",
        "reverseMark": 62,
        "createDate": "1973-02-03",
        "taxRate": 99,
        "taxCode": "26",
        "invoiceDate": "1983-11-02",
        "orderItem": "pariatur mollit ea qui in",
        "reverseId": "58",
        "invoiceType": "M",
        "amountLC": 6,
        "currencyLC": "USD",
        "taxAmountLC": 90,
        "orderItems": [
            {
                "itemNo": "000001"
            },
            {
                "itemNo": "000002"
            }
        ],
        "billTo": "0017001245"
    }
]

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'inventory-server/api/invoice/report/info' \
--header 'sys: pp' \
--header 'token;' \
--header 'traceId;' \
--header 'deviceType: 1' \
--header 'lang: en' \
--header 'uid: 1' \
--header 'Content-Type: application/json;charset=utf-8' \
--data-raw '[
    {
        "orderId": "66",
        "sapOrderId": "33",
        "invoiceId": "80",
        "amount": 6,
        "taxAmount": "90",
        "dueDate": "2011-12-02",
        "distributionChannel": "sunt labore veniam magna",
        "deliveryNote": "sunt incididunt ullamco",
        "currency": "ex minim incididunt est",
        "payer": "001700142",
        "reverseMark": 92,
        "createDate": "2012-07-22",
        "taxRate": 75,
        "taxCode": "90",
        "invoiceDate": "2023-02-12",
        "orderItem": "tempor voluptate",
        "reverseId": "7",
        "invoiceType": "M",
        "amountLC": 6,
        "currencyLC": "USD",
        "taxAmountLC": 90,
        "orderItems": [
            {
                "itemNo": "000001"
            },
            {
                "itemNo": "000002"
            }
        ],
        "billTo": "0017001245"
    },
    {
        "orderId": "78",
        "sapOrderId": "4",
        "invoiceId": "55",
        "amount": 70,
        "taxAmount": "44",
        "dueDate": "1982-01-04",
        "distributionChannel": "laborum dolor Ut aliqua minim",
        "deliveryNote": "Ut dolor adipisicing mollit officia",
        "currency": "aute",
        "payer": "001700142",
        "reverseMark": 7,
        "createDate": "1975-04-11",
        "taxRate": 81,
        "taxCode": "66",
        "invoiceDate": "1974-01-24",
        "orderItem": "cupidatat",
        "reverseId": "67",
        "invoiceType": "M",
        "amountLC": 6,
        "currencyLC": "USD",
        "taxAmountLC": 90,
        "orderItems": [
            {
                "itemNo": "000001"
            },
            {
                "itemNo": "000002"
            }
        ],
        "billTo": "0017001245"
    },
    {
        "orderId": "11",
        "sapOrderId": "25",
        "invoiceId": "57",
        "amount": 81,
        "taxAmount": "16",
        "dueDate": "1993-10-17",
        "distributionChannel": "in aute",
        "deliveryNote": "do elit Duis sit eu",
        "currency": "exercitation veniam",
        "payer": "001700142",
        "reverseMark": 18,
        "createDate": "2008-12-20",
        "taxRate": 33,
        "taxCode": "25",
        "invoiceDate": "2017-07-12",
        "orderItem": "ipsum esse occaecat nisi",
        "reverseId": "44",
        "invoiceType": "M",
        "amountLC": 6,
        "currencyLC": "USD",
        "taxAmountLC": 90,
        "orderItems": [
            {
                "itemNo": "000001"
            },
            {
                "itemNo": "000002"
            }
        ],
        "billTo": "0017001245"
    },
    {
        "orderId": "53",
        "sapOrderId": "92",
        "invoiceId": "36",
        "amount": 34,
        "taxAmount": "42",
        "dueDate": "1988-01-28",
        "distributionChannel": "non ut",
        "deliveryNote": "do aliquip qui",
        "currency": "laboris et amet non",
        "payer": "001700142",
        "reverseMark": 62,
        "createDate": "1973-02-03",
        "taxRate": 99,
        "taxCode": "26",
        "invoiceDate": "1983-11-02",
        "orderItem": "pariatur mollit ea qui in",
        "reverseId": "58",
        "invoiceType": "M",
        "amountLC": 6,
        "currencyLC": "USD",
        "taxAmountLC": 90,
        "orderItems": [
            {
                "itemNo": "000001"
            },
            {
                "itemNo": "000002"
            }
        ],
        "billTo": "0017001245"
    }
]'

返回响应

🟢200Success
application/json
Body
code
integer 
操作状态码
必需
msg
string 
操作描述
必需
示例
{
    "code": 0,
    "msg": "success"
}
修改于 2025-03-03 07:26:36
上一页
取消补货发货单回传
下一页
订单发票文件上传
Built with