Megaventory API v2017a

<back to all web services

IntegrationUpdateGet

The following routes are available for this service:
GET POST/IntegrationUpdate/IntegrationUpdateGetGets information on your Integration Updates Uses your API Key and some Filters in an array format and returns the search results using the given filters. Optionally, you can use ReturnTopNRecords to limit the number of the results to the specified number (omit, or add ReturnTopNRecords = -1 to get all the available results). The ReturnTopNRecords chooses the top records in a DiscountID descending order.

Examples:



A.

Get the first Integration Update with ID greater than 144490. The result is returned as an mvDiscounts object.

Value:

{"Filters": [{
         "FieldName": "IntegrationUpdateID",
         "SearchOperator": "GreaterThan",
         "SearchValue": 144490
      }],"ReturnTopNRecords":1}


Response:

{
   "mvIntegrationUpdates": [
      {
         "IntegrationUpdateID": 144491,
         "Entity": "stock",
         "EntityIDs": "rm1##$rm2##$fg1_rm1_rm2",
         "Action": "update",
         "Application": "magento",
         "Tries": 0,
         "JsonData": [
            {
               "inventory_id": 3405,
               "productID": 27388,
               "stock_data": {
                  "stockqty": 999.8,
                  "stockqtyonhold": 0,
                  "stockalarmqty": 0,
                  "stocknonshippedqty": 0,
                  "stocknonreceivedqty": 0,
                  "stockwipcomponentqty": 0.2,
                  "stocknonreceivedwoqty": 0,
                  "stocknonallocatedwoqty": 2.8
               }
            },
            {
               "inventory_id": 3405,
               "productID": 27389,
               "stock_data": {
                  "stockqty": 999.8,
                  "stockqtyonhold": 0,
                  "stockalarmqty": 0,
                  "stocknonshippedqty": 0,
                  "stocknonreceivedqty": 0,
                  "stockwipcomponentqty": 0.2,
                  "stocknonreceivedwoqty": 0,
                  "stocknonallocatedwoqty": 2.8
               }
            },
            {
               "inventory_id": 3405,
               "productID": 27390,
               "stock_data": {
                  "stockqty": 0,
                  "stockqtyonhold": 0,
                  "stockalarmqty": 0,
                  "stocknonshippedqty": 0,
                  "stocknonreceivedqty": 0,
                  "stockwipcomponentqty": 0,
                  "stocknonreceivedwoqty": 3,
                  "stocknonallocatedwoqty": 3
               }
            }
         ],
         "Payload": "",
         "IntegrationUpdateDateTime": "/Date(1520009685830-0000)/"
      }
   ],
   "ResponseStatus": {
      "ErrorCode": "0"
   }
} 


To override the Content-type in your clients HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/IntegrationUpdateGet HTTP/1.1 
Host: api.megaventory.com 
Content-Type: text/jsv
Content-Length: length

{
	Filters: 
	[
		{
			AndOr: And,
			Group: Undefined,
			FieldName: String,
			SearchOperator: Undefined,
			SearchValue: String
		}
	],
	ReturnTopNRecords: 0,
	APIKEY: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	mvIntegrationUpdates: 
	[
		{
			IntegrationUpdateID: 0,
			Entity: String,
			EntityIDs: String,
			Action: String,
			Application: String,
			Tries: 0,
			JsonData: String,
			Payload: String,
			IntegrationUpdateDateTime: 0001-01-01
		}
	],
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String
			}
		]
	},
	InternalErrorCode: String
}