Hi,
I have a question of how to calculate the net sales using the orders api.
Currently I get the orders by a location_id and a period. Lets say 2025/08/29 - 2025/09/05 using the search order endpoint.
For each order I receive I only look at the orders with state = COMPLETED and then I aggregate order.net_amount.total_money.amount for each of those orders.
As I understand it should give me the net sales for all the orders for the given period.
Though when I look at the net_sales in my Square Dashboard I have a different number than what I calculated for the exact same period. This suggest my calculations are wrong.
Is there someone who knows how to calculate the net_sales for my square orders?
Is what I am doing correct? If no what is the correct way? If yes what might go wrong since the numbers are different in my calculation vs the net_sales number in my Square dashboard.