Insights

Profit from actual costs and processor fees, and net receipts per payment method, in the store currency

GET
/v1/stores/{storeId}/insights/profit

Authorization

AuthorizationBearer <token>

API key from Settings → API keys

In: header

Path Parameters

storeId*string

Query Parameters

from*string
Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
Formatdate-time
to*string
Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
Formatdate-time
productId?string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
productIds?string
Lengthlength <= 4000
variantId?string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
paymentMethodId?string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
paymentMethodIds?string
Lengthlength <= 4000
excludeManual?string

Value in

  • "true"
  • "false"
excludeArchived?string

Value in

  • "true"
  • "false"

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/stores/string/insights/profit?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z"
{  "currency": "string",  "orders": -9007199254740991,  "receivedMinor": -9007199254740991,  "refundedMinor": -9007199254740991,  "taxMinor": -9007199254740991,  "costMinor": -9007199254740991,  "feesMinor": -9007199254740991,  "estimatedFeesMinor": -9007199254740991,  "profitMinor": -9007199254740991,  "ordersWithoutCost": -9007199254740991,  "ordersWithoutFeeEstimate": -9007199254740991,  "unconverted": [    "string"  ],  "methods": [    {      "paymentMethodId": "b6df8625-cd25-4123-b345-638aa7b5d011",      "label": "string",      "provider": "string",      "providerName": "string",      "orders": -9007199254740991,      "receivedMinor": -9007199254740991,      "refundedMinor": -9007199254740991,      "feesMinor": -9007199254740991,      "settledFeesMinor": -9007199254740991,      "estimatedFeesMinor": -9007199254740991,      "netMinor": -9007199254740991,      "pendingOrders": -9007199254740991,      "feeSource": "provider",      "estimate": {        "bp": -9007199254740991,        "fixedMinor": -9007199254740991,        "from": "method"      },      "unconvertedFees": [        "string"      ]    }  ],  "products": [    {      "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",      "name": "string",      "units": -9007199254740991,      "revenueMinor": -9007199254740991,      "costMinor": -9007199254740991,      "feesMinor": -9007199254740991,      "profitMinor": -9007199254740991,      "costKnown": true    }  ],  "variants": [    {      "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",      "name": "string",      "variantId": "d53feca7-c65b-4741-aca7-827a42d686bf",      "variantName": "string",      "units": -9007199254740991,      "revenueMinor": -9007199254740991,      "costMinor": -9007199254740991,      "feesMinor": -9007199254740991,      "profitMinor": -9007199254740991,      "costKnown": true    }  ]}