文档中心 > API类目 > 大麦票务云分销API

alibaba.damai.btoyun.sync.project (项目数据同步)

同步项目场馆等信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
project_root ProjectParam 必须 项目根对象
  • project
  • ProjectDto
  • 必须
  • 项目数据
  • └ city_id
  • Number
  • 必须
  • 10
  • 城市id
  • └ country_id
  • Number
  • 必须
  • 20
  • 国家id
  • └ extend_info
  • String
  • 可选
  • 扩展信息
  • 扩展信息
  • └ first_category
  • String
  • 必须
  • 10011
  • 一级分类
  • └ has_seat
  • Boolean
  • 必须
  • true
  • 是否有座位
  • └ id
  • String
  • 必须
  • 123456
  • 项目id
  • └ name
  • String
  • 必须
  • 周杰伦成都演唱会
  • 项目名称
  • └ performer
  • String
  • 可选
  • 周杰伦
  • 表演人
  • └ post_url
  • String
  • 可选
  • http://google.com
  • 项目海报url
  • └ remark
  • String
  • 可选
  • 备注
  • └ secondary_category
  • String
  • 必须
  • 1001100
  • 二级分类
  • └ third_category
  • String
  • 必须
  • 100110011
  • 三级分类
  • └ venue_id
  • String
  • 必须
  • 20
  • 场馆id
  • └ need_contact_email
  • Boolean
  • 可选
  • true/false
  • 是否需要联系人邮箱
  • └ phoenix_project
  • Boolean
  • 可选
  • 仅麦座v6使用,第三方传false
  • 是否为凤凰项目,默认false
  • └ approval_code
  • String
  • 可选
  • BJ123
  • 批文code
  • └ approval_url
  • String
  • 可选
  • test
  • 批文号
  • └ project_types
  • String []
  • 可选
  • 212
  • 项目类型
  • └ cancel_order_time
  • Number
  • 可选
  • 900
  • 三方商家消单时间,单位秒
  • venue
  • VenueDto
  • 必须
  • 场馆对象
  • └ address
  • String
  • 可选
  • 四川体育场
  • 地址
  • └ desc
  • String
  • 可选
  • 描述
  • └ id
  • String
  • 必须
  • 20
  • 场馆id
  • └ latitude
  • String
  • 可选
  • 0
  • 纬度
  • └ longitude
  • String
  • 可选
  • 0
  • 经度
  • └ name
  • String
  • 必须
  • 四川体育场
  • 场馆名称
  • └ venue_image
  • String
  • 可选
  • 场馆图片,base64格式
  • └ message_id
  • String
  • 可选
  • project-message
  • 消息id
  • └ seller_id
  • String
  • 必须
  • qazqwer
  • 商家id
  • project_base_info
  • ProjectBaseInfoDto
  • 可选
  • 项目详情信息
  • └ vendor_id
  • Number
  • 可选
  • 12
  • 商家id
  • └ project_id
  • String
  • 可选
  • 12
  • 项目id
  • └ project_name
  • String
  • 可选
  • 德云社xxx
  • 项目名称
  • └ standard_project_name
  • String
  • 可选
  • 德云社xxx
  • 标准项目名称
  • └ recommend
  • String
  • 可选
  • test
  • 推荐语
  • └ child_ticket_type
  • Number
  • 可选
  • 1
  • 儿童购票类型/儿童入场提示
  • └ child_ticket_desc
  • String
  • 可选
  • test
  • 儿童购票描述
  • └ classify_label
  • String
  • 可选
  • test
  • 主站类目标签
  • └ deposit_type
  • Number
  • 可选
  • 1
  • 寄存说明类型
  • └ deposit_desc
  • String
  • 可选
  • test
  • 寄存说明 有寄存处时填写
  • └ entry_time
  • Number
  • 可选
  • 1
  • 入场时间类型
  • └ entry_time_desc
  • String
  • 可选
  • test
  • 入场时间描述
  • └ lowest_show_chapter
  • String
  • 可选
  • 1
  • 最低演出曲目数
  • └ lowest_show_time
  • String
  • 可选
  • 1小时
  • 最低演出时长
  • └ main_actor
  • String
  • 可选
  • test
  • 主要演员
  • └ posters
  • String
  • 可选
  • test
  • 海报
  • └ restricted_item
  • String
  • 可选
  • test
  • 禁止携带物品
  • └ show_time
  • Number
  • 可选
  • 1
  • 演出时长
  • └ show_time_desc
  • String
  • 可选
  • test
  • 演出时长描述
  • └ seating_mode
  • Number
  • 可选
  • 0
  • 入座方式:0对号入座,1不对号入座,2对区不对号,3无座位,4多场次复合情况
  • └ important_note
  • String
  • 可选
  • test
  • 重要说明
  • └ introduce
  • String
  • 可选
  • test
  • 演出介绍/项目简介
  • └ shuttle_bus
  • Number
  • 可选
  • 1
  • 班车:1、有班车/0、无班车
  • └ camping
  • Number
  • 可选
  • 1
  • 露营 1、有露营/0、无露营
  • └ park
  • String
  • 可选
  • test
  • 停车信息
  • └ lang
  • Number
  • 可选
  • 0
  • 语言 0普通话/1粤语/2英语/3其他
  • └ subtitle
  • Number
  • 可选
  • 0
  • 字幕 0中文字幕/1英文字幕/2中英文/3无字幕/4其他
  • └ age_children
  • Number
  • 可选
  • 0
  • 适龄儿童 0、满3岁/1、满5岁/2、满7岁/3、全年龄/4、其他
  • └ performance_type
  • Number
  • 可选
  • 0
  • 演出形式 0真人/1人偶/2放映/3皮影/4其他
  • └ guide
  • Number
  • 可选
  • 1
  • 导览 1有导览/0无导览
  • └ photo
  • Number
  • 可选
  • 1
  • 拍照 1允许拍照/0不允许拍照
  • └ t_sub_classify_code
  • String
  • 可选
  • 12
  • 主站二级类目code
  • └ t_sub_classify_name
  • String
  • 可选
  • test
  • 主站二级类目name
  • └ t_third_classify_code
  • String
  • 可选
  • test
  • 主站三级类目code
  • └ t_third_classify_name
  • String
  • 可选
  • test
  • 主站三级类目name

响应参数

名称 类型 示例值 描述
result YunResult result result
  • └ code
  • Number
  • 200
  • code
  • └ success
  • Boolean
  • true
  • success
  • └ message
  • String
  • success
  • message
  • └ model
  • String
  • {}
  • model

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaDamaiBtoyunSyncProjectRequest req = new AlibabaDamaiBtoyunSyncProjectRequest();
AlibabaDamaiBtoyunSyncProjectRequest.ProjectParam obj1 = new AlibabaDamaiBtoyunSyncProjectRequest.ProjectParam();
AlibabaDamaiBtoyunSyncProjectRequest.ProjectDto obj2 = new AlibabaDamaiBtoyunSyncProjectRequest.ProjectDto();
obj2.setCityId(10L);
obj2.setCountryId(20L);
obj2.setExtendInfo("扩展信息");
obj2.setFirstCategory("10011");
obj2.setHasSeat(true);
obj2.setId("123456");
obj2.setName("周杰伦成都演唱会");
obj2.setPerformer("周杰伦");
obj2.setPostUrl("http://google.com");
obj2.setRemark("无");
obj2.setSecondaryCategory("1001100");
obj2.setThirdCategory("100110011");
obj2.setVenueId("20");
obj2.setNeedContactEmail(true/false);
obj2.setPhoenixProject(仅麦座v6使用,第三方传false);
obj2.setApprovalCode("BJ123");
obj2.setApprovalUrl("test");
obj2.setProjectTypes("212");
obj2.setCancelOrderTime(900L);
obj1.setProject(obj2);
AlibabaDamaiBtoyunSyncProjectRequest.VenueDto obj3 = new AlibabaDamaiBtoyunSyncProjectRequest.VenueDto();
obj3.setAddress("四川体育场");
obj3.setDesc("无");
obj3.setId("20");
obj3.setLatitude("0");
obj3.setLongitude("0");
obj3.setName("四川体育场");
obj3.setVenueImage("无");
obj1.setVenue(obj3);
obj1.setMessageId("project-message");
obj1.setSellerId("qazqwer");
AlibabaDamaiBtoyunSyncProjectRequest.ProjectBaseInfoDto obj4 = new AlibabaDamaiBtoyunSyncProjectRequest.ProjectBaseInfoDto();
obj4.setVendorId(12L);
obj4.setProjectId("12");
obj4.setProjectName("德云社xxx");
obj4.setStandardProjectName("德云社xxx");
obj4.setRecommend("test");
obj4.setChildTicketType(1L);
obj4.setChildTicketDesc("test");
obj4.setClassifyLabel("test");
obj4.setDepositType(1L);
obj4.setDepositDesc("test");
obj4.setEntryTime(1L);
obj4.setEntryTimeDesc("test");
obj4.setLowestShowChapter("1");
obj4.setLowestShowTime("1小时");
obj4.setMainActor("test");
obj4.setPosters("test");
obj4.setRestrictedItem("test");
obj4.setShowTime(1L);
obj4.setShowTimeDesc("test");
obj4.setSeatingMode(0L);
obj4.setImportantNote("test");
obj4.setIntroduce("test");
obj4.setShuttleBus(1L);
obj4.setCamping(1L);
obj4.setPark("test");
obj4.setLang(0L);
obj4.setSubtitle(0L);
obj4.setAgeChildren(0L);
obj4.setPerformanceType(0L);
obj4.setGuide(1L);
obj4.setPhoto(1L);
obj4.setTSubClassifyCode("12");
obj4.setTSubClassifyName("test");
obj4.setTThirdClassifyCode("test");
obj4.setTThirdClassifyName("test");
obj1.setProjectBaseInfo(obj4);
req.setProjectRoot(obj1);
AlibabaDamaiBtoyunSyncProjectResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_damai_btoyun_sync_project_response>
    <result>
        <code>200</code>
        <success>true</success>
        <message>success</message>
        <model>{}</model>
    </result>
</alibaba_damai_btoyun_sync_project_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

返回
顶部