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.
201 Stats successfully created 400 500
Copy {
"$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" }
}
}
}
}
}