Integration Stats

Retrieve and upload your data synchronization stats

post
Create Stats

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
Response
Request
Body Parameters
customers
optional
object
Customers API stats: created, updated, failed.
products
optional
object
Products API stats: created, updated, failed.
branches
optional
object
Branches API stats: created, updated, failed.
purchases
optional
object
Purchases API stats: created, updated, duplicated, failed, revenue, units.
files_stats
optional
array
Files stats (array of objects, one object per file)
Response
201: Created
Stats successfully created
400: Bad Request
500: Internal Server Error

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"}
}
}
}
}
}

get
List stats

https://api.woowup.com/apiv3/integration-stats
Retrieve your sync stats
Request
Response
Request
Query Parameters
from
optional
string
Date from. Format yyyy-mm-dd
to
optional
string
Date to. Format yyyy-mm-dd
page
optional
string
Current page. Starts at 0
limit
optional
string
Items per page. Limit 100
Response
200: OK
400: Bad Request
500: Internal Server Error