Skip to content

Integrate LINE QRCode Refund

Description

LINE Pay 條碼支付退款。
LINE Pay 金流參數:通路編號、通路密鑰
情境:

  • 依廠商金流參數設定進行付款:金流參數為必填、門市代碼不需要填
  • 依全通路金流參數設定進行付款:門市代碼為必填、金流參數不需要填

Resource

POST /v1/payment/integrate/refund

Authorization

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

Request Body Parameters

Name Type Description
type string 付款方式,請輸入 LINE_QRCODE_PAY
request Request 請求參數
store_id string 門市代碼
(optional)
is_test boolean 是否為測試環境
  • 在全通路正式環境預設為false
  • 在全通路測試環境預設為true
(optional)

Request Body Parameters - Request

Name Type Description
channel_id string 通路編號
(optional)
channel_secret string 通路密鑰
(optional)
orderId string 交易編號
refundAmount string 退款金額
(optional)
merchant_device_profile_id string 門市設備配置識別碼
格式:{門市編號}_{機號},例如 000030_k1
(optional)

Request

{
  "type": "LINE_QRCODE_PAY",
  "request": {
    "channel_id": "1606993764",
    "channel_secret": "101c18448bf38e160757d53417287bd9",
    "orderId": "20140101123456789",
    "merchant_device_profile_id": "000030_k1"
  },
  "store_id": "0",
  "is_test": false
}

Response Body Parameters

Name Type Description
returnCode string 結果代碼,0000為成功
returnMessage string 結果訊息或失敗理由
info Info 相關資訊

Response Body Parameters - Info

Name Type Description
refundTransactionId string 退款的交易編號(19 位數)
refundTransactionDate string 退款的交易日期與時間

Response

{
  "returnCode": "0000",
  "returnMessage": "success",
  "info": {
    "refundTransactionId": "2019010112345678910",
    "refundTransactionDate": "2019-01-01T01:01:00Z"
  }
}