Skip to main content
POST
/
cabinet
/
admin
/
landings
Create Landing Page
curl --request POST \
  --url https://api.example.com/cabinet/admin/landings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "slug": "<string>",
  "title": {},
  "subtitle": {},
  "is_active": true,
  "features": [
    {
      "icon": "",
      "title": {},
      "description": {}
    }
  ],
  "footer_text": {},
  "allowed_tariff_ids": [
    123
  ],
  "allowed_periods": {},
  "payment_methods": [
    {
      "method_id": "<string>",
      "display_name": "<string>",
      "description": "<string>",
      "icon_url": "<string>",
      "sort_order": 0,
      "min_amount_kopeks": 123,
      "max_amount_kopeks": 123,
      "currency": "<string>",
      "return_url": "<string>",
      "sub_options": {}
    }
  ],
  "gift_enabled": true,
  "custom_css": "<string>",
  "meta_title": {},
  "meta_description": {},
  "discount_percent": 50,
  "discount_overrides": {},
  "discount_starts_at": "2023-11-07T05:31:56Z",
  "discount_ends_at": "2023-11-07T05:31:56Z",
  "discount_badge_text": {},
  "background_config": {}
}
'
{
  "id": 123,
  "slug": "<string>",
  "title": {},
  "is_active": true,
  "display_order": 123,
  "features": [
    {
      "icon": "",
      "title": {},
      "description": {}
    }
  ],
  "allowed_tariff_ids": [
    123
  ],
  "allowed_periods": {},
  "payment_methods": [
    {
      "method_id": "<string>",
      "display_name": "<string>",
      "description": "<string>",
      "icon_url": "<string>",
      "sort_order": 0,
      "min_amount_kopeks": 123,
      "max_amount_kopeks": 123,
      "currency": "<string>",
      "return_url": "<string>",
      "sub_options": {}
    }
  ],
  "gift_enabled": true,
  "subtitle": {},
  "footer_text": {},
  "custom_css": "<string>",
  "meta_title": {},
  "meta_description": {},
  "discount_percent": 123,
  "discount_overrides": {},
  "discount_starts_at": "2023-11-07T05:31:56Z",
  "discount_ends_at": "2023-11-07T05:31:56Z",
  "discount_badge_text": {},
  "background_config": {},
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
slug
string
required
Required string length: 1 - 100
Pattern: ^[a-z0-9\-]+$
title
Title · object
subtitle
Subtitle · object
is_active
boolean
default:true
features
LandingFeatureInput · object[]
Maximum array length: 20
allowed_tariff_ids
integer[]
Maximum array length: 50
allowed_periods
Allowed Periods · object
payment_methods
LandingPaymentMethodInput · object[]
Maximum array length: 10
gift_enabled
boolean
default:true
custom_css
string | null
Maximum string length: 10000
meta_title
Meta Title · object
meta_description
Meta Description · object
discount_percent
integer | null
Required range: 1 <= x <= 99
discount_overrides
Discount Overrides · object
discount_starts_at
string<date-time> | null
discount_ends_at
string<date-time> | null
discount_badge_text
Discount Badge Text · object
background_config
Background Config · object

Response

Successful Response

id
integer
required
slug
string
required
title
Title · object
required
is_active
boolean
required
display_order
integer
required
features
LandingFeatureInput · object[]
required
allowed_tariff_ids
integer[]
required
allowed_periods
Allowed Periods · object
required
payment_methods
LandingPaymentMethodInput · object[]
required
gift_enabled
boolean
required
subtitle
Subtitle · object
custom_css
string | null
meta_title
Meta Title · object
meta_description
Meta Description · object
discount_percent
integer | null
discount_overrides
Discount Overrides · object
discount_starts_at
string<date-time> | null
discount_ends_at
string<date-time> | null
discount_badge_text
Discount Badge Text · object
background_config
Background Config · object
created_at
string<date-time> | null
updated_at
string<date-time> | null