MENU
      Using coupon

        Using coupon


        Article summary

        You can use general coupons and keyword coupons.

        Requested

        PUT https://dashboard-api.gamepot.ntruss.com/v1/api/project/{projectId}/store/{storeID}/user/{userID}/coupon/{couponNumber}?userData={userData}
        HTTP
        ItemTypeRequirement StatusDescriptionRemarks
        projectIdStringOGAMEPOT SDK's projectId
        storeIDStringOStore ID (Google, ONE, Apple, Galaxy)
        userIDStringOGAMEPOT SDK's user UID
        couponNumberStringOCoupon number issued in the dashboard
        userDataStringXAdditional information to be entered in the userData field among webhook API parameters

        Request header

        Header nameRequirement StatusDescription
        x-api-keyOAuthentication key issued by GAMEPOT
        accept-languageXLanguage in use

        Response

        Field nameTypeDescription
        statusIntResult value (1: success)
        messageStringResult content

        Examples

        Request examples

        curl --request PUT \
        --url https://dashboard-api.gamepot.ntruss.com/v1/api/project/12a0f2ff-xxxx-xxxx-xxxx-9c13ef02f5fs/store/google/user/h43ea8e8-xxxx-xxxx-xxxx-531a46d25eef/coupon/xxxxxx \
        --header 'accept-language: ko' \
        --header 'x-api-key: 86dcgffae064174543xxxx02a8801ce5a547xxxxxxxxxxxxxx'
        HTTP

        Response examples

        {
          "status": 1,
          "message": "success"
        }
        HTTP

        Error Code

        These are the common error codes that occur in response to GAMEPOT Open API requests.

        ParameterDescription
        statusErrors (1: success, see the error code in case of failures)
        messageError description
        Error CodeDescription
        -1When a key that doesn't exist in the dashboard has been used
        -2When the dashboard's key and the header's key are different
        -3When a key deleted from the dashboard has been used
        -4When a key processed as "not used" on the dashboard has been used
        -5When a key has expired
        -6When the project ID doesn't exist
        -100If an error occurs in processing
        {
          "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.