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.
Optional
currency: 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
Optional
xPfStoreId: 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.
Optional
xPfStoreId: 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_types
query 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_costs
andprofit
reports 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_costs
sales_and_costs_summary
printful_costs
profit
total_paid_orders
costs_by_amount
costs_by_product
costs_by_variant
average_fulfillment_time
The response structure for the specific reports is documented in the response schema (
result.store_statistics.[reportName]
).