GET /api/v2/server-side-api/purchase/profile/refund-saver/settings/

Refund Saver ayarlarını getir

Bu kullanıcı için Refund Saver tercihini getirin - Adapty'nin mağazadan iade talebini reddetmesini mi yoksa onaylamasını mı isteyeceğini belirler. Tercih, hem App Store hem de Google Play için geçerli olan tek bir değerdir. Ayrıca bu kullanıcı için veri paylaşım tercihini de getirin – kullanıcının verilerini Apple ile paylaşmaya onay verip vermediğini gösterir. Onay yalnızca App Store için geçerlidir.

Header parameters

adapty-customer-user-idstring

Sisteminizdeki müşterinin benzersiz kimliği. adapty-customer-user-id veya adapty-profile-id gereklidir.

adapty-profile-idstring · uuid

Sisteminizdeki profilin benzersiz kimliği. Anonim profillerle çalışıyorsanız en iyi seçeneğinizdir. adapty-customer-user-id veya adapty-profile-id gereklidir.

Responses

Ayarlar başarıyla getirildi

Schema
profile_idstringrequired

Müşteri profil kimliği

settingsobjectrequired

Kullanıcı için iade tasarrufu ayarları

consentboolean

Kullanıcının verilerini Apple ile paylaşmayı kabul edip etmediğini tanımlar (yalnızca App Store)

custom_preferencestring

İade tercihi

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

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

Hatalı istek

Schema
errorsarray of objectrequired
sourcestring

Hatanın kaynağı

errorsarray of string

Hata mesajları dizisi

error_codestringrequired

Kısa hata adı

status_codeintegerrequired

HTTP durum kodu

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

Yetkisiz

Schema
errorsarray of objectrequired
sourcestring

Hatanın kaynağı

errorsarray of string

Hata mesajları dizisi

error_codestringrequired

Kısa hata adı

status_codeintegerrequired

HTTP durum kodu

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

Sunucu içi hata

Schema
errorsarray of objectrequired
sourcestring

Hatanın kaynağı

errorsarray of string

Hata mesajları dizisi

error_codestringrequired

Kısa hata adı

status_codeintegerrequired

HTTP durum kodu