Get dashboard statistics data

GET: /wp-json/wc-store-credits/v1/customers/status

Requirements:

  • Logged-in user

  • user role with manage_woocommerce user capability

Method

Endpoint

GET

/wp-json/wc-store-credits/v1/customers/status

Query Parameters

Required

Type

Default

Description

​startPeriod

​no

​string

first day of the current month at 00:00:00 time

Start date period value of statistics to query. Date value should be in mysql date format (Y-m-d H:i:s)

endPeriod

no

string

Current date and time

End date period value of statistics to query. Date value should be in mysql date format (Y-m-d H:i:s)

Last updated