ÿÿ Refund Saver ã®è¨­å®šã‚’行ㆠ(API)
POST /api/v2/server-side-api/purchase/profile/refund-saver/settings/

Refund Saver ã®è¨­å®šã‚’行ã†

ユーザーã”ã¨ã«è¿”金設定を個別ã«è¨­å®šã—ã€ãƒ¦ãƒ¼ã‚¶ãƒ¼ãŒãƒ‡ãƒ¼ã‚¿å…±æœ‰ã«åŒæ„ã—ãŸã‹ã©ã†ã‹ã‚’記録ã—ã¾ã™ã€‚デフォルトã§ã¯ã€Refund Saver ã¯å¸¸ã« Apple ã«ãƒ¦ãƒ¼ã‚¶ãƒ¼ã®è¿”金リクエストを拒å¦ã™ã‚‹ã‚ˆã†æ±‚ã‚ã¾ã™ã€‚Adapty ダッシュボードã§ã™ã¹ã¦ã®ãƒ¦ãƒ¼ã‚¶ãƒ¼ã«å¯¾ã—ã¦ã“ã®ãƒ‡ãƒ•ォルト動作を変更ã™ã‚‹ã‹ã€ãƒ€ãƒƒã‚·ãƒ¥ãƒœãƒ¼ãƒ‰ãƒ»Adapty SDK・ã¾ãŸã¯ã‚µãƒ¼ãƒãƒ¼ã‚µã‚¤ãƒ‰ API を使用ã—ã¦ç‰¹å®šã®ãƒ¦ãƒ¼ã‚¶ãƒ¼å‘ã‘ã«èª¿æ•´ã§ãã¾ã™ã€‚

Header parameters

adapty-customer-user-idstring

ãŠå®¢æ§˜ã®ã‚·ã‚¹ãƒ†ãƒ ã«ãŠã‘る顧客ã®ä¸€æ„ã® ID ã§ã™ã€‚adapty-customer-user-id ã¾ãŸã¯ adapty-profile-id ã®ã„ãšã‚Œã‹ãŒå¿…é ˆã§ã™ã€‚

adapty-profile-idstring · uuid

ãŠå®¢æ§˜ã®ã‚·ã‚¹ãƒ†ãƒ ã«ãŠã‘るプロファイルã®ä¸€æ„ã® ID ã§ã™ã€‚匿åプロファイルを扱ã†å ´åˆã«æœ€é©ã§ã™ã€‚adapty-customer-user-id ã¾ãŸã¯ adapty-profile-id ã®ã„ãšã‚Œã‹ãŒå¿…é ˆã§ã™ã€‚

Request body

custom_preferencestring

ユーザーã”ã¨ã«è¿”é‡‘è¨­å®šã‚’å€‹åˆ¥ã«æŒ‡å®šã—ã¾ã™ã€‚ - grant: å„返金リクエストを承èªã™ã‚‹ - no_preference: 推奨をæä¾›ã—ãªã„ - decline: å„返金リクエストを拒å¦ã™ã‚‹

One of: "grant", "no_preference", "decline"

consentboolean

ユーザーãŒãƒ‡ãƒ¼ã‚¿å…±æœ‰ã«åŒæ„ã—ãŸã‹ã©ã†ã‹ã‚’記録ã—ã¾ã™ã€‚ - true ã¯ã€ã‚¢ãƒ—リ内返金リクエストをå—ã‘å–ã£ãŸå ´åˆã« Apple ã«ãƒ¦ãƒ¼ã‚¶ãƒ¼æƒ…報をæä¾›ã§ãã‚‹ã“ã¨ã‚’æ„味ã—ã¾ã™

Responses

è¨­å®šãŒæ­£å¸¸ã«æ›´æ–°ã•れã¾ã—ãŸ

Schema
profile_idstringrequired

顧客プロファイル ID

settingsobjectrequired

ユーザー㮠Refund Saver 設定

consentboolean

ユーザーãŒãƒ‡ãƒ¼ã‚¿å…±æœ‰ã«åŒæ„ã—ãŸã‹ã©ã†ã‹ã‚’示ã—ã¾ã™

custom_preferencestring

返金設定

One of: "grant", "no_preference", "decline"

Example
{
  "profile_id": "e5aab402-b1bd-4039-b632-57a91ebc0779",
  "settings": {
    "consent": true,
    "custom_preference": "grant"
  }
}

リクエストãŒä¸æ­£ã§ã™

Schema
errorsarray of objectrequired
sourcestring

エラーã®ç™ºç”Ÿæº

errorsarray of string

エラーメッセージã®é…列

error_codestringrequired

エラーã®çŸ­ç¸®å

status_codeintegerrequired

HTTP ステータスコード

Example
{
  "errors": [
    "Profile does not exist"
  ],
  "error_code": "profile_does_not_exist",
  "status_code": 400
}

èªè¨¼ã‚¨ãƒ©ãƒ¼

Schema
errorsarray of objectrequired
sourcestring

エラーã®ç™ºç”Ÿæº

errorsarray of string

エラーメッセージã®é…列

error_codestringrequired

エラーã®çŸ­ç¸®å

status_codeintegerrequired

HTTP ステータスコード

Example
{
  "errors": [
    "Invalid API key"
  ],
  "error_code": "unauthorized",
  "status_code": 401
}

内部サーãƒãƒ¼ã‚¨ãƒ©ãƒ¼

Schema
errorsarray of objectrequired
sourcestring

エラーã®ç™ºç”Ÿæº

errorsarray of string

エラーメッセージã®é…列

error_codestringrequired

エラーã®çŸ­ç¸®å

status_codeintegerrequired

HTTP ステータスコード

ÿÿÿÿ