Admin API / Types

SalesSummary

Object

Totals of sold orders: orders with payment status PAID (paid, ready to ship, shipped or delivered). Refunded and cancelled orders are excluded, and partial refunds are not subtracted. Amounts are in USD. An order with no buyer, shipment or item counts. Counts only the orders in the current payment mode of the marketplace: live orders while its new payments move real money, else test orders. A livemode value in where replaces the current payment mode. Every total is 0 when no order matches.

type SalesSummary

Fields

FieldTypeDescription
marketplaceEarningsMoney
Sum of the marketplace owner's share of the fees on each counted order. Requires the ADMIN role or higher. A lower role gets a FORBIDDEN error on this field only.
netEarningsMoney!
Sum of what the sellers earn on each counted order after every fee and fee tax. Not the amount paid out.
orderCountNonNegativeInt!
Number of counted orders.
sellerCountNonNegativeInt!
Number of sellers with at least one counted order.
totalEarningsMoney!
The same value as netEarnings.Deprecated. Use netEarnings.
totalSalesMoney!
Sum of order totals: subtotal, shipping fee and sales tax, before discounts and credits.
uniqueBuyerCountNonNegativeInt!
Number of distinct buyer accounts with at least one counted order. An order with no buyer account does not add to it.

Returned by