Create a store credit entry
POST: /wp-json/wc-store-credits/v1/entries
Parameters
Required
Type
Default
Description
POST: http://example.com/wp-json/wc-store-credits/v1/entry
{
"user_id": 10,
"amount": 30.25,
"type": "increase",
"action": "admin_increase",
"object_id": 1
}POST: http://example.com/wp-json/wc-store-credits/v1/entry
{
"user_id": 10,
"amount": 100,
"type": "increase",
"action": "admin_increase"
}Source / Action Types
Pre-defined source types:
Source Type
Label
Description
Pre-defined action types:
Action type
Label
Registering custom point sources
Using the filter example:
Point source schema:
Property key
Description
Related property schema:
Property Key
Value type
Description
Last updated