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:
GETPath:
/cart/spaces/{spaceId}/paywallsEdition: Core
Controller:
PaywallController@getPaywallsRoute source:
fluent-community/Modules/Integrations/FluentCart/Http/cart_api.php:15Controller source:
fluent-community/Modules/Integrations/FluentCart/Http/Controllers/PaywallController.phpOnly 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
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
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
SpaceId extracted from the URL path.
Query Parameters
Paywall Ids read via $request->get() in getPaywalls().
Responses
Successful response