get_sales_report (GET)

This function generates a report of all the sales of the user in a certain range of dates, generating a Link to download an Excel File or a Json Response. As entry parameters you need, token, the starting date of sales issuance and the final, the status (1 = Active Orders, 2 = Orders Canceled, 3 = All Orders), format (json, EXCEL), if the form is not filled out, it will default to Excel. It returns the download link of the report as a response if the format is Excel. If the format is JSON, it returns the orders information in JSON format.

  • Endpoint : preview.ilsbsys.com/apirest_v1/information

Input Fields

Tag Name Type Size Priority
token string 16 (Mandatory)
desde string 10 (Mandatory)
hasta string 10 (Mandatory)
estatus string 1 (Mandatory)
formato string 10


Fields

{
    "request" : "get_sales_report",
    "token" : "123456789ABC",
    "desde" : "01/01/2022",
    "hasta" : "02/02/2022",
    "estatus" : "1",
    "formato" : "excel"
}

Results

{
    "status": "OK",
    "Enlace de Descarga": "https://bit.ly/3uTyuGU"
}

Common Error Codes

  • 9067 : date is invalid
  • 9066 : format is invalid
  • 9017 : status is invalid
  • 3030 : date range is invalid
  • 9064 : end date is invalid
  • 9063 : start date is invalid
  • 6020 : token is empty
  • 1005 : token is invalid