跳到主要内容
版本:202201

查询礼品卡详情

GET 

/openapi/2022-01/gift_cards/:id

通过礼品卡 ID 获取指定礼品卡的详情。

请求

Path参数

    id string必填

    礼品卡 ID。

响应

200

数据结构
    gift_card object
    idstring
    示例: 377026890382183978
    last_charactersstring
    示例: 218p
    balancestring
    示例: 100.00
    initial_valuestring
    示例: 100.00
    notestring
    示例: note
    expires_on
    disabled_at
    enabledboolean
    默认值: true
    示例: true
    created_atstring
    示例: 2024-05-06T10:12:05Z
    updated_atstring
    示例: 2024-05-06T10:12:05Z
    statusstring
    示例: enable
    currencystring
    示例: USD
    line_item_id
    order_id
    user_idstring
    示例: cba51e16-ac53-43d8-a7a3-161c5b1ecd8e
    template_suffix
    customer_idstring
    示例: 2dd957e3-2051-4cdf-8584-9c0046b4d1ae