Attaches a published FluentCart product to a space as a paywall.
cart_product_id must reference a published product, and attaching the same product twice is rejected. The product id list is stored on the space settings, and fluent_community/paywall_added fires afterwards.
Endpoint
Method:
POSTPath:
/cart/spaces/{spaceId}/paywallsEdition: Core
Controller:
PaywallController@addPaywallRoute source:
fluent-community/Modules/Integrations/FluentCart/Http/cart_api.php:16Controller source:
fluent-community/Modules/Integrations/FluentCart/Http/Controllers/PaywallController.phpRequires community-admin access, or the admin role in this space.
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.
POST Create Space Paywall
Attaches a published FluentCart product to a space as a paywall.
Controller: PaywallController@addPaywall
Route source: fluent-community/Modules/Integrations/FluentCart/Http/cart_api.php:16
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
SpaceId extracted from the URL path.
Request Body
Responses
Successful response