# 异步第三方制码 #### **接口用途** - 用于异步第三方制码的请求参数,发送到whale-gateway数据格式 #### **接口说明** - 这里规定了标准的请求报文格式,发送到whale-gateway模块,然后具体对于不同码商的报文格式需要gateway转换 #### **action** - **MakeCode** **请求参数,whale===>whale-gateway**
字段类型是否必填字段意义备注
channelIdString渠道Id
channelTicketIdString渠道批次Id
codeValidEndString券码有效期结束时间格式为yyyyMMdd235959
codeValidStartString券码有效期开始时间格式为yyyyMMdd000000
faceValueDouble券面值
netValueDouble净值
orderIdString订单Id
requestIdString请求流水号
saleChannelOrderIdString外部订单编号
totalCountString制码数量
transDateString交易日期格式为 yyyyMMdd
transTimeString交易时间格式为 yyyyMMddHHmmss
useTimesString可核销次数
whaleTicketIdStringwhale券Id
saleChannelItemIdString子订单号
**请求报文举例** ```JSON { "channelId": "136", "faceValue": -1, "makeFundsChannel": { "benefitAmount": 0, "channelBenefit": 0, "discountAmount": 0, "merchantBenefit": 0, "merchantCustomBenefit": -1, "merchantCustomRealAmount": -1, "merchantRealAmount": 10, "totalAmount": 100, "userRealAmount": 80 }, "netValue": -1, "orderId": "d84c1302a5e84774813bc9f1b7aaea8a", "orderRemark": "testtttt", "requestId": "d84c1302a5e84774813bc9f1b7aaea8a", "saleChannelOrderId": "d84c1302a5e84774813bc9f1b7aaea8a", "totalCount": "1", "transDate": "20220506", "transTime": "20220506215213", "useTimes": "12", "whaleTicketId": "162" } ``` **返回参数,whale-gateway===>whale**
字段类型是否必填字段意义备注
returnCodeString请求返回码
returnMsgString请求返回信息
sendChannelOrderIdString订单号
thirdCodeFamilySetList<[CodeFamilyInfoBO](https://book.e-buy.com/books/e-buy-40/page/a5bfc)>
**返回报文举例** ```JSON { "returnCode": "00", "returnMsg": "SUCCESS", "sendChannelOrderId": "", "thirdCodeFamilySet": [] } ```