ÿÿ Web API objects

Web API objects

Offer object

This object contains details about the applied offer.

{
  "category": "no_offer",
  "type": "free_trial",
  "id": "Offer Name"
}

Properties

NameTypeRequiredDescription
categoryStringYesCategory of the applied offer. Possible values: introductory, promotional, winback.
typeStringYesType of the applied offer. Possible values: free_trial, pay_as_you_go, pay_up_front.
IdStringYesThe Offer name of the applied offer as specified in the Products section of the Adapty Dashboard.

Paywall object

ペイウォールã«é–¢ã™ã‚‹æƒ…報をå«ã‚€ã‚ªãƒ–ジェクトã§ã™ã€‚

プロパティ

åå‰åž‹å¿…須説明
placement_idString:heavy_plus_sign:ã“ã®ãƒšã‚¤ã‚¦ã‚©ãƒ¼ãƒ«ãŒè¡¨ç¤ºã•れるプレースメントã®ID。Adapty ダッシュボードã§ãƒ—レースメントを作æˆã™ã‚‹éš›ã«è¨­å®šã—ã¾ã™ã€‚
variation_idString(uuid):heavy_plus_sign:ã“ã®ç‰¹å®šã®ãƒšã‚¤ã‚¦ã‚©ãƒ¼ãƒ«ã«ç´ã¥ã購入を追跡ã™ã‚‹ãŸã‚ã«ä½¿ç”¨ã™ã‚‹ãƒãƒªã‚¢ã‚·ãƒ§ãƒ³ID。
paywall_idString(uuid):heavy_plus_sign:ペイウォールã®ä¸€æ„ã®è­˜åˆ¥å­ã€‚
ab_test_nameString:heavy_minus_sign:親A/B テストã®åå‰ã€‚
paywall_nameString:heavy_plus_sign:Adapty ダッシュボードã§å®šç¾©ã•れãŸãƒšã‚¤ã‚¦ã‚©ãƒ¼ãƒ«ã®åå‰ã€‚
productsArray of objects:heavy_plus_sign:ペイウォールã®ãƒ—ロダクト情報をå«ã‚€ãƒ—ロダクトオブジェクトã®é…列。
remote_configJSON:heavy_minus_sign:ペイウォールã®å®Œå…¨ãªãƒªãƒ¢ãƒ¼ãƒˆã‚³ãƒ³ãƒ•ィグをJSONå½¢å¼ã§å«ã‚€RemoteConfigオブジェクト。

例

{
  "placement_id": "PaywallPlacementId",
  "variation_id": "00000000-0000-0000-0000-000000000000",
  "paywall_id": "InternalPaywallId",
  "ab_test_name": "Existing Offer | Improved Offer",
  "paywall_name": "Used Paywall",
  "products": [
    {
      "title": "Monthly Subscription w/o Trial",
      "is_consumable": true,
      "adapty_product_id": "InternalProductId",
      "vendor_product_id": "onemonth_no_trial",
      "introductory_offer_eligibility": false,
      "promotional_offer_eligibility": true,
      "base_plan_id": "B1",
      "offer": {
        "category": "promotional",
        "type": "pay_up_front",
        "id": "StoreOfferId"
      }
    }
  ],
  "remote_config": {
    "lang": "en",
    "data": "RemoteConfigObject"
  }
}

Products object

This object contains details about a product in Adapty.

Properties

NameTypeRequiredDescription
titleStringNoProduct name from the Products section in the Adapty Dashboard.
is_consumableBooleanYesIndicates whether the product is consumable.
adapty_product_idUUIDNoInternal product ID as used in Adapty.
vendor_product_idStringYesThe product ID in app stores.
introductory_offer_eligibilityBooleanNoSpecifies if the user is eligible for an iOS introductory offer.
promotional_offer_eligibilityBooleanNoSpecifies if the user is eligible for a promotional offer.
base_plan_idStringNoBase plan ID for Google Play or price ID for Stripe.
offerJSONNoAn Offer object as a JSON.

Example

{
  "title": "Monthly Subscription w/o Trial",
  "is_consumable": true,
  "adapty_product_id": "InternalProductId",
  "vendor_product_id": "onemonth_no_trial",
  "introductory_offer_eligibility": false,
  "promotional_offer_eligibility": true,
  "base_plan_id": "B1",
  "offer": {
    "category": "promotional",
    "type": "pay_up_front",
    "id": "StoreOfferId"
  }
}

RemoteConfig object

This object contains information about a remote config for a paywall.

{
  "lang": "en",
  "data": "{\"bodyItems\":[{\"spacerValue\":{\"height\":20,\"style\":{\"type\":\"emptySpace\"}},\"type\":\"spacer\"},{\"mediaValue\":{\"ratio\":\"1:1\",\"source\":{\"fileType\":\"image\",\"reference\":{\"en\":\"bundle/images/new1.png\"}},\"widthStyle\":\"full\"},\"type\":\"media\"},{\"titleValue\":{\"alignment\":\"center\",\"subtitleConfig\":{\"fontSize\":17,\"text\":\"\",\"color\":\"#FFFFFF\"},\"titleConfig\":{\"fontSize\":22,\"text\":\"\"}},\"type\":\"title\"},{\"productListValue\":{\"items\":[{\"productId\":\"exampleapp.oneWeek\",\"promoText\":\"paywall.promo-1.title\",\"backgroundColor\":\"#0B867D\"},{\"discountRate\":80,\"productId\":\"exampleapp.oneYear\",\"promoText\":\"paywall.promo-2.title\",\"backgroundColor\":\"#0B867D\"}],\"layout\":\"vertical\"},\"type\":\"productList\"}],\"defaultProductId\":\"exampleapp.oneWeek\",\"footer\":{\"singleProductValue\":{\"customTitles\":{\"exampleapp.oneWeek\":\"Subscribe\",\"exampleapp.oneYear\":\"Subscribe\"},\"productId\":\"exampleapp.oneWeek\"},\"type\":\"singleProduct\"},\"id\":\"exampleapp\",\"isFullScreen\":true,\"settings\":{\"backgroundColor\":\"#000000\",\"closeButtonAlignment\":\"left\",\"closeButtonIconStyle\":\"light\",\"colorScheme\":{\"accent\":\"#007566\",\"background\":\"#001B0D\",\"label\":\"#FFFFFF\",\"primary\":\"#10C6B6\",\"secondaryLabel\":\"#FFFFFF\",\"seperator\":\"#FFFFFF\"},\"isFullScreen\":true,\"shouldShowAlertOnClose\":false,\"showCloseButtonAfter\":1,\"triggerPurchaseWithAlert\":false,\"triggerPurchaseWithProductChange\":false}}"
}

Properties

NameTypeRequiredDescription
langString:heavy_plus_sign:

Locale code for the [paywall localization. It uses language and region subtags separated by a hyphen (-).

Examples: en for English, pt-br for Brazilian Portuguese.

Refer to Localizations and locale codes for more details.

dataString:heavy_plus_sign:Serialized JSON string representing the remote config of your paywall. You can find it in the Remote Config tab of a specific paywall in the Adapty Dashboard.
ÿÿÿÿ