Skip to content

Returns the published FluentCart products attached to a space as paywalls, each variant carrying its price, thumbnail and a ready-made instant-checkout URL.

Pass paywall_ids to narrow the result to specific variants. The checkout URL already carries the redirect back into the portal with the space id attached.

Endpoint

  • Method: GET

  • Path: /cart/spaces/{spaceId}/paywalls

  • Edition: Core

  • Controller: PaywallController@getPaywalls

  • Route source: fluent-community/Modules/Integrations/FluentCart/Http/cart_api.php:15

  • Controller source: fluent-community/Modules/Integrations/FluentCart/Http/Controllers/PaywallController.php

  • Only portal access is required because this is a GET route, and the space is loaded without global scopes, so paywall details can be read for any space id including secret ones. The response also carries a wp-admin URL per product.

  • The whole cart route group only exists while FluentCart is active.

Reconstructed sample

This endpoint belongs to a module that is not active on the reference install (or needs a file upload), so the payload below was reconstructed by reading the controller rather than recorded. Field names and types follow the source; values are illustrative.

GET List Space Paywalls

GET
/cart/spaces/{spaceId}/paywalls

Returns the published FluentCart products attached to a space as paywalls, each variant carrying its price, thumbnail and a ready-made instant-checkout URL.

Controller: PaywallController@getPaywalls
Route source: fluent-community/Modules/Integrations/FluentCart/Http/cart_api.php:15

Authorizations

ApplicationPasswords

WordPress Application Passwords — use Basic auth with username:application_password.

Type
API Key (header: Authorization)

Parameters

Path Parameters

spaceId*

SpaceId extracted from the URL path.

Type
integer
Required

Query Parameters

paywall_ids

Paywall Ids read via $request->get() in getPaywalls().

Type
array
Default

Responses

Successful response

application/json
JSON
{
  
"paywalls": [
  
  
{
  
  
  
"ID": "string",
  
  
  
"post_title": "string",
  
  
  
"post_status": "string",
  
  
  
"post_excerpt": "string",
  
  
  
"view_url": "string",
  
  
  
"admin_url": "string",
  
  
  
"thumbnail": "string",
  
  
  
"detail": {
  
  
  
  
"id": "string",
  
  
  
  
"post_id": 0,
  
  
  
  
"fulfillment_type": "string",
  
  
  
  
"min_price": 0,
  
  
  
  
"max_price": 0,
  
  
  
  
"default_variation_id": "string",
  
  
  
  
"default_media": "string",
  
  
  
  
"manage_stock": "string",
  
  
  
  
"stock_availability": "string",
  
  
  
  
"variation_type": "string",
  
  
  
  
"manage_downloadable": "string",
  
  
  
  
"other_info": "string",
  
  
  
  
"created_at": "string",
  
  
  
  
"updated_at": "string",
  
  
  
  
"featured_media": {
  
  
  
  
  
"url": "string"
  
  
  
  
},
  
  
  
  
"formatted_min_price": "string",
  
  
  
  
"formatted_max_price": "string"
  
  
  
},
  
  
  
"variants": [
  
  
  
  
{
  
  
  
  
  
"id": "string",
  
  
  
  
  
"post_id": 0,
  
  
  
  
  
"item_price": 0,
  
  
  
  
  
"variation_title": "string",
  
  
  
  
  
"other_info": {
  
  
  
  
  
  
"description": "string",
  
  
  
  
  
  
"payment_type": "string",
  
  
  
  
  
  
"times": "string",
  
  
  
  
  
  
"repeat_interval": "string",
  
  
  
  
  
  
"trial_days": "string",
  
  
  
  
  
  
"billing_summary": "string",
  
  
  
  
  
  
"manage_setup_fee": "string",
  
  
  
  
  
  
"signup_fee_name": "string",
  
  
  
  
  
  
"signup_fee": "string",
  
  
  
  
  
  
"setup_fee_per_item": "string"
  
  
  
  
  
},
  
  
  
  
  
"thumbnail": "string",
  
  
  
  
  
"photo": "string",
  
  
  
  
  
"total_price": "string",
  
  
  
  
  
"checkout_url": "string"
  
  
  
  
}
  
  
  
]
  
  
}
  
]
}

Playground

Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation