alibaba.damai.tpool.printticket (打印票单printTicket)

打印票单

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
batch_code Number 可选 66666 批次号
channel_id Number 可选 1 渠道ID
operator_id Number 可选 1 操作员ID
seller_id Number 可选 1 卖家ID
voucher_id_list Number [] 可选 697006
  • 最大列表长度:20
  • 票单IDList
    uu_id String 可选 123123 设备唯一识别号

    响应参数

    名称 类型 示例值 描述
    result PtnradminResult result
    • └ code
    • Number
    • 200
    • 参数code
    • model_arr_list
    • TicketDetailDto []
    • 参数model
    • └ batch_code
    • Number
    • 66666
    • batchCode
    • face_element_detail_d_t_o_list
    • FaceElementDetailDto []
    • faceElementDetailDTOList
    • └ content
    • String
    • 1排
    • content
    • └ content_type
    • Number
    • 0
    • contentType
    • └ data_type
    • Number
    • 11
    • dataType
    • └ font_size
    • Number
    • 15
    • fontSize
    • └ format
    • String
    • YYYY-MM-DD HH:MM:SS
    • format
    • └ height
    • Number
    • 15
    • height
    • └ id
    • Number
    • 208564
    • id
    • └ name
    • String
    • 座位排号
    • name
    • └ orientation
    • Number
    • 0
    • orientation
    • └ rc
    • String
    • 221,279
    • rc
    • └ shape
    • String
    • 0,2
    • shape
    • └ style
    • String
    • 宋体
    • style
    • └ width
    • Number
    • 150
    • width
    • └ is_rf_id
    • Boolean
    • true
    • isRfId
    • └ ticket_edition_id
    • Number
    • 1
    • ticketEditionId
    • └ voucher_id
    • Number
    • 697006
    • voucherId
    • └ msg
    • String
    • success
    • 参数msg
    • └ success
    • Boolean
    • true
    • success

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AlibabaDamaiTpoolPrintticketRequest req = new AlibabaDamaiTpoolPrintticketRequest();
    req.setBatchCode(66666L);
    req.setChannelId(1L);
    req.setOperatorId(1L);
    req.setSellerId(1L);
    req.setVoucherIdList("697006");
    req.setUuId("123123");
    AlibabaDamaiTpoolPrintticketResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <alibaba_damai_tpool_printticket_response>
        <result>
            <code>200</code>
            <model_arr_list>
                <ticket_detail_dto>
                    <batch_code>66666</batch_code>
                    <face_element_detail_d_t_o_list>
                        <face_element_detail_dto>
                            <content>1排</content>
                            <content_type>0</content_type>
                            <data_type>11</data_type>
                            <font_size>15</font_size>
                            <format>YYYY-MM-DD HH:MM:SS</format>
                            <height>15</height>
                            <id>208564</id>
                            <name>座位排号</name>
                            <orientation>0</orientation>
                            <rc>221,279</rc>
                            <shape>0,2</shape>
                            <style>宋体</style>
                            <width>150</width>
                        </face_element_detail_dto>
                    </face_element_detail_d_t_o_list>
                    <is_rf_id>true</is_rf_id>
                    <ticket_edition_id>1</ticket_edition_id>
                    <voucher_id>697006</voucher_id>
                </ticket_detail_dto>
            </model_arr_list>
            <msg>success</msg>
            <success>true</success>
        </result>
    </alibaba_damai_tpool_printticket_response>

    异常示例

    • XML示例
    • JSON示例
    <error_response>
        <code>50</code>
        <msg>Remote service error</msg>
        <sub_code>isv.invalid-parameter</sub_code>
        <sub_msg>非法参数</sub_msg>
    </error_response>

    错误码解释

    错误码 错误描述 解决方案

    API工具

    如何获得此API

    FAQ

    返回
    顶部