Skip to content

Shoppable API โ€‹

Manage shoppable feed settings and per-feed shoppable data on templates.

Base URL: https://your-site.com/wp-json/wpsocialreviews/v2

Policy: ShoppablePolicy

Handler: ShoppablesController.


Get Posts โ€‹

GET /shoppable/posts

Return posts for a given post type (used to attach products to shoppable feeds).

ParameterTypeLocationRequiredDescription
postTypestringqueryYesPost type to list

Response: { "posts": [] }


Global Settings โ€‹

GET /shoppable ยท PUT /shoppable ยท DELETE /shoppable
MethodHandlerInputsResponse
GET@indexpostType{ "settings", "has_item", "post_types" }
PUT@updatesettings (JSON; hashtags required){ "message" }
DELETE@deletesettings (JSON){ "message" }

Store Template Settings โ€‹

PUT /shoppable/template-settings/{id}

Save per-feed shoppable data into a template. Fires update_editor_settings_{platform}.

Handler: @storeTemplateSettings

ParameterTypeLocationRequiredDescription
idintegerpathYesTemplate (post) ID
platformstringbodyYesPlatform slug
shoppable_fieldsobject (JSON)bodyYesProduct mappings
settingsobject (JSON)bodyNoFeed settings
feedobject (JSON)bodyNo{ username, id }

WP Social Ninja Developer Documentation