クーポンの使用
    • PDF

    クーポンの使用

    • PDF

    Article Summary

    一般のクーポン、キーワードクーポンを使用できます。

    リクエスト

    PUT https://dashboard-api.gamepot.ntruss.com/v1/api/project/{projectId}/store/{storeID}/user/{userID}/coupon/{couponNumber}?userData={userData}
    
    項目タイプ必須説明備考
    projectIdStringOGAMEPOT SDKの projectId
    storeIDStringOストア ID(google、one、apple、galaxy)
    userIDStringOGAMEPOT SDKのユーザー UID
    couponNumberStringOダッシュボードで発行されたクーポン番号
    userDataStringXWebフック APIパラメータのうち userData項目に入れる追加情報

    リクエストヘッダ

    ヘッダ名必須説明
    x-api-keyOGAMEPOTで発行する認証キー
    accept-languageX使用言語

    レスポンス

    フィールド名タイプ説明
    statusInt結果値 (1: 成功)
    messageString結果の内容

    リクエスト例

      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'
    
    

    レスポンス例

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

    エラーコード

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

    パラメータ説明
    statusエラーコード (1: 成功、失敗時は Error code参照)
    messageエラー詳細の説明
    エラーコード説明
    -1ダッシュボードにないキーを使用した場合
    -2ダッシュボードのキーとヘッダのキーが別の場合
    -3ダッシュボードで削除したキーを使用した場合
    -4ダッシュボードで未使用として処理されたキーを使用した場合
    -5キーの期限が切れた場合
    -6プロジェクト IDがない場合
    -100処理中にエラーが発生した場合
    {
      "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.