Retrieve insights
/insightsThe figures for a period, each with the previous period of the same length, using the definitions the Commerce tab shows.
- With
currency, figures count only sales in that currency, in its own amounts. Without it, every figure is in your reporting currency, each sale converted at the rate on the day it was paid. - Figures are up to
updated, a few minutes behind. - Settlements aren't here: they're the main API's.
Headers
AuthorizationstringRequiredQuery parameters
period_startstringRequiredThe first day, in your workspace's time zone.
period_endstringRequiredThe last day, included. Up to 366 days after period_start.
currencystringThree-letter ISO currency code, in lowercase.
countrystringOnly sales to buyers in this country (ISO 3166-1 alpha-2).
productstringOnly this product's lines (prod_). sales.shipping is then 0.
Returns
The figures.
resourcestringcurrencystringThe currency asked for, or your reporting currency.
periodobjectShow 2 child attributesHide child attributes
startstringendstringprevious_periodobjectShow 2 child attributesHide child attributes
startstringendstringupdatedstringsalesobjectShow 3 child attributesHide child attributes
grossobjectShow 2 child attributesHide child attributes
valuenumberpreviousnumberThe same figure for the previous period of the same length.
netobjectGross less refunds. Disputes aren't taken off.
Show 2 child attributesHide child attributes
valuenumberpreviousnumberThe same figure for the previous period of the same length.
shippingintegerShipping charged.
ordersobjectShow 3 child attributesHide child attributes
countobjectShow 2 child attributesHide child attributes
valuenumberpreviousnumberThe same figure for the previous period of the same length.
average_order_valueobjectShow 2 child attributesHide child attributes
valuenumberpreviousnumberThe same figure for the previous period of the same length.
shippedintegerOrders marked shipped in the period.
conversionobjectCheckout sessions that ended paid.
Show 4 child attributesHide child attributes
sessionsintegerpaidintegerrateobjectPaid sessions as a fraction of sessions, such as 0.25, rounded to four places.
Show 2 child attributesHide child attributes
valuenumberpreviousnumberThe same figure for the previous period of the same length.
drop_offarray of objectsSessions that didn't pay, each counted once at the furthest step it reached. All three steps are always listed. A one-page checkout counts as one step, payment.
Show 2 child attributesHide child attributes
stepstringsessionsintegerShow 7 more attributesShow fewer attributes
refundsobjectShow 2 child attributesHide child attributes
amountobjectShow 2 child attributesHide child attributes
valuenumberpreviousnumberThe same figure for the previous period of the same length.
countintegerdisputesobjectShow 2 child attributesHide child attributes
openobjectThe period's orders that are under dispute now.
Show 2 child attributesHide child attributes
valuenumberpreviousnumberThe same figure for the previous period of the same length.
amountintegertaxobjectTax calculated at checkout on your sales.
Show 2 child attributesHide child attributes
amountobjectShow 2 child attributesHide child attributes
valuenumberpreviousnumberThe same figure for the previous period of the same length.
by_countryarray of objectsThe top 10 by value. Orders without a country are left out.
Show 4 child attributesHide child attributes
keystringThe product's ID, the country code or the payment method type.
labelstringvalueintegerpreviousintegerproductsarray of objectsThe top 10 by value.
Show 4 child attributesHide child attributes
keystringThe product's ID, the country code or the payment method type.
labelstringvalueintegerpreviousintegercountriesarray of objectsThe top 10 by value. Orders without a country are left out.
Show 4 child attributesHide child attributes
keystringThe product's ID, the country code or the payment method type.
labelstringvalueintegerpreviousintegerpayment_methodsarray of objectsThe top 10 by value.
Show 4 child attributesHide child attributes
keystringThe product's ID, the country code or the payment method type.
labelstringvalueintegerpreviousintegersales_over_timearray of objectsShow 2 child attributesHide child attributes
datestringgrossintegerErrors
400401403