版本:202201
禁用礼品卡
POST/openapi/2022-01/gift_cards/:id/disable
通过礼品卡 ID 禁用指定礼品卡。
请求
Path参数
id string必填
礼品卡 ID。
响应
- 200
200
- application/json
- 数据结构
- 示例
- Result
数据结构
gift_card object
idstring
示例:
377006280092433706last_charactersstring
示例:
ghjgbalancestring
示例:
100.00initial_valuestring
示例:
100.00notestring
示例:
noteexpires_onstring
示例:
2025-11-01T00:00:00Zdisabled_atstring
示例:
2024-05-07T02:38:01Zenabledboolean
默认值:
true示例:
truecreated_atstring
示例:
2024-05-06T10:06:04Zupdated_atstring
示例:
2024-05-07T02:38:01Zstatusstring
示例:
disablecurrencystring
示例:
USDline_item_id
order_id
user_id
template_suffix
customer_idstring
示例:
8b91ccbd-37d0-4897-aac6-5082e64ca374{
"gift_card": {
"id": "377006280092433706",
"last_characters": "ghjg",
"balance": "100.00",
"initial_value": "100.00",
"note": "note",
"expires_on": "2025-11-01T00:00:00Z",
"disabled_at": "2024-05-07T02:38:01Z",
"enabled": true,
"created_at": "2024-05-06T10:06:04Z",
"updated_at": "2024-05-07T02:38:01Z",
"status": "disable",
"currency": "USD",
"line_item_id": {},
"order_id": {},
"user_id": {},
"template_suffix": {},
"customer_id": "8b91ccbd-37d0-4897-aac6-5082e64ca374"
}
}
{
"gift_card": {
"id": "377006280092433706",
"last_characters": "ghjg",
"balance": "100.00",
"initial_value": "100.00",
"note": "note",
"expires_on": "2025-11-01T00:00:00Z",
"disabled_at": "2024-05-07T02:38:01Z",
"enabled": true,
"created_at": "2024-05-06T10:06:04Z",
"updated_at": "2024-05-07T02:38:01Z",
"status": "disable",
"currency": "USD",
"line_item_id": null,
"order_id": null,
"user_id": null,
"template_suffix": null,
"customer_id": "8b91ccbd-37d0-4897-aac6-5082e64ca374"
}
}