ÿÿ プロファイルをå–å¾—ã™ã‚‹ (API)
GET /api/v2/server-side-api/profile/

プロファイルをå–å¾—ã™ã‚‹

ã‚¢ãƒ—ãƒªã®æ—¢å­˜ã‚¨ãƒ³ãƒ‰ãƒ¦ãƒ¼ã‚¶ãƒ¼ã®è©³ç´°ã‚’å–å¾—ã—ã¾ã™ã€‚

Header parameters

adapty-customer-user-idstring

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

adapty-profile-idstring

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

Responses

ãƒ—ãƒ­ãƒ•ã‚¡ã‚¤ãƒ«ãŒæ­£å¸¸ã«å–å¾—ã•れã¾ã—ãŸ

Schema
dataobjectrequired
app_idstringrequired

アプリã®å†…部 ID

profile_idstringrequired

Adapty プロファイル ID

customer_user_idstringrequired

ãŠå®¢æ§˜ã®ã‚·ã‚¹ãƒ†ãƒ ã«ãŠã‘るユーザー㮠ID

total_revenue_usdnumberrequired

プロファイルã§ç²å¾—ã—㟠USD æ›ç®—ã®ç·åŽç›Šã‚’è¡¨ã™æµ®å‹•å°æ•°ç‚¹å€¤

segment_hashstringrequired

内部パラメータ

timestampintegerrequired

レスãƒãƒ³ã‚¹æ™‚刻(ミリ秒)。競åˆçŠ¶æ…‹ã®è§£æ±ºã«ä½¿ç”¨ã—ã¾ã™

custom_attributesarray of objectrequired

プロファイルã«è¨­å®šã§ãã‚‹ã‚«ã‚¹ã‚¿ãƒ å±žæ€§ã¯æœ€å¤§ 30 個ã§ã™

keystringrequired

キー㯠30 æ–‡å­—ä»¥ä¸‹ã®æ–‡å­—列ã§ã‚ã‚‹å¿…è¦ãŒã‚りã¾ã™ã€‚è‹±å­—ã€æ•°å­—ã€ãƒ€ãƒƒã‚·ãƒ¥ã€ãƒ”リオドã€ã‚¢ãƒ³ãƒ€ãƒ¼ã‚¹ã‚³ã‚¢ã®ã¿ä½¿ç”¨ã§ãã¾ã™

valuestring | numberrequired

属性値㯠50 文字以下ã§ã‚ã‚‹å¿…è¦ãŒã‚りã¾ã™ã€‚æ–‡å­—åˆ—ã¨æµ®å‹•å°æ•°ç‚¹æ•°ã®ã¿ä½¿ç”¨ã§ãã¾ã™

access_levelsarray of objectrequired

アクセスレベルオブジェクトã®é…列。顧客ãŒã‚¢ã‚¯ã‚»ã‚¹ãƒ¬ãƒ™ãƒ«ã‚’æŒãŸãªã„å ´åˆã¯ç©ºé…列

access_level_idstring

アクセスレベルã®è­˜åˆ¥å­

storestring

アクセスレベルãŒè³¼å…¥ã•れãŸã‚¹ãƒˆã‚¢

store_product_idstring

ストアã«ãŠã‘るプロダクト ID

store_base_plan_idstring

ストアã«ãŠã‘るベースプラン ID

store_transaction_idstring

ストアã«ãŠã‘るトランザクション ID

store_original_transaction_idstring

ストアã«ãŠã‘ã‚‹å…ƒã®ãƒˆãƒ©ãƒ³ã‚¶ã‚¯ã‚·ãƒ§ãƒ³ ID

offerallOf

プロモーションオファーã¾ãŸã¯åˆå›žã‚ªãƒ•ァーãŒé©ç”¨ã•れãŸå ´åˆã®ã‚ªãƒ•ァー詳細

categorystring

オファーã®ã‚«ãƒ†ã‚´ãƒª

One of: "introductory", "promotional", "offer_code", "win_back"

typestring

オファーã®ç¨®åˆ¥

One of: "free_trial", "pay_as_you_go", "pay_up_front"

idstring

オファー ID

starts_atstring

アクセスレベルã®é–‹å§‹æ—¥æ™‚

purchased_atstring

アクセスレベルãŒè³¼å…¥ã•ã‚ŒãŸæ—¥æ™‚

originally_purchased_atstring

ã‚¢ã‚¯ã‚»ã‚¹ãƒ¬ãƒ™ãƒ«ãŒæœ€åˆã«è³¼å…¥ã•ã‚ŒãŸæ—¥æ™‚

expires_atstring

ã‚¢ã‚¯ã‚»ã‚¹ãƒ¬ãƒ™ãƒ«ã®æœ‰åŠ¹æœŸé™

renewal_cancelled_atstring

æ›´æ–°ãŒã‚­ãƒ£ãƒ³ã‚»ãƒ«ã•ã‚ŒãŸæ—¥æ™‚

billing_issue_detected_atstring

請求å•é¡ŒãŒæ¤œå‡ºã•ã‚ŒãŸæ—¥æ™‚

is_in_grace_periodboolean

アクセスレベルãŒã‚°ãƒ¬ãƒ¼ã‚¹æœŸé–“中ã‹ã©ã†ã‹

cancellation_reasonstring

キャンセルã®ç†ç”±

subscriptionsarray of objectrequired

サブスクリプションオブジェクトã®é…列。顧客ãŒã‚µãƒ–スクリプションをæŒãŸãªã„å ´åˆã¯ç©ºé…列

storestring

サブスクリプションãŒè³¼å…¥ã•れãŸã‚¹ãƒˆã‚¢

store_product_idstring

ストアã«ãŠã‘るプロダクト ID

store_base_plan_idstring

ストアã«ãŠã‘るベースプラン ID

store_transaction_idstring

ストアã«ãŠã‘るトランザクション ID

store_original_transaction_idstring

ストアã«ãŠã‘ã‚‹å…ƒã®ãƒˆãƒ©ãƒ³ã‚¶ã‚¯ã‚·ãƒ§ãƒ³ ID

offerallOf

プロモーションオファーã¾ãŸã¯åˆå›žã‚ªãƒ•ァーãŒé©ç”¨ã•れãŸå ´åˆã®ã‚ªãƒ•ァー詳細

categorystring

オファーã®ã‚«ãƒ†ã‚´ãƒª

One of: "introductory", "promotional", "offer_code", "win_back"

typestring

オファーã®ç¨®åˆ¥

One of: "free_trial", "pay_as_you_go", "pay_up_front"

idstring

オファー ID

environmentstring

ç’°å¢ƒï¼ˆã‚µãƒ³ãƒ‰ãƒœãƒƒã‚¯ã‚¹ã€æœ¬ç•ªï¼‰

purchased_atstring

サブスクリプションãŒè³¼å…¥ã•ã‚ŒãŸæ—¥æ™‚

originally_purchased_atstring

ã‚µãƒ–ã‚¹ã‚¯ãƒªãƒ—ã‚·ãƒ§ãƒ³ãŒæœ€åˆã«è³¼å…¥ã•ã‚ŒãŸæ—¥æ™‚

expires_atstring

ã‚µãƒ–ã‚¹ã‚¯ãƒªãƒ—ã‚·ãƒ§ãƒ³ã®æœ‰åŠ¹æœŸé™

renewal_cancelled_atstring

æ›´æ–°ãŒã‚­ãƒ£ãƒ³ã‚»ãƒ«ã•ã‚ŒãŸæ—¥æ™‚

billing_issue_detected_atstring

請求å•é¡ŒãŒæ¤œå‡ºã•ã‚ŒãŸæ—¥æ™‚

is_in_grace_periodboolean

サブスクリプションãŒã‚°ãƒ¬ãƒ¼ã‚¹æœŸé–“中ã‹ã©ã†ã‹

cancellation_reasonstring

キャンセルã®ç†ç”±

non_subscriptionsarray of objectrequired

éžã‚µãƒ–スクリプションオブジェクトã®é…列。顧客ãŒè³¼å…¥å±¥æ­´ã‚’æŒãŸãªã„å ´åˆã¯ç©ºé…列

purchase_idstring

購入ã®ä¸€æ„ã®è­˜åˆ¥å­

storestring

購入ãŒè¡Œã‚れãŸã‚¹ãƒˆã‚¢

store_product_idstring

ストアã«ãŠã‘るプロダクト ID

store_base_plan_idstring

ストアã«ãŠã‘るベースプラン ID

store_transaction_idstring

ストアã«ãŠã‘るトランザクション ID

store_original_transaction_idstring

ストアã«ãŠã‘ã‚‹å…ƒã®ãƒˆãƒ©ãƒ³ã‚¶ã‚¯ã‚·ãƒ§ãƒ³ ID

purchased_atstring

購入ãŒè¡Œã‚ã‚ŒãŸæ—¥æ™‚

environmentstring

ç’°å¢ƒï¼ˆã‚µãƒ³ãƒ‰ãƒœãƒƒã‚¯ã‚¹ã€æœ¬ç•ªï¼‰

is_refundboolean

返金ã‹ã©ã†ã‹

is_consumableboolean

消耗型アイテムã®è³¼å…¥ã‹ã©ã†ã‹

Example
{
  "data": {
    "app_id": "14c3d333-2f3a-455a-aa86-ef83dff6913b",
    "profile_id": "d8533a10-bcce-4e33-8c9d-88b05ac56559",
    "customer_user_id": "77B14FB4-FD2A-4D38-AA3A-4C433F79863C",
    "total_revenue_usd": 9.99,
    "segment_hash": "fdaeef7f8aaa33c9",
    "timestamp": 1733324566777,
    "custom_attributes": [
      {
        "key": "favourite_sport",
        "value": "yoga"
      }
    ],
    "access_levels": [
      {
        "access_level_id": "premium",
        "store": "app_store",
        "store_product_id": "unlimited.9999",
        "store_base_plan_id": null,
        "store_transaction_id": "2000000335013007",
        "store_original_transaction_id": "2000000335013007",
        "offer": null,
        "starts_at": null,
        "purchased_at": "2024-12-24T10:50:23+00:00",
        "originally_purchased_at": "2024-12-24T10:50:23+00:00",
        "expires_at": null,
        "renewal_cancelled_at": "2025-01-05T13:27:47.461425+00:00",
        "billing_issue_detected_at": null,
        "is_in_grace_period": false,
        "cancellation_reason": null
      }
    ],
    "subscriptions": [
      {
        "store": "app_store",
        "store_product_id": "unlimited.9999",
        "store_base_plan_id": null,
        "store_transaction_id": "2000000815013007",
        "store_original_transaction_id": "2000000815013007",
        "offer": null,
        "environment": "Sandbox",
        "purchased_at": "2024-12-24T10:50:23+00:00",
        "originally_purchased_at": "2024-12-24T10:50:23+00:00",
        "expires_at": null,
        "renewal_cancelled_at": null,
        "billing_issue_detected_at": null,
        "is_in_grace_period": false,
        "cancellation_reason": null
      }
    ],
    "non_subscriptions": [
      {
        "purchase_id": "7a5f9a7d-e236-33e6-96d8-53a3c59c5562",
        "store": "app_store",
        "store_product_id": "1year.premium",
        "store_base_plan_id": null,
        "store_transaction_id": "30002109551456",
        "store_original_transaction_id": "30002109551456",
        "purchased_at": "2022-10-12T09:42:50+00:00",
        "environment": "Production",
        "is_refund": faÿÿlse,
        "is_consumable": false
      }
    ]
  }
}

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

Schema
errorsarray of objectrequired
sourcestring

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

errorsarray of string

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

error_codestringrequired

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

status_codeintegerrequired

HTTP ステータスコード

Example
{
  "errors": [
    {
      "source": "non_field_errors",
      "errors": [
        "Authentication credentials were not provided."
      ]
    }
  ],
  "error_code": "not_authenticated",
  "status_code": 401
}

プロファイルãŒè¦‹ã¤ã‹ã‚Šã¾ã›ã‚“

Schema
errorsarray of objectrequired
sourcestring

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

errorsarray of string

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

error_codestringrequired

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

status_codeintegerrequired

HTTP ステータスコード

Example
{
  "errors": [
    {
      "source": null,
      "errors": [
        "Profile not found"
      ]
    }
  ],
  "error_code": "profile_does_not_exist",
  "status_code": 404
}

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

ÿÿÿÿ