Integration Stats

Retrieve and upload your data synchronization stats

Create Stats

POST https://api.woowup.com/apiv3/integration-stats

Create stats in WoowUp based on your processing stats. This includes files stats (eg. read lines, valid lines, invalid lines) and API Stats (e.g created/updated/failed customers). Below is the JSON-schema definition for each body parameter.

Request Body

NameTypeDescription

customers

object

Customers API stats: created, updated, failed.

products

object

Products API stats: created, updated, failed.

branches

object

Branches API stats: created, updated, failed.

purchases

object

Purchases API stats: created, updated, duplicated, failed, revenue, units.

files_stats

array

Files stats (array of objects, one object per file)

JSON schema

{  
	"$schema":"http:\/\/json-schema.org\/draft-04\/schema#",
	"description":"A representation of a integrations stats",
	"type":"object",
	"properties":{  
	   "customers":{  
	      "type":"object",
	      "properties":{  
	         "created":{"type":"integer"},
	         "updated":{"type":"integer"},
	         "failed":{  
	            "type":"array",
	            "items":{  
	               "type":"object",
	               "required":["element"],
	               "properties":{  
	                  "element":{"type":"object"},
	                  "message":{"type":"string"}
	               }
	            }
	         }
	      }
	   },
	   "products":{  
	      "type":"object",
	      "properties":{  
	         "created":{"type":"integer"},
	         "updated":{"type":"integer"},
	            "failed":{  
	            "type":"array",
	            "items":{  
	               "type":"object",
	               "required":["element"],
	               "properties":{  
	                  "element":{"type":"object"},
	                  "message":{"type":"string"}
	               }
	            }
	         }
	      }
	   },
	   "branches":{  
	      "type":"object",
	      "properties":{  
	         "created":{"type":"integer"},
	         "updated":{"type":"integer"},
	         "failed":{  
	            "type":"array",
	            "items":{  
	               "type":"object",
	               "required":["element"],
	               "properties":{  
	                  "element":{"type":"object"},
	                  "message":{"type":"string"}
	               }
	            }
	         }
	       }
	   },
	   "purchases":{  
	      "type":"object",
	      "properties":{  
	         "created":{"type":"integer"},
	         "updated":{"type":"integer"},
	         "duplicated":{"type":"integer"},
	         "revenue":{"type":"number"},
	         "units":{"type":"integer"},
	         "failed":{  
	            "type":"array",
	            "items":{  
	               "type":"object",
	               "required":["element"],
	               "properties":{  
	                  "element":{"type":"object"},
	                  "message":{"type":"string"}
	               }
	            }
	         }
	      }
	   },
	   "createtime":{"type":"string"},
	   "files_stats":{  
	      "type":"array",
	      "items":{  
	         "type":"object",
	         "required":["filename"],
	         "properties":{  
	            "filename":{"type":"string"},
	            "read_lines":{"type":"integer"},
	            "valid_lines":{"type":"integer"},
	            "unique_registers":{"type":"integer"},
	            "invalid_lines":{
	               "type":"array",
	               "items":{  
	                  "type":"object",
	                  "required":["line"],
	                  "properties":{  
	                     "line":{"type":"integer"},
	                     "message":{"type":"string"},
	                     "additional_details":{"type":"object"}
	                  }
	               }
	            },
	            "revenue":{"type":"number"},
	            "units":{"type":"integer"},
	            "orders_customers":{"type":"integer"}
	         }
	      }
	   }
	}
}

List stats

GET https://api.woowup.com/apiv3/integration-stats

Retrieve your sync stats

Query Parameters

NameTypeDescription

from

string

Date from. Format yyyy-mm-dd

to

string

Date to. Format yyyy-mm-dd

page

string

Current page. Starts at 0

limit

string

Items per page. Limit 100

Last updated