Skip to content

Searches published FluentCart products that have at least one variant, returning up to 20 with their formatted price range, for the paywall picker.

Endpoint

  • Method: GET

  • Path: /cart/products/search

  • Edition: Core

  • Controller: PaywallController@searchProduct

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

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

  • Only portal access is required because this is a GET route, so any member — and anonymous visitors on a public portal — can enumerate product titles and prices; an empty search returns the first 20 products.

  • 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 Search Cart Products

GET
/cart/products/search

Searches published FluentCart products that have at least one variant, returning up to 20 with their formatted price range, for the paywall picker.

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

Authorizations

ApplicationPasswords

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

Type
API Key (header: Authorization)

Parameters

Query Parameters

search

Search read via $request->getSafe() in searchProduct().

Type
string

Responses

Successful response

application/json
JSON
{
  
"products": [
  
  
{
  
  
  
"id": "string",
  
  
  
"title": "string",
  
  
  
"image": "string",
  
  
  
"price": "string"
  
  
}
  
]
}

Playground

Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation