Skip to main content
POST
/
profitability
/
productProfitAndLoss
Retrieve single or multiple product profit and loss details
curl --request POST \
  --url https://mm-api.merchantspring.io/profitability/productProfitAndLoss \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "channelId": "<string>",
  "merchantId": "<string>",
  "reportOptions": {
    "fromDate": 123,
    "toDate": 123,
    "includeTax": true,
    "sellerSkus": [
      "<string>"
    ],
    "pageSize": 123,
    "pageIndex": 123
  }
}
'
{
  "productEvents": [
    {
      "sellerSku": "<string>",
      "productSku": "<string>",
      "title": "<string>",
      "totalRevenue": 123,
      "totalExpenses": 123,
      "totalProfit": 123,
      "sales": 123,
      "advertisingSpend": 123,
      "sellingFees": 123,
      "shippingFees": 123,
      "refunds": 123,
      "reimbursements": 123,
      "otherIncome": 123,
      "promotions": 123,
      "refundsAndReturnsOverheads": 123,
      "cogs": 123,
      "otherExpenses": 123
    }
  ],
  "count": 123
}

Authorizations

x-api-key
string
header
required

Body

application/json

Product profit and loss criteria

Request a single or multiple products profit and loss details.

channelId
string
required
merchantId
string
required
reportOptions
object
required

Response

Successful operation

Response for a single or multiple products profit and loss details

productEvents
object[]
count
number