Use this to specify which store you want to use. The store IDs can be retrieved with the Get basic information about stores endpoint.
The beginning of the period to get the statistics from (date in Y-m-d format).
The end of the period to get the statistics from (date in Y-m-d format).
A comma-separated list of report types to be retrieved.
Optionalcurrency: stringThe currency (3-letter code) to return the statistics in. The store currency will be used by default.
any OK
Retrieve a single store Get information about a single store.
Store ID
OptionalxPfStoreId: stringUse this to specify which store you want to use.
The store IDs can be retrieved with the Get basic information about stores endpoint.
any OK
Retrieves a list of stores Retrieves a list of all stores available to the token. If the token is a store level token it will return only the one store, if it is an account level token it will return all stores available to the account.
OptionalxPfStoreId: stringUse this to specify which store you want to use.
The store IDs can be retrieved with the Get basic information about stores endpoint.
any OK
Retrieve statistics for a single store Returns statistics for specified report types.
You need to specify the report types you want to retrieve in the
report_typesquery parameter as a comma-separated list, e.g.report_types=sales_and_costs,profit.Note: You cannot get statistics for a period longer than 6 months.
Example
To get statistics in the default currency of a store for
sales_and_costsandprofitreports for August 2022, you can use the following URL: https://api.printful.com/v2/stores/{id}/statistics?report_types=sales_and_costs,profit&date_from=2022-08-01&date_to=2022-08-31.Report types
Currently, the following report types are available:
sales_and_costssales_and_costs_summaryprintful_costsprofittotal_paid_orderscosts_by_amountcosts_by_productcosts_by_variantaverage_fulfillment_timeThe response structure for the specific reports is documented in the response schema (
result.store_statistics.[reportName]).