MENU
      Billing Sales Statistics Inquiry

        Billing Sales Statistics 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.

        Display billing sales statistics.

        request

        GET https://dashboard-api.gamepot.ntruss.com/v1/api/project/{projectId}/purchase/statistics?startDate={startDate}&endDate={endDate}&currency={currency}
        HTTP
        ItemtypeRequiredExplanationRemark
        projectIdStringOProjectId in GamePot SDK
        startDateStringXPayment sales statistics search start dateYYYY-MM-DD
        endDateStringXPayment Sales Statistics Search End DateYYYY-MM-DD
        currencyStringXPayment Sales Statistics Currency Search (all ...)It follows ISO 4217 regulations.
        Note

        If startDate and endDate are not included in the query, data for the last 30 days is retrieved.

        Request header

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

        answer

        Field nametypeExplanation
        statusIntResult value (1: success)
        totalCountIntNumber of search result values
        currencyListStringCurrency list
        We follow ISO 4217 regulations.
        dateStringStatistics date
        countStringSales statistics amount

        example

        Request example

        curl --request GET \
          --url https://dashboard-api.gamepot.ntruss.com/v1/api/project/12a0f2ff-xxxx-xxxx-xxxx-9c13ef02f5fs/purchase/statistics?startDate=2020-05-01&endDate=2020-06-01&currency=all \
          --header 'accept-language: ko' \
          --header 'x-api-key: 86dcgffae0641745432as02a8801ce5a5475f764fxxxxxxxxx'
        HTTP

        Example response

        "status": 1,
          "result": {
            "totalCount": 13,
            "currencyList": [
              "KRW",
              "USD"
            ],
            "edges": [
              {
                "node": {
                  "date": "2020-05-01",
                  "count": 0
                }
              },
              {
                "node": {
                  "date": "2020-05-02",
                  "count": 0
                }
              },
        
        ...
        
              {
                "node": {
                  "date": "2020-05-13",
                  "count": 4008857.31
                }
              }
            ]
          }
        }
        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

        This is the error code that occurs when the payment sales statistics inquiry API is requested.

        Error codeExplanation
        -11If the format of the startDate value is incorrect, only YYYY-MM-DD format is possible
        -12If the format of the endDate value is incorrect, only YYYY-MM-DD format is possible

        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.