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 .csv suffix or ?format=csv

HTTP + CSV

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

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

AndOr,Group,FieldName,SearchOperator,SearchValue
And,Undefined,String,Undefined,String

HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

IntegrationUpdateID,Entity,EntityIDs,Action,Application,Tries,JsonData,Payload,IntegrationUpdateDateTime
0,String,String,String,String,0,String,String,0001-01-01