Orders summary - celdotro/marketplace GitHub Wiki

About

  • Return a summary of orders for a previous number of days specified as a parameter

Class

celmarket\Orders\OrdersSummary

Method

getOrdersSummary

API

  • method: orders
  • action: getOrdersSummary

Parameters

  • nrDays = previous number of days

Response

An object with the following attributes

  • comenzi_noi = data about the new orders -> object
    • nr = total number
    • valoare_totala = total value
  • comenzi_intarziate = data about late orders -> object
    • nr = total number
    • valoare_totala = total value
  • produse_neaprobate = data about unapproved (as in: not yet approved) products -> object
    • nr = total number
  • produse_respinse = data about rejected products -> object
    • nr = total number
  • error = data about encountered errors
    • 0 = no error

Example - PHP

https://github.com/celdotro/marketplace_examples/blob/master/Orders/1.getOrdersSummary.php

Example - JSON

{
  "request": {
   "nrDays": 1 
  },
  
  "response": {
    "comenzi_noi":{
      "nr": 0,
      "valoare_totala": 0
    },
    "comenzi_intarziate":{
      "nr": 0,
      "valoare_totala": 0
    },
    "produse_neaprobate":{
      "nr": 0,
      "valoare_totala": 0
    },
    "produse_respinse":{
      "nr": 0,
      "valoare_totala": 0
    },
    "error": 0
  }
}
⚠️ **GitHub.com Fallback** ⚠️