Settings
/loyalty-program/v1/settings
The admin settings API allows you to do the following:
fetch setting sections
fetch a section's list of fields
read, update and delete setting options for LPFW.
GET: /wp-json/loyalty-program/v1/settings/sections
Fetch all sections of LPFW settings.
Requirements:
Logged-in user
user role with
manage_woocommerce
user capability
Method | Endpoint |
GET | /wp-json/loyalty-program/v1/settings/sections |
Request Headers | Required | Type | Description |
section | false | string | Slug of the current section. When filled, it will preload the section's fields. |
GET: /wp-json/loyalty-program/v1/settings/sections/{section_id}
Get fields for a given setting section
Requirements:
Logged-in user
user role with
manage_woocommerce
user capability
Method | Endpoint |
GET | /wp-json/loyalty-program/v1/settings/sections/{section_id} |
GET: /wp-json/loyalty-program/v1/settings/{lpfw_option_name}
Get value for a LPFW setting option.
Method | Endpoint |
GET | /wp-json/loyalty-program/v1/settings/{lpfw_option_name} |
PUT: /wp-json/loyalty-program/v1/settings/{lpfw_option_name}
Update value of a LPFW setting option.
Requirements:
Logged-in user
user role with
manage_woocommerce
user capability
Method | Endpoint |
PUT | /wp-json/loyalty-program/v1/settings/{lpfw_option_name} |
Query Parameters | Required | Type | Description |
value | true | mixed | Value to update |
type | false | string | Format type of value. Default as |
DELETE: /wp-json/loyalty-program/v1/settings/{lpfw_option_name}
Update value of a LPFW setting option.
Requirements:
Logged-in user
user role with
manage_woocommerce
user capability
Method | Endpoint |
DELETE | /wp-json/loyalty-program/v1/settings/{lpfw_option_name} |
Last updated