文档中心 > International Hotel

Batch covering update

更新时间:2016/12/01 访问次数:765

Request of Business Parameters

Method

taobao.xhotel.multiplerates.update

Example

http://gw.api.tbsandbox.com/router/rest?sign=BD80325492F8AB17E179AD7688262E0E&timestamp=2016-11-30+21%3A50%3A09&v=2.0&app_key=1023280175&method=taobao.xhotel.multiplerates.update&partner_id=top-apitools&session=6102727faafc05d9cd6a3db66db6185d1411a4b422b08d03688598345&format=xml&rate_quota_map=%5B+%7B+%22useRoomInventory%22%3A+false%2C+%22outRoomId%22%3A+%2211222%22%2C+%22ratePlanCode%22%3A+%2210000%22%2C++%22currencyCode%22%3A+%22CNY%22%2C%22lockStartTime%22%3A%22%22%2C%22lockEndTime%22%3A%22%22%2C%22priceCalendar%22%3A+%5B+%7B+%22date%22%3A+%222015-07-13%22%2C+%22inventoryPrice%22%3A+%5B+%7B+%22lengthOfStay%22%3A+2%2C+%22rateSwitch%22%3A+1%2C+%22quota%22%3A+100%2C+%22price%22%3A+%5B+%7B+%22occupancy%22%3A+1%2C%22childnum%22%3A+1%2C+%22infantnum%22%3A+1%2C+%22ckinSwitch%22%3A+1%2C+%22ckoutSwitch%22%3A+1%2C+%22basePrice%22%3A+20000%2C+%22taxAndFee%22%3A+20000%2C+%22addBedPrice%22%3A+12233%2C+%22addPersonPrice%22%3A+20000+%7D+%5D+%7D+%5D+%7D+%5D+%7D+%5D

Notes

O: Optional; R: Required; SR: Special Required

Name Type O/R/SR Example Limitation Description
rate_quota_map String R [ { "useRoomInventory": false, "outRoomId": "abc", "ratePlanCode": "WHL03", "vendor": "taobao", "currencyCode": "CNY", "priceCalendar": [ { "date": "2015-07-13", "inventoryPrice": [ { "lengthOfStay": 2, "rateSwitch": 1, "quota": 100, "price": [ { "occupancy": 1,"childnum": 1, "infantnum": 1, "ckinSwitch": 1, "ckoutSwitch": 1, "basePrice": 20000, "taxAndFee": 20000, "addBedPrice": 12233, "addPersonPrice": 20000 } ] } ] } ] } ]   Quota modification of rate and inventory information. The data in request parameters will be used to overwrite the original quota rate data. A: useRoomInventory: Whether to use room shared inventory, optional values: true, false. In case of false, rate private inventory is used and the data will be written into inventory list if inventory is filled. B: date: date within T days and T+180 days (T means the current day), which shall not be repeated. C: basePrice: base price, an integer, range: 1-99999999, in RMB Fen. D: quota, inventory, an integer, range: 0 -999 (quantity inventory), supporting status inventory, 60000 (status inventory closed), 61000 (status library opened). E: occupancy: number of guests, range: 1-10. F: lengthofStay, length of stay, range: 1-10; G: taxAndFee, total taxes and fees. H: addBedPrice: additional bed price. I: addPersonPrice, additional person price; J: rateSwitch: room status, 1: open; 0: closed. K: outRoomId and ratePlanCode may be used to update quota inventory. L: chidnum, number of children. M: infantnum, number of infants. N: ckinSwitch, checkin switch (0: enabled; 1: disabled). O: ckoutSwitch, checkout switch (0: enabled; 1: disabled).  

Response

Name Type Example Description
gid_and_rpid_occupancy_lengthofstay String [] 1000-12300-1-1 Goods id, room rate id, occupancy, length of stay
warnmessage String [{gid:123,rpId:234,occupancy:2,lengthofstay:2,code:-1,msg:parameter format error}] If some update fails in quota update, the reason for partial failure will appear.  

Error Code

FAQ

关于此文档暂时还没有FAQ
返回
顶部