Query a list of store credit entries
GET: /wp-json/wc-store-credits/v1/entries
Requirements:
Logged-in user
user role with
manage_woocommerce
user capability
Method
Endpoint
GET
/wp-json/wc-store-credits/v1/entries
Query Parameters
Required
Type
Default value
Description
page
no
integer
1
Current page to load in query.
per_page
no
integer
10
Number of entries to load per page in query.
sort_by
no
string
date
Value to be based for sorting: user_id
, date
, type
, action
.
sort_order
no
string
desc
Order of sorting: desc
or asc
user_id
no
integer
0
Load entries for a specific user.
is_admin
no
boolean
false
Flag to set the displayed action links to be either for admin or for the frontend.
Last updated