> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://apidocs.megamation.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://apidocs.megamation.com/_mcp/server.

# Get INV Detail

GET https://api.megamation.com/CLIENT_ID/DATABASE_ID/INVDetail

An example of getting Inventory Detail using search criteria.

Reference: https://apidocs.megamation.com/api/inv-detail/get-inv-detail-get-inv-detail

## Authentication

- `Authorization` header (basic auth, required) — Basic authentication of the form `Basic <base64(username:password)>`.
- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Query parameters

- `CLASS` (string, optional)

## Response

### 200

OK

## Examples

**Response**

```json
{
  "_embedded": {
    "Inv Detail": [
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/*BOLT00002"
          }
        },
        "class": "BOLT",
        "description": "5/8\" X 3\" 11 PITCH HEX BOLTS",
        "part_no": "BOLT00002",
        "whs_no": ""
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00030"
          }
        },
        "class": "BOLT",
        "description": "1/4\" X 1/2\" HEX HEAD BOLTS 18 - 8 SS",
        "part_no": "BOLT00030",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00031"
          }
        },
        "class": "BOLT",
        "description": "1/4 X 1/2\" SS HEX BOLT",
        "part_no": "BOLT00031",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00032"
          }
        },
        "class": "BOLT",
        "description": "1/4\" X 3/4\" HEX HEAD BOLT 18 - 8 SS",
        "part_no": "BOLT00032",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00033"
          }
        },
        "class": "BOLT",
        "description": "1/4 X 1\" HEX HEAD BOLT SS",
        "part_no": "BOLT00033",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00034"
          }
        },
        "class": "BOLT",
        "description": "5/16 X 1/2 SS HEX HEAD BOLT",
        "part_no": "BOLT00034",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00035"
          }
        },
        "class": "BOLT",
        "description": "1/4 - 20 X 1 3/4\" SS HEX HEAD BOLTS",
        "part_no": "BOLT00035",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00036"
          }
        },
        "class": "BOLT",
        "description": "1/4 X 1 1/2\" HEX HEAD BOLT 18-8",
        "part_no": "BOLT00036",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00037"
          }
        },
        "class": "BOLT",
        "description": "1/4 X 2\" SS HEX HEAD BOLT 18-8",
        "part_no": "BOLT00037",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00038"
          }
        },
        "class": "BOLT",
        "description": "1/4 X 2 1/2\" SS HEX HEAD BOLT",
        "part_no": "BOLT00038",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00039"
          }
        },
        "class": "BOLT",
        "description": "1/4 X 1 1/4\" SS HEX HEAD BOLT",
        "part_no": "BOLT00039",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00040"
          }
        },
        "class": "BOLT",
        "description": "1/4 X 3\" SS HEX HEAD CAP SCREW",
        "part_no": "BOLT00040",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00041"
          }
        },
        "class": "BOLT",
        "description": "5/16\" X 1/2\" SS HEX HEAD BOLT 18-8",
        "part_no": "BOLT00041",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00042"
          }
        },
        "class": "BOLT",
        "description": "5/16\" X 3/4\" SS HEX HEAD BOLT 18-8",
        "part_no": "BOLT00042",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00043"
          }
        },
        "class": "BOLT",
        "description": "5/16\" X 1\" HSS HEX HEAd BOLT 18-8",
        "part_no": "BOLT00043",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00044"
          }
        },
        "class": "BOLT",
        "description": "5/16 X 1 1/4\" SS HEX HEAD BOLTS 18-8",
        "part_no": "BOLT00044",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00046"
          }
        },
        "class": "BOLT",
        "description": "5/16 S 1 3/4\" SS HEX BOLT",
        "part_no": "BOLT00046",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00047"
          }
        },
        "class": "BOLT",
        "description": "5/16 X 2\" SS HEX HEAD BOLT",
        "part_no": "BOLT00047",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00048"
          }
        },
        "class": "BOLT",
        "description": "5/16 X 2 1/2\" HEX BOLT SS",
        "part_no": "BOLT00048",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00049"
          }
        },
        "class": "BOLT",
        "description": "5/16 X 1 1/2\" HEX BOLT SS",
        "part_no": "BOLT00049",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00050"
          }
        },
        "class": "BOLT",
        "description": "3/8 X 3/4 SS HEX HEAD CAP SCREW",
        "part_no": "BOLT00050",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00051"
          }
        },
        "class": "BOLT",
        "description": "3/8 X 1\" HEX BOLT SS",
        "part_no": "BOLT00051",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00052"
          }
        },
        "class": "BOLT",
        "description": "3/8 X 1 1/4\" HEX BOLT SS",
        "part_no": "BOLT00052",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00053"
          }
        },
        "class": "BOLT",
        "description": "3/8 X 1 1/2\" SS HEX HEAD MACHINE SCREW",
        "part_no": "BOLT00053",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00054"
          }
        },
        "class": "BOLT",
        "description": "3/8 X 1 3/4\" SS HEX CAP BOLT",
        "part_no": "BOLT00054",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00055"
          }
        },
        "class": "BOLT",
        "description": "3/8 X 2\" S.S. HEX HEAD MACHINE SCREW 18-8",
        "part_no": "BOLT00055",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00056"
          }
        },
        "class": "BOLT",
        "description": "3/8 X 2 1/2\" HEX BOLT SS",
        "part_no": "BOLT00056",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00057"
          }
        },
        "class": "BOLT",
        "description": "3/8 X 3\" SS HEX HEAD MACHINE SCREW",
        "part_no": "BOLT00057",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00058"
          }
        },
        "class": "BOLT",
        "description": "3/8 X 4 1/2\" SS HEX HEAD MACHINE SCREW",
        "part_no": "BOLT00058",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00059"
          }
        },
        "class": "BOLT",
        "description": "7/16 X 1 1/4\" SS HEX HEAD BOLT 18-8",
        "part_no": "BOLT00059",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00060"
          }
        },
        "class": "BOLT",
        "description": "7/16 X 2 1/2\" SS HEX HEAD BOLT 18-8",
        "part_no": "BOLT00060",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00061"
          }
        },
        "class": "BOLT",
        "description": "1/2 X 1\" SS HEX HEAD BOLT 18-8",
        "part_no": "BOLT00061",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00062"
          }
        },
        "class": "BOLT",
        "description": "1/2 X 1 1/4 SS HEX HEAD BOLT",
        "part_no": "BOLT00062",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00063"
          }
        },
        "class": "BOLT",
        "description": "1/2\" X 1 1/2\" HEX HEAD BOLTS 18 - 8 SS",
        "part_no": "BOLT00063",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00064"
          }
        },
        "class": "BOLT",
        "description": "1/2\" X 1 3/4\" SS HEX HEAD BOLT",
        "part_no": "BOLT00064",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00065"
          }
        },
        "class": "BOLT",
        "description": "1/2\" X 2\" HEX BOLT SS",
        "part_no": "BOLT00065",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00066"
          }
        },
        "class": "BOLT",
        "description": "1/2 X 2 1/2 SS HEX HEAD BOLT",
        "part_no": "BOLT00066",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00067"
          }
        },
        "class": "BOLT",
        "description": "1/2\" X 3\" HEX BOLT SS",
        "part_no": "BOLT00067",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00068"
          }
        },
        "class": "BOLT",
        "description": "1/2\" X 3 1/2\" SS HEX HEAD BOLT",
        "part_no": "BOLT00068",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00069"
          }
        },
        "class": "BOLT",
        "description": "1/2 X 4 1/2\" HEX HEAD BOLT SS 18 8",
        "part_no": "BOLT00069",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00074"
          }
        },
        "class": "BOLT",
        "description": "5/8 X 1-1/2\" SS HEX HEAD BOLT",
        "part_no": "BOLT00074",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00075"
          }
        },
        "class": "BOLT",
        "description": "5/8 X 2\" SS HEX HEAD BOLT",
        "part_no": "BOLT00075",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00076"
          }
        },
        "class": "BOLT",
        "description": "5/8 X 2 1/2 SS HEX BOLT",
        "part_no": "BOLT00076",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00077"
          }
        },
        "class": "BOLT",
        "description": "5/8 X 3 1/2 SS HEX HEAD BOLT",
        "part_no": "BOLT00077",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00078"
          }
        },
        "class": "BOLT",
        "description": "5/8 X 4\" HEX BOLT SS",
        "part_no": "BOLT00078",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00079"
          }
        },
        "class": "BOLT",
        "description": "5/16 X 3 1/2\" SS HE HEAD BOLT",
        "part_no": "BOLT00079",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00106"
          }
        },
        "class": "BOLT",
        "description": "3/8 X 5-1/2 CARRIAGE BOLTS SS",
        "part_no": "BOLT00106",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00109"
          }
        },
        "class": "BOLT",
        "description": "7/16-14 X 3\" SS HEX HEAD BOLT 18-8",
        "part_no": "BOLT00109",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00120"
          }
        },
        "class": "BOLT",
        "description": "STUD BOLT ANCHOR COLLAR TYPE(RAWLSTUD)",
        "part_no": "BOLT00120",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT00121"
          }
        },
        "class": "BOLT",
        "description": "RAWLSTUD 1/2\" x 2-3/4\"",
        "part_no": "BOLT00121",
        "whs_no": "MT"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/mpcdev/dl/INVDetail/MT*BOLT99"
          }
        },
        "class": "BOLT",
        "description": "New Inventory for testing",
        "part_no": "BOLT99",
        "whs_no": "MT"
      }
    ]
  },
  "_links": {
    "apiEntryPoint": {
      "href": "https://api.megamation.com/mpcdev/dl"
    },
    "self": {
      "href": "https://api.megamation.com/mpcdev/dl/INVDetail?CLASS=BOLT"
    }
  },
  "cursor": "",
  "has_more": "False",
  "next_page": ""
}
```

**SDK Code**

```python
import requests

url = "https://api.megamation.com/CLIENT_ID/DATABASE_ID/INVDetail"

querystring = {"CLASS":"BOLT"}

response = requests.get(url, params=querystring, auth=("<username>", "<password>"))

print(response.json())
```

```javascript
const url = 'https://api.megamation.com/CLIENT_ID/DATABASE_ID/INVDetail?CLASS=BOLT';
const credentials = btoa("<username>:<password>");

const options = {method: 'GET', headers: {Authorization: `Basic ${credentials}`}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.megamation.com/CLIENT_ID/DATABASE_ID/INVDetail?CLASS=BOLT"

	req, _ := http.NewRequest("GET", url, nil)

	req.SetBasicAuth("<username>", "<password>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.megamation.com/CLIENT_ID/DATABASE_ID/INVDetail?CLASS=BOLT")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request.basic_auth("<username>", "<password>")

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.megamation.com/CLIENT_ID/DATABASE_ID/INVDetail?CLASS=BOLT")
  .basicAuth("<username>", "<password>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.megamation.com/CLIENT_ID/DATABASE_ID/INVDetail?CLASS=BOLT', [
  'headers' => [
  ],
    'auth' => ['<username>', '<password>'],
]);

echo $response->getBody();
```

```csharp
using RestSharp;
using RestSharp.Authenticators;

var client = new RestClient("https://api.megamation.com/CLIENT_ID/DATABASE_ID/INVDetail?CLASS=BOLT");
client.Authenticator = new HttpBasicAuthenticator("<username>", "<password>");
var request = new RestRequest(Method.GET);

IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let credentials = Data("<username>:<password>".utf8).base64EncodedString()

let headers = ["Authorization": "Basic \(credentials)"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.megamation.com/CLIENT_ID/DATABASE_ID/INVDetail?CLASS=BOLT")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```