Skip to content

Endpoint

  • Method: POST
  • Path: /cart/spaces/{spaceId}/paywalls
  • Edition: Core
  • Controller: PaywallController@addPaywall
  • Route source: fluent-community/Modules/Integrations/FluentCart/Http/cart_api.php:14
  • Controller source: fluent-community/Modules/Integrations/FluentCart/Http/Controllers/PaywallController.php

POST Create Space Paywall

POST
/cart/spaces/{spaceId}/paywalls

Create Space Paywall for the FluentCommunity Cart Integration API.

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

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",
  
"paywall": {
  
  
"ID": 0,
  
  
"post_title": "string",
  
  
"post_status": "string",
  
  
"post_excerpt": "string",
  
  
"thumbnail": "string",
  
  
"view_url": "string"
  
}
}

Playground

Authorization
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation