id 来源于插件所同步的礼包 ID,MP 会从 id 中自动识别相对应的礼包
id
业务代码请参考【普通订单】接口
{ "id": 1, "type": "WECHAT", "player": "Ran", "quantity": 1, "tags": [ "WEB" ] }
curl --location --request POST '/v2/trade/gift' \ --header 'Authorization: Bearer {{token}}' \ --header 'Content-Type: application/json' \ --data-raw '{ "id": 1, "type": "WECHAT", "player": "Ran", "quantity": 1, "tags": [ "WEB" ] }'
{ "code": 200, "data": { "price": 500, "order": "21058ceecb73d0db5f715b320fd99d72", "qrcode": "wxp://f2f0WeOU3IZ4AXEv3W45JEE2PBy6BznYKfhoylgEZoQsQgI", "expiredAt": "2023-05-05 22:11:44" }, "msg": "成功" }