--- title: "決済キャンセル照会" slug: "game-gamepot-purchasevoided" updated: 2026-09-17T09:57:53Z published: 2026-09-17T09:57:53Z canonical: "api.ncloud-docs.com/game-gamepot-purchasevoided" --- > ## Documentation Index > Fetch the complete documentation index at: https://api.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # 決済キャンセル照会 **当該コンテンツは、ローカリゼーションサービスを準備しております。早急にローカライズサービスをご提供できるよう、努めております。** 決済IDで決済キャンセル履歴を照会します。 参考 Google決済のみ照会されます。 ## 要請 ``` GET https://dashboard-api.gamepot.ntruss.com/v1/api/project/{projectId}/purchase/voided/{transactionID} ``` | 項目 | タイプ | 説明 | 備考 | 必須かどうか | | --- | --- | --- | --- | --- | | projectId | String | O | GamePot SDKの projectId | | | transactionID | String | O | GamePot SDKの 決済ID | | ### 要請Header | Header名 | 必須かどうか | 説明 | | --- | --- | --- | | x-api-key | O | GamePotで発行する認証key | | accept-language | X | 使用言語 | ## 応答 | フィールド名 | タイプ | 説明 | | --- | --- | --- | | status | Int | 結果値 (1: 成功) | | id | String | 決済キャンセルID | | member_id | String | ユーザー UID | | package_id | String | パッケージ名 | | price | int | 決済金額 | | deleted | Boolean | 削除可否(true : 削除, false : 正常) | | purchasedAt | String | 決済日 | | voidedAt | String | 決済キャンセル日 | | createdAt | String | 生成日 | | updatedAt | String | 更新日 | | deletedAt | String | 削除日 | | currency | String | 通貨 | | status | Int | 状態 | | purchase_id | | 応答成功値のうち、purchase_id部分は ***決済照会 API***を参照してください。 | ## 例示 ### 要請例 ``` curl --request GET \ --url https://dashboard-api.gamepot.ntruss.com/v1/api/project/12a0f2ff-xxxx-xxxx-xxxx-9c13ef02f5fs/purchase/voided/GPA.3381-xxxx-xxxx-12398 \ --header 'accept-language: ko' \ --header 'x-api-key: 86dcgffae0641745432as02a8801ce5a5475f764fxxxxxxxxx' ``` ### 応答例 ``` { "status": 1, "result": { "id": "xxxxxxxxxxxxxx", "member_id": "xxxxxxxxxxxxxx", "package_id": "xxx.xxx.xxxxxxx", "price": 3000, "deleted": false, "purchasedAt": "Fri Feb 21 2020 16:32:35 GMT+0900 (GMT+09:00)", "voidedAt": "Fri Feb 21 2020 16:33:58 GMT+0900 (GMT+09:00)", "createdAt": "Fri Feb 21 2020 17:25:10 GMT+0900 (GMT+09:00)", "updatedAt": "Fri Feb 21 2020 17:25:10 GMT+0900 (GMT+09:00)", "deletedAt": null, "currency": "KRW", "status": 0, "purchase_id": { "status": 1, "exchange_price": 3000, "project_id": "xxxxxxxxxxxxxxxxxx", "store_id": "google", "payment_id": "google", "signature": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "order_id": "xxxxxxxxxxxxxx", "currency": "KRW", "userdata": "{\"unique_id\":\"\",\"server_id\":\"\",\"player_id\":\"\",\"etc\":\"\"}", "price": 3000, "id": "xxxxxxxxxxxxxx", "unique_id": "", "transaction_id": "GPA.3307-2597-6064-86473", "createdAt": "Fri Feb 21 2020 16:32:39 GMT+0900 (GMT+09:00)", "updatedAt": "Fri Feb 21 2020 17:25:10 GMT+0900 (GMT+09:00)", "request": "https://xxxxxxxxxxxxxxxxxxxxxxxxxxxx", "response": "{\"status\":1}" } } } ``` ## エラーコード Gamepot Open APIリクエスト時に発生する共通エラーコードです。 | parameter | 説明 | | --- | --- | | status | エラーコード(1: 成功、失敗時Error code参考) | | message | エラー詳細説明 | | エラーコード | 説明 | | --- | --- | | -1 | ダッシュボードにないkeyを使用した場合 | | -2 | ダッシュボードのkeyとheaderのkeyが異なる場合 | | -3 | ダッシュボードで削除したkeyを使用した場合 | | -4 | ダッシュボードで未使用に処理されたkeyを使用した場合 | | -5 | keyが切れた場合 | | -6 | プロジェクトIDがない場合 | ``` { "status": -6, "message": "projectId was wrong." } ```