決済 照会
    • PDF

    決済 照会

    • PDF

    Article Summary

    当該コンテンツは、ローカリゼーションサービスを準備しております。早急にローカライズサービスをご提供できるよう、努めております。

    決済IDで決済内訳を照会します。

    要請

    GET https://dashboard-api.gamepot.ntruss.com/v1/api/project/{projectId}/purchase/{transactionID}
    
    項目タイプ必須かどうか説明備考
    projectIdStringOGamePot SDKの projectId
    transactionIDStringOGamePot SDKの 決済ID

    要請Header

    Header名必須かどうか説明
    x-api-keyOGamePotで発行する認証key
    accept-languageX使用言語

    応答

    フィールド名タイプ説明
    statusInt結果値 (1: 成功)
    (result의) statusInt決済結果値 (1: 成功)
    exchange_priceInt決済金額 (환율 적용)
    project_idStringGamePot SDKの projectId
    store_idStringストア ID (google,one,apple,galaxy)
    payment_idString決済 ストア ID (google,tpay...) ㅣ일반적으로 store_id와 동일
    signatureString書名
    order_idStringOrder ID
    currencyString通貨
    userdataStringユーザー情報
    priceInt決済金額
    idString決済データの Unique ID
    unique_idStringUnique ID
    transaction_idStringストア決済 ID
    createdAtString生成日
    updatedAtString更新日
    requestString決済リクエスト値
    responseString決済応答値
    (item_id의) statusString(item_idの) 結果値
    typeStringアイテム·タイプ (inapp)
    nameStringアイテム名
    pricesStringアイテム価格
    user_id応答成功値のうち user_id 部分は、 ユーザー照会APIをご覧ください。

    例示

    要請例

    curl --request GET \
      --url https://dashboard-api.gamepot.ntruss.com/v1/api/project/12a0f2ff-xxxx-xxxx-xxxx-9c13ef02f5fs/purchase/GPA.xxxx-xxxx-xxxx-xxxxxx \
      --header 'accept-language: ko' \
      --header 'x-api-key: 86dcgffae0641745432as02a8801ce5a5475f764fxxxxxxxxx'
    

    応答例

    {
      "status": 1,
      "result": {
        "status": 1,
        "exchange_price": 5000,
        "project_id": "xxxxxxxxxxxxxx",
        "store_id": "google",
        "payment_id": "google",
        "signature": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "order_id": "u8934",
        "currency": "KRW",
        "userdata": "{\"unique_id\":\"u8934\",\"server_id\":\"\",\"player_id\":\"\",\"etc\":\"\"}",
        "price": 5000,
        "id": "xxxxxxxxxxxxxx",
        "unique_id": "u8934",
        "transaction_id": "xxxxxxxxxxxxxx",
        "createdAt": "Wed Mar 18 2020 17:55:29 GMT+0900 (GMT+09:00)",
        "updatedAt": "Wed Mar 18 2020 17:55:29 GMT+0900 (GMT+09:00)",
        "request": "https://xxxxxxxxxxxxxx",
        "response": "{\"status\":1}",
        "item_id": {
          "status": null,
          "type": "inapp",
          "name": "name_001",
          "prices": []
        },
        "user_id": {
          "id": "xxxxxxxxxxxxxx",
          "deleted": false,
          "store_id": "google",
          "country": "KR",
          "remoteip": "xxx.xxx.xxx.xxx",
          "adid": "xxxxxxxxxxxxxx",
          "device": "android",
          "network": "WIFI",
          "version": "10",
          "model": "Pixel_3",
          "token": "xxxxxxxxxxxxxx",
          "push": true,
          "night": false,
          "ad": true,
          "memo": null,
          "device_id": "xxxxxxxxxxxxxx",
          "createdAt": "Wed Mar 18 2020 17:54:41 GMT+0900 (GMT+09:00)",
          "updatedAt": "Wed Mar 18 2020 17:54:42 GMT+0900 (GMT+09:00)",
          "loginedAt": "Wed Mar 18 2020 17:54:41 GMT+0900 (GMT+09:00)",
          "deletedAt": null
        }
      }
    }
    

    エラーコード

    Gamepot Open APIリクエスト時に発生する共通エラーコードです。

    parameter説明
    statusエラーコード(1: 成功、失敗時Error code参考)
    messageエラー詳細説明
    エラーコード説明
    -1ダッシュボードにないkeyを使用した場合
    -2ダッシュボードのkeyとheaderのkeyが異なる場合
    -3ダッシュボードで削除したkeyを使用した場合
    -4ダッシュボードで未使用に処理されたkeyを使用した場合
    -5keyが切れた場合
    -6プロジェクトIDがない場合
    {
      "status": -6,
      "message": "projectId was wrong."
    }
    

    この記事は役に立ちましたか?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.