禁用礼品卡
POST https://{handle}.myshopline.com/admin/openapi/v20250601/gift_cards/:gift_card_id/disable.json
handle
:店铺的唯一标识符,值为店铺域名的前缀。例如,域名为 open001.myshopline.com
的店铺,其 handle
是 open001
。禁用礼品卡
路径参数
- gift_card_id string required礼品卡IDExample:
30157043359245339231360282
请求头
- Content-Type required字段值固定为
application/json; charset=utf-8
- Authorization string required资源的访问令牌。请参考 应用授权 获取访问令牌,然后将获取到的访问令牌以 Bearer 格式传入Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
响应
- 200
- 401
- 429
更多状态码信息请参考 HTTP 状态码
响应头
traceId
traceId
响应体
gift_cardobject
礼品卡信息api_client_id string调用方IDExample:36d2bc4e97af056677b61c529d9e3a3f7396040d
balance string礼品卡余额Example:200
created_at string礼品卡创建时间Example:2023-08-16T23:59:59+08:00
currency string礼品卡面值对应币种Example:CNY
customer_id string当前礼品卡分配给的客户的客户IDExample:4200113946
disabled_at string礼品卡禁用时间Example:2023-08-16T23:59:59+08:00
expires_on string当前礼品卡的到期时间,null为永不过期Example:2023-08-16T23:59:59+08:00
id string礼品卡IDExample:30157043359245339231360282
initial_value string礼品卡初始金额Example:200
last_characters stringcode的最后四位字符Example:d246
line_item_id string关联的订单物品Example:18060183094426803997483534
note string当前礼品卡的备注信息Example:This is a note
order_id string关联的订单IDExample:24060486231247568944830202
updated_at string礼品卡更新时间Example:2023-08-16T23:59:59+08:00
user_id string用户在admin界面上创建礼品卡时的管理员账户IDExample:4214250478
API Explorer
调试台
示例代码
这篇文章对你有帮助吗?