接入场景

通过“批量选座/排 演出列表接口” 查询演出到票档的信息。通过“场次座位图”接口获取渲染座位图,最后通过“场次价格库存”接口获取价格库存。

相关接口

选座到座/到排-项目列表

获取可选座项目清单, 返回包括场次列表

url

GET /openapi/v1/seatedActivities{?pageIndex,pageSize,cityId,sign,appId,timeStamp}

params

name 意义 取值
pageIndex 页数,从1开始 1
pageSize 每页大小,最大100 50
sign 签名 923E7DC7513AFBB7F3A22171063663D7
appId 代理商的唯一id 1
cityId 城市Id,见城市列表 1(上海)
timeStamp 时间戳,请取发送请求的当前时间 有效期10分钟 1482991236008

response

    {
    "totalNum": 307,
    "pageIndex": 1,
    "pageSize": 10,
    "data": [
        {
            "id": 3167,
            "status": 1,  //演出状态 0: "已删除",1: "售卖中",2: "暂停售卖",3: "已过期",4: "预订中",5: "退票中"
            "name": "奇迹— 女子十二乐坊2017上海专场音乐会",
            "poster": "http://7xllta.com1.z0.glb.clouddn.com/perform/project/977/97797_n.jpg",
            "venueId": 101,  //场馆id
            "categoryId":2, //类目id
            "star":8, // 评分,分数为1-10分,0表示数据不足无评分
            "areaTicketType":1,//选座方式 1:"选座" , 3:"选排"
            "venue": {
                "id": 1,
                "name": "人民大舞台",
                "address": "上海黄浦区九江路663号",
                "cityId": 1
            },
            "details": [
                {
                    "type": 2,  //类型 1: "简介",2: "详情",4: "一句话简介",5"购买须知"
                    "detailDesc": "演出详情"
                },
                {
                    "type": 1,
                    "detailDesc": "演出简介"
                },
                {
                    "type": 4,
                    "detailDesc": "一句话简述"
                },
                {
                    "type":5,
                    "detailDesc":"购买须知:只可大人使用"
                }
            ],
            "activityEvents": [
                {
                    "id": 19469,
                    "specification": "2017年03月04日 星期六 19:30",
                    "start": 1488627000000,
                    "end": 1488634200000,
                    "status": 1,   //0: "已删除",1: "售卖中",2: "暂停售卖",3, "已过期"
                    "ticketCategories": [
                        {
                            "id": 119873,
                            "originPrice": 80,   //票档原价
                            "specification": "80",
                            "activityEventId": 19469,
                            "status": 1, //1有效
                        },
                        {
                            "id": 119874,
                            "originPrice": 180,
                            "specification": "180",
                            "activityEventId": 19469,
                            "status": 1
                        }
                    ]
                }
            ],
            "needIdCard":true, //是否需要身份证
            "idCardUseTime":1 //一张身份证在这个场次可以买几张票(需要身份证的时候才需要消费)
        }
      ]
    }

选座到排-获取场次下座位图

URL

get /openapi/v1/rowSeatMap`{?activityEventId,sign,appId,timeStamp**

params

name 意义 取值
activityEventId 场次Id Interger

response

{
    "ticketCategories": [
        {
            "id": 1111,
            "activityEventId": 48707,
            "originPrice": 100,
            "specification": "100元票档",
            "desc": "票档描述"
        }
    ],
    "geoJson": {
        "features": [
            {
                "geometry": {
                    "coordinates": [
                        [
                            [
                                121.43533231830597,
                                31.245640084942956
                            ],
                            [
                                121.43537044215202,
                                31.245680591436763
                            ],
                            [
                                121.43540739655495,
                                31.24571983210264
                            ],
                            [
                                121.43530822777748,
                                31.24579852440571
                            ],
                            [
                                121.4352429728508,
                                31.245698523999128
                            ],
                            [
                                121.43533231830597,
                                31.245640084942956
                            ],
                            [
                                121.43533231830597,
                                31.245640084942956
                            ],
                            [
                                121.43533231830597,
                                31.245640084942956
                            ]
                        ]
                    ],
                    "type": "Polygon"
                },
                "type": "Feature",
                "properties": {
                    "ticketCategoryId": 71308,
                    "name": "207看台",
                    "floor": 0,
                    "rows": [
                        {
                            "ticketAreaId": 1234,
                            "ticketCategoryId": 1111,
                            "name": "1排",
                            "id": 11231,
                            "sectionId": 1234,
                            "activityEventId": 40303,
                            "desc": "1排",
                            "status": 1
                        }
                    ],
                    "type": "section",
                    "fill": "#EB6E9E",
                    "activityEventId": 40303,
                    "desc": "207看台"
                }
            }
        ],
        "type": "FeatureCollection"
    }
}

选座到排-获取价格库存

URL

get /openapi/v1/rowSeatStock`{?activityEventId,sign,appId,timeStamp}

params

name 意义 取值
activityEventId 场次Id Interger

response


{
    "tickets": [
        {
            "areaName": "207看台 11排 座位随机",
            "ticketCategoryId": 1111,
            "id": 109068,
            "eticketProvider":1, //1 :票牛方发券,2:供应商发券
            "salePrice": 100,
            "selling": 2, 
            "ticketAreaId": 1234,
            "rowId": 11231
        },
        {
            "areaName": "207看台 11排 座位随机",
            "ticketCategoryId": 1111,
            "id": 109069,
            "eticketProvider":1, //1 :票牛方发券,2:供应商发券
            "salePrice": 111,
            "selling": 3, 
            "ticketAreaId": 1234,
            "rowId": 11231
        }
    ]
}

选座到座-获取场次下座位图

根据场次,获取该场次对应的座位图信息

URL

get /openapi/v1/seatMap`{?activityEventId,sign,appId,timeStamp**

params

name 意义 取值
activityEventId 场次Id Interger

response

{
    "areas": [
        {
            "areaName": "一楼",
            "ticketSeats": [
                {
                    "col": "43",
                    "x": 1,
                    "y": 15,
                    "id": 5663772,
                    "row": "11",
                    "desc": "1层11排43号",
                    "status": 1,
                    "ticketCategoryId": 1111
                },
                {
                    "col": "41",
                    "x": 2,
                    "y": 15,
                    "id": 5663773,
                    "row": "11",
                    "desc": "1层11排41号",
                    "status": 1,
                    "ticketCategoryId": 2222
                },
                {
                    "col": "37",
                    "x": 4,
                    "y": 15,
                    "id": 5663775,
                    "row": "11",
                    "desc": "1层11排37号",
                    "status": 1,
                    "ticketCategoryId": 1111
                }
            ],
            "width": 49,
            "height": 24
        },
        {
            "areaName": "二楼",
            "ticketSeats": [
                {
                    "col": "43",
                    "x": 1,
                    "y": 16,
                    "id": 5664495,
                    "row": "11",
                    "desc": "2层11排43号",
                    "status": 1,
                    "ticketCategoryId": 1111
                },
                {
                    "col": "41",
                    "x": 2,
                    "y": 16,
                    "id": 5664496,
                    "row": "11",
                    "desc": "2层11排41号",
                    "status": 1,
                    "ticketCategoryId": 1111
                },
                {
                    "col": "39",
                    "x": 3,
                    "y": 16,
                    "id": 5664497,
                    "row": "11",
                    "desc": "2层11排39号",
                    "status": 1,
                    "ticketCategoryId": 1111
                },
                {
                    "col": "37",
                    "x": 4,
                    "y": 16,
                    "id": 5664498,
                    "row": "11",
                    "desc": "2层11排37号",
                    "status": 1,
                    "ticketCategoryId": 1111
                },
                {
                    "col": "35",
                    "x": 5,
                    "y": 16,
                    "id": 5664499,
                    "row": "11",
                    "desc": "2层11排35号",
                    "status": 1,
                    "ticketCategoryId": 1111
                },
                {
                    "col": "33",
                    "x": 6,
                    "y": 16,
                    "id": 5664500,
                    "row": "11",
                    "desc": "2层11排33号",
                    "status": 1,
                    "ticketCategoryId": 1111
                },
                {
                    "col": "31",
                    "x": 7,
                    "y": 16,
                    "id": 5664501,
                    "row": "11",
                    "desc": "2层11排31号",
                    "status": 1,
                    "ticketCategoryId": 1111
                }
            ],
            "width": 49,
            "height": 17
        }
    ],
    "iconUnable": "https://assets.piaoniu.com/icon/seat/unable.png",
    "hasFullViewImage": false,
    "iconChecked": "https://assets.piaoniu.com/icon/seat/checked.png",
    "ticketCategories": [
        {
            "id": 1648025,
            "activityEventId": 377227,
            "originPrice": 1180,
            "specification": "1180元",
            "desc": null,
            "icon": "https://assets.piaoniu.com/icon/mahuaSeat/1.png",
            "status": 1
        },
        {
            "id": 1648026,
            "activityEventId": 377227,
            "originPrice": 580,
            "specification": "580元",
            "desc": null,
            "icon": "https://assets.piaoniu.com/icon/mahuaSeat/2.png",
            "status": 1
        },
        {
            "id": 1648027,
            "activityEventId": 377227,
            "originPrice": 380,
            "specification": "380元",
            "desc": null,
            "icon": "https://assets.piaoniu.com/icon/mahuaSeat/3.png",
            "status": 1
        },
        {
            "id": 1648028,
            "activityEventId": 377227,
            "originPrice": 280,
            "specification": "280元",
            "desc": null,
            "icon": "https://assets.piaoniu.com/icon/mahuaSeat/4.png",
            "status": 1
        },
        {
            "id": 1648029,
            "activityEventId": 377227,
            "originPrice": 180,
            "specification": "180元",
            "desc": null,
            "icon": "https://assets.piaoniu.com/icon/mahuaSeat/5.png",
            "status": 1
        },
        {
            "id": 1648030,
            "activityEventId": 377227,
            "originPrice": 80,
            "specification": "80元",
            "desc": null,
            "icon": "https://assets.piaoniu.com/icon/mahuaSeat/6.png",
            "status": 1
        }
    ]
}

选座到座-获取场次下选座库存

根据场次,获取该场次下的选座库存信息

URL

get /openapi/v1/seatStock`{?activityEventId,sign,appId,timeStamp}

params

name 意义 取值
activityEventId 场次Id Interger

response

{
    "tickets": [{
            "id": 5865257,
            "originPrice": 280.00,
            "ticketCategoryId": 1648028,
      "eticketProvider":1, //1 :票牛方发券,2:供应商发券
            "salePrice": 280.00,
            "selling": 1,
            "areaName": "1层11排43号",
            "ticketSeatId": 5663772
        },
        {
            "id": 5865258,
            "originPrice": 280.00,
            "ticketCategoryId": 1648028,
      "eticketProvider":1, //1 :票牛方发券,2:供应商发券
            "salePrice": 280.00,
            "selling": 1,
            "areaName": "1层11排41号",
            "ticketSeatId": 5663773
        }, {
            "id": 5865260,
            "originPrice": 280.00,
            "ticketCategoryId": 1648028,
      "eticketProvider":1, //1 :票牛方发券,2:供应商发券
            "salePrice": 280.00,
            "selling": 1,
            "areaName": "1层11排37号",
            "ticketSeatId": 5663775
        }
    ]
}

results matching ""

    No results matching ""