跳轉至

每个市场的购买、取消、退款历史

獲取購買歷史

基礎

獲取應用程式在給定期間的購買歷史。

  描述
請求 URL https://hiveiap-void.qpyou.cn/api/creator/market_purchase_list
方法 POST
HTTP 標頭
  • Content-type: application/json
  • Authorization: Bearer (可選)
    • 只有當 Hive 控制台的認證標誌 AppCenter > Game Management > 遊戲列表: 選擇您公司的遊戲 > 遊戲 詳細資訊 > 基本資訊 設置為 Y 時,您才能使用 Bearer 令牌。
    • Bearer 令牌是 AppCenter > Game Management > 遊戲列表: 選擇您公司的遊戲 > 遊戲 詳細資訊 > 基本資訊 中的認證密鑰。
回應格式 JSON

請求

名稱 類型 必填 描述
market 字串 O 市場名稱: google, apple, lebi, onestore, amazon, glaxystore, huawei, funtap, oppo, vivo, facebook, steam, hivestore (PG 付款)
appid 字串 O 應用程式的appid
startdate 字串 O 要搜尋的日期範圍的開始日期 (範例: 2023-07-10)
enddate 字串 O 要搜尋的日期範圍的結束日期 (範例: 2023-07-16,最大搜尋範圍為7天,包括開始日期和結束日期)
transactionid 陣列 X
  • 只有這裡提供的購買 transactionids 將成為購買歷史搜尋的目標 (範例: [ 'GPA.3383-2895-4485-57050', 'GPA.3381-4857-7750-97692' ])
  • 當提供 playerids 時,API 將僅返回由 playerids 進行的 transactionids 的結果 (playerids 和 transactionids 為 AND 條件)。
  • 陣列的最大長度為 50。
playerid 陣列 X
  • 只有這裡提供的 playerids 進行的購買交易將成為購買歷史搜尋的目標 (範例: [ '20000015911', '20000016015' ])
  • 當提供購買 transactionids 時,API 將僅返回由 playerids 進行的 transactionids 的結果 (transactionids 和 playerids 為 AND 條件)。
  • 陣列的最大長度為 100。
page_token 字串 X
  • 每個 API 回應頁面的最大結果數為 100。
  • 要請求上一頁/下一頁,請使用此 token 再次調用 API。

回應

名稱 類型 必填 描述
result_code 整數 O 回應代碼 (20000: 成功)
result_message 字串 O 回應代碼的結果訊息
data 陣列 O 回應資料
ㄴdate 字串 O 呼叫此 API 的日期 (範例: 20230714)
ㄴplayerid 字串 O 玩家 ID (範例: 20000015911)
ㄴpurchase_price 整數 O 購買商品的價格 (範例: 10000)
ㄴpurchase_currency 字串 O 購買的貨幣 (範例: KRW, USD)
ㄴpurchase_date 字串 O 購買日期 (KST)
ㄴhiveiap_market_transaction_id 字串 O 購買交易 ID (範例: GPA.3327-1260-4622-40400)
ㄴmarket 字串 O 發生購買的市場 (範例: APPLE, GOOGLE)
prev_page_token 字串 X 前一頁的令牌 (如果前一頁不存在則不返回)
next_page_token 字串 X 下一頁的令牌 (如果下一頁不存在則不返回)

Request examples<

curl -L -v -d '{"market": "google", "appid": "com.com2us.hivesdk.normal.freefull.google.global.android.common","startdate": "2023-05-30","enddate": "2023-05-30"}' -H "Content-Type: application/json" -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJIaXZlIiwiaWF0IjoxNjAzNzc4OTU2LCJqdGkiOiIxODczMTExMzIwIn0.OxWo4R6UdI0BLP1ckt8RlMFrPAb5H7TNedmLFV1Cawc" https://hiveiap-void.qpyou.cn/api/creator/market_purchase_list

使用page_token的示例

curl -L -v -d '{"page_token": "73U1mdaEvFRbJ5Zl/boHQY2Q3SQPJeWmKjO86UeLn4kDU72yzAfgmlciFvzTU6yaP0aZEGXTuRD2bLd9q48M+EVhm1glGZzHFj8MQvmQ1spuN9e0FzxczvWX27bDsObDGIJKb44Yg9GkMr6Aoq/Lrf855zKm20Z5+P9pJK8114iJZUHUhQT1E4LyrvdRvQCRlWl1Y8oHRAP4P4hsvwJO618K6/shJ86VqLbIs6bVW1w="}' -H "Content-Type: application/json" -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJIaXZlIiwiaWF0IjoxNjAzNzc4OTU2LCJqdGkiOiIxODczMTExMzIwIn0.OxWo4R6UdI0BLP1ckt8RlMFrPAb5H7TNedmLFV1Cawc" https://hiveiap-void.qpyou.cn/api/creator/market_purchase_list

使用transactionid的範例

curl -L -v -d '{"market": "google", "appid": "com.com2us.hivesdk.normal.freefull.google.global.android.common","startdate": "2023-05-30","enddate": "2023-05-30","transactionid" : ["GPA.3343-6111-5443-03063","GPA.3354-3096-3913-84573"]}' -H "Content-Type: application/json" -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJIaXZlIiwiaWF0IjoxNjAzNzc4OTU2LCJqdGkiOiIxODczMTExMzIwIn0.OxWo4R6UdI0BLP1ckt8RlMFrPAb5H7TNedmLFV1Cawc" https://hiveiap-void.qpyou.cn/api/creator/market_purchase_list

使用playerid的示例

curl -L -v -d '{"market": "google", "appid": "com.com2us.hivesdk.normal.freefull.google.global.android.common","startdate": "2023-05-30","enddate": "2023-05-30","playerid" : ["25647", "25645"]}' -H "Content-Type: application/json" -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJIaXZlIiwiaWF0IjoxNjAzNzc4OTU2LCJqdGkiOiIxODczMTExMzIwIn0.OxWo4R6UdI0BLP1ckt8RlMFrPAb5H7TNedmLFV1Cawc" https://hiveiap-void.qpyou.cn/api/creator/market_purchase_list

使用 transactionidplayerid 的示例 (AND 條件)

curl -L -v -d '{"market": "google", "appid": "com.com2us.hivesdk.normal.freefull.google.global.android.common","startdate": "2023-05-30","enddate": "2023-05-30","transactionid" : ["GPA.3343-6111-5443-03063","GPA.3354-3096-3913-84573"],"playerid" : ["25647", "25645"]}' -H "Content-Type: application/json" -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJIaXZlIiwiaWF0IjoxNjAzNzc4OTU2LCJqdGkiOiIxODczMTExMzIwIn0.OxWo4R6UdI0BLP1ckt8RlMFrPAb5H7TNedmLFV1Cawc" https://hiveiap-void.qpyou.cn/api/creator/market_purchase_list

 

> POST /api/creator/market_purchase_list HTTP/2
> Host: hiveiap-void.qpyou.cn
> User-Agent: curl/7.84.0
> Accept: */*
> Content-Type: application/json
> Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJIaXZlIiwiaWF0IjoxNjAzNzc4OTU2LCJqdGkiOiIxODczMTExMzIwIn0.OxWo4R6UdI0BLP1ckt8RlMFrPAb5H7TNedmLFV1Cawc
> Content-Length: 126

Response examples

< HTTP/2 200 OK
< Server: nginx
< Date: Fri, 14 Jul 2023 01:51:12 GMT
< Content-Type: application/json; charset=utf-8
< Transfer-Encoding: chunked
< Connection: close
<
* Closing connection 0
{"result_code":20000,"result_message":"Succeeded","data":[{"date":"20230530","playerid":"111111111","purchase_price":5500,"purchase_currency":"KRW","purchase_date":"2023-05-30 12:00:00","hiveiap_market_transaction_id":"gd123","market":"google"},{"date":"20230530","playerid":"111111111","purchase_price":5500,"purchase_currency":"KRW","purchase_date":"2023-05-30 12:00:00","hiveiap_market_transaction_id":"gd123","market":"google"},{"date":"20230530","playerid":"111111111","purchase_price":5500,"purchase_currency":"KRW","purchase_date":"2023-05-30 12:00:00","hiveiap_market_transaction_id":"gd123","market":"google"}]}

獲取作廢購買·退款歷史

獲取在給定期間內應用程式的作廢購買或退款歷史。

Basics

  描述
網址 https://hiveiap-void.qpyou.cn/api/creator/market_voided_purchase_list
方法 POST
HTTP 標頭
  • 內容類型: application/json
  • 授權: Bearer (可選)
    • 只有當 Hive 控制台的認證標誌 AppCenter > Game Management > 遊戲列表: 選擇您公司的遊戲 > 遊戲 詳細資訊 > 基本資訊 設置為 Y 時,您才能使用 Bearer 令牌。
    • Bearer 令牌是 AppCenter > Game Management > 遊戲列表: 選擇您公司的遊戲 > 遊戲 詳細資訊 > 基本資訊 中的認證密鑰。
回應格式 JSON

Request

名稱 類型 必填 描述
市場 字串 O 市場名稱: google, apple, onestore, amazon, huawei, steam, hivestore(PG付款)
appid 字串 O 應用程式的appid
開始日期 字串 O 要搜尋的日期範圍的開始日期(範例:2023-07-10)
結束日期 字串 O 要搜尋的日期範圍的結束日期(範例:2023-07-16,最大搜尋範圍為7天,包括開始日期和結束日期)
交易ID 陣列 X
  • 只有被作廢或退款的購買的交易ID將成為作廢購買或退款歷史搜尋的目標(範例:[ 'GPA.3383-2895-4485-57050', 'GPA.3381-4857-7750-97692' ])
  • 當提供玩家ID時,API將僅返回由玩家ID所作的作廢或退款購買的交易ID的結果(玩家ID和交易ID為AND條件)。
  • 陣列的最大長度為50。
玩家ID 陣列 X
  • 只有玩家ID所作的作廢或退款購買交易將成為作廢購買或退款歷史搜尋的目標(範例:[ '20000015911', '20000016015' ])
  • 當提供購買交易ID時,API將僅返回由玩家ID所作的作廢或退款購買交易ID的結果(交易ID和玩家ID為AND條件)。
  • 陣列的最大長度為100。
  • 頁面令牌 字串 X
    • 每個API響應頁面的最大結果數為100。
    • 要請求上一頁/下一頁,請使用此令牌再次調用API。

    回應

    名稱 類型 必需 描述
    result_code 整數 O 回應代碼 (20000: 成功)
    result_message 字串 O 回應代碼的結果訊息
    data 陣列 O 回應資料
    ㄴdate 字串 O 呼叫此 API 的日期 (範例: 20230714)
    ㄴplayerid 字串 O playerid (範例: 20000015911)
    ㄴvoided_purchase_date 字串 O 作廢·退款的日期 (KST)
    ㄴpurchase_date 字串 O 購買日期 (KST)
    ㄴhiveiap_market_transaction_id 字串 O 購買交易 ID (範例: GPA.3327-1260-4622-40400)
    ㄴmarket 字串 O 發生購買的市場 (範例: APPLE, GOOGLE)
    prev_page_token 字串 X 前一頁的令牌 (如果不存在前一頁則不返回)
    next_page_token 字串 X 前一頁的下一頁 (如果不存在下一頁則不返回)

    Request examples

    curl -L -v -d '{"market": "google", "appid": "com.com2us.hivesdk.normal.freefull.google.global.android.common","startdate": "2023-06-21","enddate": "2023-06-27"}' -H "Content-Type: application/json" -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJIaXZlIiwiaWF0IjoxNjAzNzc4OTU2LCJqdGkiOiIxODczMTExMzIwIn0.OxWo4R6UdI0BLP1ckt8RlMFrPAb5H7TNedmLFV1Cawc" https://hiveiap-void.qpyou.cn/api/creator/market_voided_purchase_list
    

    使用page_token的範例

    curl -L -v -d '{"page_token": "73U1mdaEvFRbJ5Zl/boHQY2Q3SQPJeWmKjO86UeLn4kDU72yzAfgmlciFvzTU6yaP0aZEGXTuRD2bLd9q48M+EVhm1glGZzHFj8MQvmQ1spuN9e0FzxczvWX27bDsObDGIJKb44Yg9GkMr6Aoq/Lrf855zKm20Z5+P9pJK8114iJZUHUhQT1E4LyrvdRvQCRlWl1Y8oHRAP4P4hsvwJO618K6/shJ86VqLbIs6bVW1w="}' -H "Content-Type: application/json" -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJIaXZlIiwiaWF0IjoxNjAzNzc4OTU2LCJqdGkiOiIxODczMTExMzIwIn0.OxWo4R6UdI0BLP1ckt8RlMFrPAb5H7TNedmLFV1Cawc" https://hiveiap-void.qpyou.cn/api/creator/market_voided_purchase_list
    

    使用transactionid的示例

    curl -L -v -d '{"market": "google", "appid": "com.com2us.hivesdk.normal.freefull.google.global.android.common","startdate": "2023-05-30","enddate": "2023-05-30","transactionid" : ["GPA.3343-6111-5443-03063","GPA.3354-3096-3913-84573"]}' -H "Content-Type: application/json" -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJIaXZlIiwiaWF0IjoxNjAzNzc4OTU2LCJqdGkiOiIxODczMTExMzIwIn0.OxWo4R6UdI0BLP1ckt8RlMFrPAb5H7TNedmLFV1Cawc" https://hiveiap-void.qpyou.cn/api/creator/market_voided_purchase_list
    

    使用 playerid 的範例

    curl -L -v -d '{"market": "google", "appid": "com.com2us.hivesdk.normal.freefull.google.global.android.common","startdate": "2023-05-30","enddate": "2023-05-30","playerid" : ["25647", "25645"]}' -H "Content-Type: application/json" -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJIaXZlIiwiaWF0IjoxNjAzNzc4OTU2LCJqdGkiOiIxODczMTExMzIwIn0.OxWo4R6UdI0BLP1ckt8RlMFrPAb5H7TNedmLFV1Cawc" https://hiveiap-void.qpyou.cn/api/creator/market_voided_purchase_list
    

    使用 transactionidplayerid 的示例 (AND 條件)

    curl -L -v -d '{"market": "google", "appid": "com.com2us.hivesdk.normal.freefull.google.global.android.common","startdate": "2023-05-30","enddate": "2023-05-30","transactionid" : ["GPA.3343-6111-5443-03063","GPA.3354-3096-3913-84573"],"playerid" : ["25647", "25645"]}' -H "Content-Type: application/json" -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJIaXZlIiwiaWF0IjoxNjAzNzc4OTU2LCJqdGkiOiIxODczMTExMzIwIn0.OxWo4R6UdI0BLP1ckt8RlMFrPAb5H7TNedmLFV1Cawc" https://hiveiap-void.qpyou.cn/api/creator/market_voided_purchase_list
    

     

    > POST /api/creator/market_voided_purchase_list HTTP/2
    > Host: hiveiap-void.qpyou.cn
    > User-Agent: curl/7.84.0
    > Accept: */*
    > Content-Type: application/json
    > Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJIaXZlIiwiaWF0IjoxNjAzNzc4OTU2LCJqdGkiOiIxODczMTExMzIwIn0.OxWo4R6UdI0BLP1ckt8RlMFrPAb5H7TNedmLFV1Cawc
    > Content-Length: 126
    

    Response examples

    < HTTP/1.1 200 OK
    < Server: nginx
    < Date: Fri, 14 Jul 2023 01:46:52 GMT
    < Content-Type: application/json; charset=utf-8
    < Transfer-Encoding: chunked
    < Connection: close
    <
    {"result_code":20000,"result_message":"Succeeded","data":[{"date":"20230622","playerid":"25645","voided_purchase_date":"2022-06-22 10:24:43","purchase_date":"2022-06-22 10:24:43","hiveiap_market_transaction_id":"GPA.3343-6111-5443-03063","market":"google"},{"date":"20230622","playerid":"25647","voided_purchase_date":"2022-06-22 10:24:43","purchase_date":"2022-06-22 10:19:56","hiveiap_market_transaction_id":"GPA.3354-3096-3913-84573","market":"google"},{"date":"20230622","playerid":"25647","voided_purchase_date":"2022-06-22 10:24:43","purchase_date":"2022-06-22 10:20:13","hiveiap_market_transaction_id":"GPA.3352-3543-2561-74345","market":"google"},{"date":"20230622","playerid":"25646","voided_purchase_date":"2022-06-22 10:24:43","purchase_date":"2022-06-22 10:27:07","hiveiap_market_transaction_id":"GPA.3373-8959-5490-84662","market":"google"},{"date":"20230622","playerid":"20000015910","voided_purchase_date":"2022-06-22 10:24:43","purchase_date":"2022-06-22 11:10:34","hiveiap_market_transaction_id":"GPA.3344-8133-4125-27484","market":"google"},{"date":"20230622","playerid":"20000015911","voided_purchase_date":"2022-06-22 10:24:43","purchase_date":"2022-06-22 11:16:19","hiveiap_market_transaction_id":"GPA.3380-9359-5107-68068","market":"google"},{"date":"20230622","playerid":"20000015911","voided_purchase_date":"2022-06-22 10:24:43","purchase_date":"2022-06-22 11:16:28","hiveiap_market_transaction_id":"GPA.3327-1260-4622-40400","market":"google"},{"date":"20230622","playerid":"20000015903","voided_purchase_date":"2022-06-22 10:24:43","purchase_date":"2022-06-22 11:21:26","hiveiap_market_transaction_id":"GPA.3345-5718-8100-76220","market":"google"},{"date":"20230622","playerid":"20000016015","voided_purchase_date":"2022-06-22 10:24:43","purchase_date":"2022-08-25 15:34:45","hiveiap_market_transaction_id":"GPA.3381-4857-7750-97692","market":"google"},{"date":"20230622","playerid":"20000015903","voided_purchase_date":"2022-09-26 12:36:14","purchase_date":"2022-09-06 20:18:42","hiveiap_market_transaction_id":"GPA.3354-3949-3274-33990","market":"google"},{"date":"20230622","playerid":"68261244","voided_purchase_date":"2022-10-24 15:08:16","purchase_date":"2022-10-24 13:04:28","hiveiap_market_transaction_id":"GPA.3362-7733-7126-48410","market":"google"},{"date":"20230622","playerid":"68261245","voided_purchase_date":"2022-10-24 15:08:16","purchase_date":"2022-10-24 13:08:43","hiveiap_market_transaction_id":"GPA.3389-6928-6486-44334","market":"google"},{"date":"20230622","playerid":"68261245","voided_purchase_date":"2022-10-24 15:08:16","purchase_date":"2022-10-24 13:08:53","hiveiap_market_transaction_id":"GPA.3340-6178-9215-37643","market":"google"},{"date":"20230622","playerid":"68261246","voided_purchase_date":"2022-10-24 15:08:16","purchase_date":"2022-10-24 13:13:14","hiveiap_market_transaction_id":"GPA.3310-2376-2428-34315","market":"google"},{"date":"20230622","playerid":"26908","voided_purchase_date":"2022-11-03 12:26:24","purchase_date":"2022-11-03 11:03:49","hiveiap_market_transaction_id":"GPA.3332-1770-9932-22016","market":"google"},{"date":"20230622","playerid":"20000017958","voided_purchase_date":"2022-12-28 18:00:00","purchase_date":"2022-12-28 18:21:05","hiveiap_market_transaction_id":"GPA.3380-0746-5400-99267","market":"google"},{"date":"20230622","playerid":"20000015911","voided_purchase_date":"2023-02-02 15:47:55","purchase_date":"2023-02-02 14:56:06","hiveiap_market_transaction_id":"GPA.3302-6734-9811-59555","market":"google"},{"date":"20230622","playerid":"25647","voided_purchase_date":"2023-02-02 15:47:55","purchase_date":"2023-02-02 15:33:51","hiveiap_market_transaction_id":"GPA.3308-0447-3039-63671","market":"google"},{"date":"20230622","playerid":"25646","voided_purchase_date":"2023-02-02 15:47:55","purchase_date":"2023-02-02 15:14:24","hiveiap_market_transaction_id":"GPA.3322-4622-9631-28260","market":"google"},{"date":"20230622","playerid":"25647","voided_purchase_date":"2023-02-02 15:47:55","purchase_date":"2023-02-02 15:33:22","hiveiap_market_transaction_id":"GPA.3343-5435-0468-97182","market":"google"
    }],"next_page_token":"73U1mdaEvFRbJ5Zl\/boHQY2Q3SQPJeWmKjO86UeLn4kDU72yzAfgmlciFvzTU6yaP0aZEGXTuRD2bLd9q48M+EVhm1glGZzHFj8MQvmQ1spuN9e0FzxczvWX27bDsObDGIJKb44Yg9GkMr6Aoq\/Lrf855zKm20Z5+P9pJK8114irnVlbr8XNb0AmpWbYBxfNwgztBwQcFkQ\/euLTqm24RsV11WJfvxGzT1dyOFILlsU="}
    

    Response codes

    回應代碼 描述
    20000 成功
    40000 請求錯誤
    ㄴresult_message
    • 空請求
    • 無效的 JSON 格式
    • 無效的請求 - appid
    • 無效的請求 - api 金鑰
    • 無效的請求 - enddate
    • 無效的請求 - startdate
    • 無效的請求 - page_token
    50000 伺服器錯誤