MENU
      Payment cancellation inquiry

        Payment cancellation inquiry


        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.

        View payment cancellation history by payment ID.

        Note

        Only Google payments are viewed.

        request

        GET https://dashboard-api.gamepot.ntruss.com/v1/api/project/{projectId}/purchase/voided/{transactionID}
        HTTP
        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)
        idStringPayment cancellation ID
        member_idStringUser UID
        package_idStringPackage name
        priceintAmount of payment
        deletedBooleanWhether to delete (true : delete, false : normal)
        purchasedAtStringPayment date
        voidedAtStringPayment cancellation date
        createdAtStringCreation date
        updatedAtStringRenewal
        deletedAtStringDelete date
        currencyStringcurrency
        statusIntstate
        purchase_idPlease refer to Payment inquiry API for the purchase_id part of successful response values.

        example

        Request example

        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'
        HTTP

        Example response

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

        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."
        }
        Plain text

        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.