门票价格日历

GetCodeProductStock取得指定产品码对应的门票价格日历信息

接口说明

HTTPS请求方式:POST

url:https://www.youdali.com/OpenApi/GetCodeProductStock

使用调试工具调试该接口
参数说明
参数 类型 长度 可空 描述
apiKey string 32 由官方平台提供的apiKey
productCode string 32 产品码
是双方在对接过程中,约定好的。通过产品码,可以在我方找到唯一对应的一个产品。
date datetime 查询的库存日期,格式为"2021-08-01"

注:如果为空默认返回近30天(部分产品限制预定周期的仅返回可订日期)库存清单

sign string 32

由apiSecret,与参数productCode、date生成的待签名字符串,通过MD5签名运算后的值。

签名规则
返回说明

Json格式的Result对象

{
    "ErrorCode":0,
    "Success":true,
    "Message":null,
    "HasException":false,
    "Value":{
        "ProductCode":"S241",
        "ProductName":"喜洲严家大院博物馆(三坊一照壁、四合五天井)",
        "ProductType":1,
        "Stocks":[
            {
                "AgentPrice":15,
                "DisplayDate":"02-04 周日",
                "ListingPrice":15,
                "Stock":999,
                "Date":"2024-02-04",
                "SalePrice":15
            },
            {
                "AgentPrice":15,
                "DisplayDate":"02-05 周一",
                "ListingPrice":15,
                "Stock":999,
                "Date":"2024-02-05",
                "SalePrice":15
            },
            {
                "AgentPrice":15,
                "DisplayDate":"今天 02-06",
                "ListingPrice":15,
                "Stock":999,
                "Date":"2024-02-06",
                "SalePrice":15
            },
            {
                "AgentPrice":15,
                "DisplayDate":"明天 02-07",
                "ListingPrice":15,
                "Stock":999,
                "Date":"2024-02-07",
                "SalePrice":15
            },
            {
                "AgentPrice":15,
                "DisplayDate":"02-08 周四",
                "ListingPrice":15,
                "Stock":999,
                "Date":"2024-02-08",
                "SalePrice":15
            },
            ...
        ]
    },
    "Tag":null
}
返回值 描述
Success 本次调用是否成功
ErrorCode 错误代码
Message 失败时为异常信息,成功时为null
Value 价格日历信息
Tag 如无特别说明,在返回数据带分页的情况下,Tag一般指查询记录的总条数,其它情况为null