put/paywalls/{paywallId}

Request

  • Base URL
    https://api.web2wave.com/api
  • URL
    https://api.web2wave.com/api/paywalls/{paywallId}
  • Auth
    API key in header api_key

Path parameters

paywallIdinteger required

Headers

api_keystring required

Request body

slugstring nullable
namestring nullable
payment_system'stripe' | 'paddle' | 'paypal' | 'revenuecat' | 'adapty' | 'qonversion' | 'cloudpayments' | 'primer' nullable
comparison_period'day' | 'week' | 'month' | 'year' nullable
themestring nullable
languagestring nullable
countrystring nullable

ISO 3166-1 alpha-2 country code

plansinteger[] nullable
custom_head_htmlstring nullable
custom_cssstring nullable
faviconstring nullable

Favicon CDN URL (upload via POST /project-files/upload first).

auto_currency_switchingboolean nullable

Enable automatic currency switching by visitor geo. Invalid values return 422.

tagsstring[]
source_paywallinteger nullable
auto_languagesinteger nullable
templates_version1 | 2 nullable

Paywall templates version. New paywalls default to 2 when created via API.

published_versioninteger nullable
css_variablesobject nullable
screensstring json nullable

JSON string with paywall screens content

Example request

{
  "prices": [
    {
      "after_pay_redirect": {
        "id": 24757
      }
    }
  ],
  "after_pay_redirect": {
    "id": 24757
  }
}

Response

Paywall updated

successinteger

Example response

{
  "paywall": {
    "id": 210,
    "project_id": 78,
    "slug": "api-paywall",
    "name": "API Paywall",
    "payment_system": "stripe",
    "after_pay_redirect": {
      "id": 24757
    },
    "prices": [
      {
        "after_pay_redirect": {
          "id": 24757
        }
      }
    ],
    "source_data": "JSON"
  }
}

Changes

    • info

      added the new optional request property /

    • info

      added the new optional request property /

    • info

      added the new optional request property /

    • info

      added the new optional request property /

    • info

      added the new optional request property /

    • info

      added the new optional request property /

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status