Megaventory API v2017a

<back to all web services

IntegrationUpdateUpdate

The following routes are available for this service:
POST/IntegrationUpdate/IntegrationUpdateUpdateUpdates Information or Inserts a new Integration Update Uses your API Key and applies a mvRecordAction value on an mvIntegrationUpdate object. We can insert the mvIntegrationUpdate object we specified using "Insert" as our mvRecordAction. We can update a current mvIntegrationUpdate using "Update". We can insert it if it doesn't already exist, update it if it does using "InsertOrUpdate" and we can insert new fields or update non-empty fields of the IntegrationUpdate using "InsertOrUpdateNonEmptyFields". Optionally, you can use mvInsertUpdateDeleteSourceApplication when an external application ( eg Magento ) is the one that triggers the IntegrationUpdate call.

Examples:



A.

Update the IntegrationUpdate with id 144480 to have a payload marked as NEW

Value:

{
  "mvIntegrationUpdate": {
    "IntegrationUpdateID": "144480",
    "Entity": "stock",
    "EntityIDs": "rm2##$rm1",
    "Action": "update",
    "Application": "magento-1",
    "Tries": "0",
    "Payload": "NEW",
    "IntegrationUpdateDateTime": "/Date(1520009179397-0000)/"
  },
  "mvRecordAction": "update"
}


Response:

{
   "mvIntegrationUpdate": {
      "IntegrationUpdateID": 144480,
      "Entity": "stock",
      "EntityIDs": "rm2##$rm1",
      "Action": "update",
      "Application": "magento-1",
      "Tries": 0,
      "JsonData": "",
      "Payload": "NEW",
      "IntegrationUpdateDateTime": "/Date(1520009179397+0200)/"
   },
   "ResponseStatus": {
      "ErrorCode": "0"
   },
   "entityID": 144480
}


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/IntegrationUpdateUpdate HTTP/1.1 
Host: api.megaventory.com 
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

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