Megaventory API v2017a

<back to all web services

IntegrationUpdateGet

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

HTTP + SOAP11

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

POST /soap11 HTTP/1.1 
Host: api.megaventory.com 
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: IntegrationUpdateGet

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>

<IntegrationUpdateGet xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Megaventory.APIEndpoints.Operations">
  <Filters xmlns="http://schemas.datacontract.org/2004/07/Megaventory.APIEndpoints">
    <Filter>
      <AndOr>And</AndOr>
      <FieldName>String</FieldName>
      <Group>Undefined</Group>
      <SearchOperator>Undefined</SearchOperator>
      <SearchValue>String</SearchValue>
    </Filter>
  </Filters>
  <ReturnTopNRecords xmlns="http://schemas.datacontract.org/2004/07/Megaventory.APIEndpoints">0</ReturnTopNRecords>
  <APIKEY>String</APIKEY>
</IntegrationUpdateGet>

    </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>

<IntegrationUpdateGetResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Megaventory.APIEndpoints.Operations">
  <mvIntegrationUpdates xmlns:d2p1="https://api.megaventory.com/types">
    <d2p1:mvIntegrationUpdate>
      <d2p1:IntegrationUpdateID>0</d2p1:IntegrationUpdateID>
      <d2p1:Entity>String</d2p1:Entity>
      <d2p1:EntityIDs>String</d2p1:EntityIDs>
      <d2p1:Action>String</d2p1:Action>
      <d2p1:Application>String</d2p1:Application>
      <d2p1:Tries>0</d2p1:Tries>
      <d2p1:JsonData>String</d2p1:JsonData>
      <d2p1:Payload>String</d2p1:Payload>
      <d2p1:IntegrationUpdateDateTime>0001-01-01T00:00:00</d2p1:IntegrationUpdateDateTime>
    </d2p1:mvIntegrationUpdate>
  </mvIntegrationUpdates>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
      </d2p1:ResponseError>
    </d2p1:Errors>
  </ResponseStatus>
  <InternalErrorCode>String</InternalErrorCode>
</IntegrationUpdateGetResponse>

    </soap:Body>
</soap:Envelope>