Skip to content

Redeem Ocard Member Tickets Points

Description

核銷 Ocard 會員票券與點數。

Resource

POST /v1/ticket/redeem-ocard-member-tickets-points

Authorization

採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login

Request Body Parameters

Name Type Description
shop_id string 門市編號
order_id string 訂單編號
ticket_ids list[string] 要核銷的 Ocard 會員票券編號列表,沒有要核銷的票券也請帶空資料,例如 [""]
mobile string Ocard 會員手機號碼
points integer 要核銷的 Ocard 會員點數,沒有要核銷的點數也請帶 0。

Request Example- 僅核銷點數

{
    "shop_id": "000030",
    "order_id": "00003025121700001",
    "ticket_ids": [""],
    "mobile": "0903515908",
    "points": 123
}

Request Example- 僅核銷票券

{
    "shop_id": "000030",
    "order_id": "00003025121700001",
    "ticket_ids": ["T00001","T00002"],
    "mobile": "0903515908",
    "points": 0
}

Request Example- 同時核銷票券與點數

{
    "shop_id": "000030",
    "order_id": "00003025121700001",
    "ticket_ids": ["T00001","T00002"],
    "mobile": "0903515908",
    "points": 123
}

Response Example

204 NO CONTENT