# 根据ID获取当前用户的优惠链 根据优惠链ID获取当前用户的优惠链。 Endpoint: GET /v2/project/{project_id}/user/offer_chain/{offer_chain_id} Version: 2.0.0 Security: XsollaLoginUserJWT ## Path parameters: - `project_id` (integer, required) 项目ID。您可以在您的发布商帐户项目名称旁边找到。 Example: 44056 - `offer_chain_id` (integer, required) 优惠链ID。 Example: 101 ## Response 200 fields (application/json): - `date_end` (string,null) 优惠链结束日期。可为null,若date_end为null则无时间限制。 Example: "2020-04-15T18:16:00+05:00" - `date_start` (string) 优惠链开始日期。 Example: "2020-04-15T18:16:00+05:00" - `description` (string,null) 优惠链描述。 Example: "Major weekly quest" - `id` (integer) 优惠链ID。 Example: 9 - `name` (string) 优惠链名称。 Example: "Weekly quest" - `next_step_number` (integer,null) 下一步优惠链步骤编号,若优惠链已完成则为null。 Example: 1 - `order` (integer) 定义排列顺序。 Example: 1 - `recurrent_schedule` (object,null) 优惠链的重置周期。 - `recurrent_schedule.interval_type` (string) 优惠链重置频率。 Enum: "weekly", "monthly", "hourly" - `recurrent_schedule.reset_next_date` (integer) 计算的下次优惠链重置的日期和时间,Unix时间戳格式。例如:月度优惠链重置从2024-03-01 01:00(吉隆坡时间,GMT+8)开始,下次重置为2024-04-01 01:00(吉隆坡时间,GMT+8),对应GMT+0为2024-03-31 17:00,Unix时间戳为1711904400000。示例:1711904400000 - `steps` (array) - `steps.is_claimed` (boolean) 是否已领取或购买了该步骤奖励。 - `steps.is_free` (boolean) 是否为免费步骤:如为true,需通过领取免费优惠链步骤调用来领取。如为false,需通过为付费优惠链步骤创建订单调用来购买。 - `steps.items` (array) - `steps.items.bundle_type` (string,null) Enum: "standard", "virtual_currency_package" - `steps.items.content` (array,null) - `steps.items.description` (string,null) 商品描述。 - `steps.items.image_url` (string,null) 图像URL。 Example: "https://image.example.com" - `steps.items.is_free` (boolean) 如果为true,则该商品为免费。 - `steps.items.item_id` (integer) 内部唯一物品ID。 Example: 1 - `steps.items.name` (string) 商品名称。 - `steps.items.quantity` (integer) 商品数量。 Example: 1 - `steps.items.sku` (string) 唯一商品ID。 SKU只能包含大小写英文字母和数字字符、句点、破折号和下划线。 Example: "booster_mega_1" - `steps.items.type` (string) 商品类型:virtual_good/virtual_currency/bundle/unit。 - `steps.step_loyalty_rewards` (array,null) - `steps.step_loyalty_rewards.amount` (integer) 忠诚积分数量。 Example: 1 - `steps.step_loyalty_rewards.description` (string) 忠诚积分描述。 Example: "First Loyalty Point Desc" - `steps.step_loyalty_rewards.name` (string) 忠诚积分名称。 Example: "First Loyalty Point" - `steps.step_loyalty_rewards.sku` (string) 忠诚积分SKU。 Example: "0c745ef0-4243-46e1-aa90-54dee07da622" - `steps.step_number` (integer) 步骤编号。 Example: 2 - `steps.step_price` (object,null) - `steps.step_price.amount` (number, required) 步骤的真实货币价格。 Example: 99.99 - `steps.step_price.currency` (string, required) 商品价格货币。每[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217)。 Example: "USD" - `steps.step_vp_rewards` (array,null) 来自奖励系统的奖励积分数组,作为奖励发放。 - `steps.step_vp_rewards.amount` (integer) 奖励积分的数量。 - `steps.step_vp_rewards.is_clan` (boolean) 该奖励积分是否用于公会奖励链。 Example: true - `steps.step_vp_rewards.name` (string) 奖励积分名称。 - `steps.step_vp_rewards.sku` (string) 唯一奖励积分ID。 ## Response 404 fields (application/json): - `errorCode` (integer) Example: 1102 - `errorMessage` (string) Example: "[0401-1102]: Unprocessable Entity. The property `property_name` is required" - `errorMessageExtended` (object,null) - `statusCode` (integer) Example: 422 - `transactionId` (string) Example: "x-x-x-x-transactionId-mock-x-x-x"