curl --request POST \
--url https://api.example.com/v1/inventory/get-by-serial \
--header 'Content-Type: application/json' \
--data '
{
"serial_number": "<string>"
}
'import requests
url = "https://api.example.com/v1/inventory/get-by-serial"
payload = { "serial_number": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({serial_number: '<string>'})
};
fetch('https://api.example.com/v1/inventory/get-by-serial', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/inventory/get-by-serial",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'serial_number' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/inventory/get-by-serial"
payload := strings.NewReader("{\n \"serial_number\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/v1/inventory/get-by-serial")
.header("Content-Type", "application/json")
.body("{\n \"serial_number\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/inventory/get-by-serial")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"serial_number\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"item": {
"id": "<string>",
"contact_id": "<string>",
"account_id": "<string>",
"product_code": "<string>",
"is_competitor_product": true,
"created_date": "2023-11-07T05:31:56Z",
"created_by_id": "<string>",
"last_modified_date": "2023-11-07T05:31:56Z",
"last_modified_by_id": "<string>",
"name": "<string>",
"serial_number": "<string>",
"install_date": "2023-11-07T05:31:56Z",
"purchase_date": "2023-11-07T05:31:56Z",
"usage_end_date": "2023-11-07T05:31:56Z",
"lifecycle_start_date": "2023-11-07T05:31:56Z",
"lifecycle_end_date": "2023-11-07T05:31:56Z",
"status": "<string>",
"price": 123,
"quantity": "<string>",
"description": "<string>",
"owner_id": "<string>"
}
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}Get Inventory Item By Serial
curl --request POST \
--url https://api.example.com/v1/inventory/get-by-serial \
--header 'Content-Type: application/json' \
--data '
{
"serial_number": "<string>"
}
'import requests
url = "https://api.example.com/v1/inventory/get-by-serial"
payload = { "serial_number": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({serial_number: '<string>'})
};
fetch('https://api.example.com/v1/inventory/get-by-serial', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/inventory/get-by-serial",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'serial_number' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/inventory/get-by-serial"
payload := strings.NewReader("{\n \"serial_number\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/v1/inventory/get-by-serial")
.header("Content-Type", "application/json")
.body("{\n \"serial_number\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/inventory/get-by-serial")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"serial_number\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"item": {
"id": "<string>",
"contact_id": "<string>",
"account_id": "<string>",
"product_code": "<string>",
"is_competitor_product": true,
"created_date": "2023-11-07T05:31:56Z",
"created_by_id": "<string>",
"last_modified_date": "2023-11-07T05:31:56Z",
"last_modified_by_id": "<string>",
"name": "<string>",
"serial_number": "<string>",
"install_date": "2023-11-07T05:31:56Z",
"purchase_date": "2023-11-07T05:31:56Z",
"usage_end_date": "2023-11-07T05:31:56Z",
"lifecycle_start_date": "2023-11-07T05:31:56Z",
"lifecycle_end_date": "2023-11-07T05:31:56Z",
"status": "<string>",
"price": 123,
"quantity": "<string>",
"description": "<string>",
"owner_id": "<string>"
}
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}Body
Serial number to resolve to an inventory item.
Response
OK
Hide child attributes
Hide child attributes
Unique id of the inventory record in the CRM.
Related contact id when linked.
Related account id when linked.
Manufacturer or internal product code.
True if the item is a competitor product.
When the record was created in the source system.
User id who created the record.
When the record was last modified.
User id who last modified the record.
Human-readable product or asset name.
Serial number used for lookup and identification.
When the item was installed at the customer.
When the item was purchased.
When usage, warranty, or entitlement ends.
Start of the supported lifecycle window.
End of the supported lifecycle window.
Status label from the CRM (e.g. active, retired).
Unit or list price when present.
Quantity on hand or under contract.
Long-form description or notes.
Owning user or team id in the CRM.

