# 创建使用忠诚积分购买指定商品的订单 创建包含指定商品的订单,并完全使用用户的忠诚积分支付。如需一次购买多个商品,请在quantity参数中传入购买数量。 Endpoint: POST /v2/project/{project_id}/payment/item/{item_sku}/loyalty_point/{loyalty_point_sku} Version: 2.0.0 Security: XsollaLoginUserJWT ## Path parameters: - `project_id` (integer, required) 项目ID。您可以在发布商帐户的项目名称旁找到此参数;使用项目时,也可以在浏览器地址栏中找到此参数。URL格式如下:https://publisher.xsolla.com//projects/。 Example: 44056 - `item_sku` (string, required) 商品SKU。 Example: "booster_mega_1" - `loyalty_point_sku` (string, required) 忠诚积分SKU。 Example: "3fa85f64-5717-4562-b3fc-2c963f66afa6" ## Request fields (application/json): - `quantity` (number) Number of items to purchase. 1 by default. ## Response 200 fields (application/json): - `order_id` (integer) 订单ID。 ## Response 422 fields (application/json): - `errorCode` (integer) Example: 9971 - `statusCode` (integer) Example: 422 - `errorMessage` (string) 错误消息。 Example: "[0401-9971]: Not enough loyalty points"