Skip to content

Detaches a FluentCart product from a space so it no longer sells access to it.

cart_product_id must currently be attached to the space, and the product must still be published — a product unpublished in FluentCart after being linked cannot be detached here. Passing revoke_access=yes additionally drops the space from the FluentCart product integration feed.

Endpoint

  • Method: DELETE

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

  • Edition: Core

  • Controller: PaywallController@removePaywall

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

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

  • Requires community-admin access, or the admin role in this space.

  • The product itself is not deleted; only the link between it and the space is removed.

  • Even with revoke_access=yes, members who already bought access keep their membership — the setting only stops future orders from granting it.

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.

DELETE Delete Space Paywall

DELETE
/cart/spaces/{spaceId}/paywalls

Detaches a FluentCart product from a space so it no longer sells access to it.

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

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

Request Body

application/json
JSON
{
  
"cart_product_id": "string"
}

Responses

Successful response

application/json
JSON
{
  
"message": "string"
}

Playground

Authorization
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation