Skip to content

Auto Send Tickets

Description

自動配發票券。

Resource

POST /v1/ticket/auto_send

Authorization

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

Request Body Parameters

Name Type Description
members Member[] 會員列表

Request Body Parameters - Member

Name Type Description
vip_id string 會員編號
old_vip_group_id string 異動前的會員群組編號
new_vip_group_id string 異動後的會員群組編號
update_type string 更新類型
ALLOWED VALUES:
  • UPGRADE
  • DOWNGRADE
  • RENEW
  • CHANGE
seal_quantity int 集章數量

Request Body Example

{
  "members": [
    {
      "vip_id": "00000APP077650",
      "old_vip_group_id": "Z01",
      "new_vip_group_id": "Z02",
      "update_type": "UPGRADE",
      "seal_quantity": 5
    },
    {
      "vip_id": "00000APP087873",
      "old_vip_group_id": "Z01",
      "new_vip_group_id": "Z01",
      "update_type": "RENEW",
      "seal_quantity": 0
    }
  ]
}

Response

Status-Code: 204 No Content