Payment inquiry
    • PDF

    Payment inquiry

    • PDF

    Article summary

    We are preparing a localization service for the content. We will do our best to provide the localization service as soon as possible.

    Display payment details by payment ID.

    request

    GET https://dashboard-api.gamepot.ntruss.com/v1/api/project/{projectId}/purchase/{transactionID}
    
    ItemtypeRequiredExplanationRemark
    projectIdStringOProjectId in GamePot SDK
    transactionIDStringOPayment ID of GamePot SDK

    Request header

    Header nameRequiredExplanation
    x-api-keyOAuthentication key issued by GamePot
    accept-languageXLanguage used

    answer

    Field nametypeExplanation
    statusIntResult value (1: success)
    (result의) statusIntPayment result (1: success)
    exchange_priceIntAmount of payment (Exchange rate applied)
    project_idStringProjectId in GamePot SDK
    store_idStringStore ID (google,one,apple,galaxy)
    payment_idStringPayment Store ID (google,tpay...) ㅣTypically the same as store_id
    signatureStringsignature
    order_idStringOrder ID
    currencyStringcurrency
    userdataStringUser information
    priceIntAmount of payment
    idStringUnique ID of payment data
    unique_idStringUnique ID
    transaction_idStringStore payment ID
    createdAtStringCreation date
    updatedAtStringRenewal
    requestStringPayment request value
    responseStringPayment response value
    (item_id의) statusStringResult value (of item_id)
    typeStringItem type (inapp)
    nameStringItem name
    pricesStringItem price
    user_idPlease refer to User Lookup API for the user_id part of the response success value.

    example

    Request example

    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'
    

    Example response

    {
      "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
        }
      }
    }
    

    Error code

    Common error code that occurs when requesting Gamepot Open API.

    parameterExplanation
    statusError code (1: Refer to Error code in case of success or failure )
    messageError details
    Error codeExplanation
    -1If you used a key that is not on the dashboard
    -2The key of the dashboard and the key of the header are different.
    -3When using a key deleted from the dashboard
    -4The dashboard used unused keys.
    -5If the key has expired
    -6If there is no project ID
    {
      "status": -6,
      "message": "projectId was wrong."
    }
    

    Was this article helpful?

    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.