<h2>Product Inventory Open API - GET /sn_prd_invt/productinventory/{inventoryId}</h2><br/><div style="overflow-x:auto"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta content="text/html; charset=UTF-8" /><meta name="copyright" content="(C) Copyright 2025" /><meta name="DC.rights.owner" content="(C) Copyright 2025" /><meta name="generator" content="DITA-OT" /><meta name="DC.type" content="concept" /><meta name="DC.title" content="Product Inventory Open API" /><meta name="abstract" content="The Product Inventory Open API provides endpoints to create and retrieve product inventories." /><meta name="description" content="The Product Inventory Open API provides endpoints to create and retrieve product inventories." /><meta name="DC.relation" scheme="URI" content="../../../build/applications/concept/api-rest.html" /><meta name="DC.relation" scheme="URI" content="../../../build/applications/concept/api-implementation-reference.html" /><meta name="DC.relation" scheme="URI" content="../../../build/applications/concept/api-reference.html" /><meta name="DC.creator" content="ServiceNow" /><meta name="DC.date.created" content="2023-08-03" /><meta name="DC.date.modified" content="2024-02-01" /><meta name="page-type" content="platform" /><meta name="DC.format" content="XHTML" /><meta name="DC.identifier" content="product-inventory-open-api" /><link rel="stylesheet" type="text/css" href="../../../CSS/commonltr.css" /><title>Product Inventory Open API</title></head><body> <div class="nested0" id="product-inventory-open-api"> <h1 class="title topictitle1" id="ariaid-title1">Product Inventory Open API</h1> <div class="body conbody"><p class="shortdesc">The <span class="keyword apiname">Product Inventory Open</span> API provides endpoints to create and retrieve product inventories.</p> <div class="section rest_api_concept_intro" id="product-inventory-open-api__section_wd3_cgj_hsb"> <p class="p">Use this API to manage product inventory information between external systems and the <span class="ph">ServiceNow AI Platform</span>.</p> <p class="p">This API is included in the Product Inventory Advanced application, which is available on the <span class="ph">ServiceNow Store</span>.</p> <p class="p">This API is provided within the <code class="ph codeph">sn_prd_invt</code> namespace.</p> <p class="p">The calling user must have the sn_prd_invt.product_inventory_integrator role.</p> <div class="p">This API creates and updates data in the following tables.<ul class="ul" id="product-inventory-open-api__ul_fhn_pjj_hsb"><li class="li">Product Characteristics [sn_prd_invt_product_characteristics]</li><li class="li">Product Inventory [sn_prd_invt_product_inventory]</li><li class="li">Product Model [cmdb_model]</li><li class="li">Product Model Characteristic [sn_prd_pm_product_model_characteristic]</li></ul> </div> <p class="p">The <span class="keyword apiname">Product Inventory Open</span> API is a <span class="ph">ServiceNow®</span> implementation of the TM Forum Product Inventory Management API REST specification. This implementation is based on the <a class="xref" href="https://www.tmforum.org/resources/standard/tmf637-product-inventory-management-api-rest-specification-r19-0-0/" target="_blank" rel="noopener noreferrer">TMF637 Product Inventory Management API REST Specification Release 19</a>, August 2019. The <span class="keyword apiname">Product Inventory Open</span> API is conformance certified by TM Forum.</p> <p class="p"><img class="image" id="product-inventory-open-api__image_x4q_ydm_qtb" src="../image/tmf-conformance.png" alt="TMF conformance logo" /></p> </div> </div> <div class="related-links"> <div class="familylinks"> <div class="parentlink"><strong>Parent Topic:</strong> <a class="link" href="../../../build/applications/concept/api-rest.html" title="Use REST interfaces to access data on your instance.">REST API reference</a></div> </div> </div><div class="topic reference nested1 rest_api_endpoint" id="tmf_prod_inv-GET-product"> <h2 class="title topictitle2" id="ariaid-title2">Product Inventory Open API - GET /sn_prd_invt/product</h2> <div class="body refbody"><p class="shortdesc">Retrieves a list of all product inventories.</p> <div class="section"><h3 class="title sectiontitle">URL format</h3> <p class="p rest_api_default_url">Default URL: <span class="ph filepath">api/sn_prd_invt/product</span></p> </div> <div class="section"><h3 class="title sectiontitle">Supported request parameters</h3> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-product__table_ofr_vgy_fsb" class="table rest_api_path_parameters" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 1. </span>Path parameters</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e217">Name</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e220">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e217 ">None</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e220 "> </td></tr></tbody></table> </div> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-product__table_pfr_vgy_fsb" class="table rest_api_query_parameters" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 2. </span>Query parameters</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e253">Name</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e256">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e253 ">customer</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e256 ">Filter product inventories by customer. Only product offerings with a customer sys_id or external ID matching the value of this parameter are returned in the response.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e253 ">fields</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e256 ">List of fields to return in the response. Invalid fields are ignored. If this parameter is not used, all fields are returned. <p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e253 ">limit</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e256 ">Maximum number of records to return. For requests that exceed this number of records, use the <span class="keyword parmname">offset</span> parameter to paginate record retrieval. <p class="p">Default: 20</p> <p class="p">Maximum: 100</p> <p class="p">Data type: Number</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e253 ">offset</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e256 ">Starting index at which to begin retrieving records. Use this value to paginate record retrieval. This functionality enables the retrieval of all records, regardless of the number of records, in small manageable chunks.<p class="p">Default: 0</p> <p class="p">Data type: Number</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e253 ">place</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e256 ">Filter product inventories by place. Only product offerings with a place sys_id or external id matching the value of this parameter are returned in the response.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e253 ">status</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e256 ">Filter product inventories by status. Only product inventories with a status matching the value of this parameter are returned in the response.<p class="p">Data type: String</p> </td></tr></tbody></table> </div> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-product__table_gld_vkz_gsb" class="table rest_api_request_body" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 3. </span>Request body parameters (JSON)</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e373">Name</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e376">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e373 ">None</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e376 "> </td></tr></tbody></table> </div> </div> <div class="section rest_api_headers"><h3 class="title sectiontitle">Headers</h3> <p class="p">The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see <a class="xref" href="c_RESTAPI.html" title="REST (REpresentational State Transfer) is a simple stateless architecture that provides standards between computer systems on the web, making it easier for them to communicate with each other.">Supported REST API headers</a>.</p> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-product__table_kqy_wgy_fsb" class="table rest_api_request_headers" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 4. </span>Request headers</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e425">Header</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e428">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e425 ">None</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e428 "> </td></tr></tbody></table> </div> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-product__table_idy_qgm_lsb" class="table rest_api_response_headers" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 5. </span>Response headers</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry row-nocellborder" style="vertical-align:top;" id="d785544e461">Header</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e464">Description</th></tr></thead><tbody class="tbody"><tr id="tmf_prod_inv-GET-product__content-range-row" class="row"><td class="entry row-nocellborder" style="vertical-align:top;" headers="d785544e461 ">Content-Range</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e464 ">Specifies the range of content returned in a paginated call. <p class="p">For example, if <code class="ph codeph">offset=2</code> and <code class="ph codeph">limit=3</code>, the value of the <span class="keyword parmname">Content-Range</span> header is <code class="ph codeph">items 3-5</code>.</p> </td></tr><tr id="tmf_prod_inv-GET-product__content-type-row" class="row"><td class="entry row-nocellborder" style="vertical-align:top;" headers="d785544e461 ">Content-Type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e464 ">Data format of the response body. Only supports <span class="keyword parmname">application/json</span>.</td></tr><tr id="tmf_prod_inv-GET-product__links-pagination-row" class="row"><td class="entry row-nocellborder" style="vertical-align:top;" headers="d785544e461 ">Link</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e464 ">Contains the following links to navigate through query results.<ul class="ul" id="tmf_prod_inv-GET-product__ul_zzk_sdm_lsb"><li class="li">first</li><li class="li">last</li><li class="li">next</li><li class="li">previous</li></ul> </td></tr><tr id="tmf_prod_inv-GET-product__x-total-count-row" class="row"><td class="entry row-nocellborder" id="tmf_prod_inv-GET-product__x-total-count" style="vertical-align:top;" headers="d785544e461 ">X-Total-Count</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e464 "><span class="ph" id="tmf_prod_inv-GET-product__x-total-count-descr">For paginated queries, this header specifies the total number of records available on the server.</span></td></tr></tbody></table> </div> </div> <div class="section rest_api_status_codes"><h3 class="title sectiontitle">Status codes</h3> <p class="p">The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see <a class="xref" href="c_RESTAPI.html" title="REST (REpresentational State Transfer) is a simple stateless architecture that provides standards between computer systems on the web, making it easier for them to communicate with each other.">REST API HTTP response codes</a>.</p> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-product__table_hl1_rcm_lsb" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 6. </span>Status codes</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e573">Status code</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e576">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e573 ">200</td><td class="entry cellrowborder" id="tmf_prod_inv-GET-product__tmf-get-status-200-entry" style="vertical-align:top;" headers="d785544e576 "><span class="ph" id="tmf_prod_inv-GET-product__tmf-get-status-200-p">Request successfully processed. Full resource returned in response (no pagination).</span></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e573 ">206</td><td class="entry cellrowborder" id="tmf_prod_inv-GET-product__tmf-get-status-206-entry" style="vertical-align:top;" headers="d785544e576 ">Partial resource returned in response (with pagination).</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e573 ">400</td><td class="entry cellrowborder" id="tmf_prod_inv-GET-product__tmf-get-status-400-entry" style="vertical-align:top;" headers="d785544e576 "><div class="p">Bad request. Possible reasons: <ul class="ul" id="tmf_prod_inv-GET-product__ul_rys_1gy_fsb"><li class="li">Invalid path parameter</li><li class="li">Invalid URI</li></ul> </div> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e573 ">404</td><td class="entry cellrowborder" id="tmf_prod_inv-GET-product__tmf-get-status-404-entry" style="vertical-align:top;" headers="d785544e576 ">Record not found. No records matching the query parameters are found in the table.</td></tr></tbody></table> </div> </div> <div class="section rest-api-response-body" id="tmf_prod_inv-GET-product__section_rhr_nvy_3sb"><h3 class="title sectiontitle">Response body parameters (JSON)</h3> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-product__table_shr_nvy_3sb" class="table" frame="border" border="1" rules="all"><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e650">Name</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e653">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">href</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">Relative link to the product inventory record.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">Sys_id of the product inventory from the Product Inventory [sn_prd_invt_product_inventory] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">Name of the product inventory.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">place</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">Place associated with the product.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">productCharacteristic</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">List of product characteristics.<p class="p">Data type: Array</p> <pre class="pre codeblock"><code>"productCharacteristic": [ { "name": "String", "value": "String" } ]</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">productCharacteristic.name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">Name of the characteristic.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">productCharacteristic.value</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">Value of the characteristic.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">productOffering</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">Product offering that the product inventory is associated with.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"productOffering": { "id": "String", "internalId": "String", "internalVersion": "String", "name": "String", "version": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">productOffering.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">Initial_version or external_id of the product offering. Located in the Product Offering [sn_prd_pm_product_offering] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">productOffering.internalId</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">Initial_version of the product offering. Located in the Product Offering [sn_prd_pm_product_offering] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">productOffering.internalVersion</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">Version of the product offering. Located in the Product Offering [sn_prd_pm_product_offering] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">productOffering.name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">Name of the product offering. Located in the Product Offering [sn_prd_pm_product_offering] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">productOffering.version</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">External_version of the product offering. Located in the Product Offering [sn_prd_pm_product_offering] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">productPrice</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">Returns an empty array.<p class="p">Data type: Array</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">productRelationship</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">List of related products.<p class="p">Data type: Array</p> <pre class="pre codeblock"><code>"productRelationship": [ { "productId": "String", "relationshipType": "String" } ]</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">productRelationship.productId</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">Sys_id of the related product from the Product Inventory [sn_prd_invt_product_inventory] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">productRelationship.relationshipType</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">Type of relationship.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">productSpecification</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">Product specification for the product.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"productSpecification": { "id": "String", "internalId": "String", "internalVersion": "String", "version": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">productSpecification.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">Initial_version or external_id of the product specification. Located in the Product Specification [sn_prd_pm_product_specification] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">productSpecification.internalId</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">Initial_version of the product specification. Located in the Product Specification [sn_prd_pm_product_specification] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">productSpecification.internalVersion</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">Version of the product specification. Located in the Product Specification [sn_prd_pm_product_specification] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">productSpecification.version</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">External_version of the product specification. Located in the Product Specification [sn_prd_pm_product_specification] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">realizingResource</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">Resource that realizes the product. The realizing resource is a child product inventory of this product inventory.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"realizingResource": { "id": "String", "type": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">realizingResource.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 "><span class="ph" id="tmf_prod_inv-GET-product__realRes-id-entry">Sys_id of the realizing resource. Located in the Product Inventory [sn_prd_invt_product_inventory] table.</span> <p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">realizingResource.type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">Type of the realizing resource.<p class="p">Valid value: child</p> <p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">realizingService</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">Service that realizes the product. The realizing service is a child product inventory of this product inventory.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"realizingService": { "id": "String", "type": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">realizingService.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 "><span class="ph" id="tmf_prod_inv-GET-product__realServ-id-entry">Sys_id of the realizing service. Located in the Product Inventory [sn_prd_invt_product_inventory] table.</span> <p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">realizingService.type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">Type of the realizing service.<p class="p">Valid value: child</p> <p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">relatedParty</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">List of parties associated with the ticket.<p class="p">Data type: Array</p> <pre class="pre codeblock"><code>"relatedParty": [ { "id": "String", "@referredType": "String" } ]</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">relatedParty.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">Sys_id of the account or customer contact associated with the ticket. Located in the Account [customer_account], Contact [customer_contact], or Consumer [csm_consumer] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">relatedParty.@referredType</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">Type of customer.<div class="p">Possible values:<ul class="ul" id="tmf_prod_inv-GET-product__ul_jqs_vbh_fwb"><li class="li">Customer</li><li class="li">CustomerContact</li><li class="li">Consumer</li></ul> </div> <p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e650 ">state</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e653 ">Current state of the product.<p class="p">Data type: String</p> </td></tr></tbody></table> </div> </div> <div class="example rest_api_curl_example" id="tmf_prod_inv-GET-product__example_ld5_lnz_3sb"><h3 class="title sectiontitle">cURL request</h3> <p class="p">This example retrieves all product inventories.</p> <pre lang="curl" class="pre codeblock"><code>curl --location --request GET "https://instance.service-now.com/api/sn_prd_invt/product" \ --user 'username':'password'</code></pre> <p class="p">Response body.</p> <pre lang="json" class="pre codeblock"><code>[ { "id": "037fd87ec3603010abc8b5183c40ddf2", "relatedParty": [ { "id": "ffc68911c35420105252716b7d40dd55", "name": "Example Company", "@type": "RelatedParty", "@referredType": "Customer" }, { "id": "eaf68911c35420105252716b7d40ddde", "name": "Sally Thomas", "@type": "RelatedParty", "@referredType": "CustomerContact" } ], "name": "Routing and Configuration PI0000318", "productSpecification": { "id": "aec57e981bb420106ba59acf034bcb08", "name": "Routing and Configuration", "version": "", "internalVersion": "1", "internalId": "aec57e981bb420106ba59acf034bcb08" }, "status": "Active", "productOffering": { "id": "69017a0f536520103b6bddeeff7b127d", "name": "Premium SD-WAN Offering", "version": "", "internalVersion": "1", "internalId": "69017a0f536520103b6bddeeff7b127d" }, "product": "ce0b52c7532520103b6bddeeff7b12f5", "place": { "id": "25ab9c4d0a0a0bb300f7dabdc0ca7c1c", "name": "100 South Charles Street, Baltimore,MD" }, "productCharacteristic": [], "productRelationship": [], "realizingService": [], "realizingResource": [ { "id": "9b2fa60b536520103b6bddeeff7b1233", "name": "Route Target" } ], "productPrice": [], "href": "/api/sn_prd_invt/product/037fd87ec3603010abc8b5183c40ddf2", "billingAccount": "Not Specified." } ]</code></pre> </div> </div> </div> <div class="topic reference nested1 rest_api_endpoint" id="tmf_prod_inv-GET-product-id"> <h2 class="title topictitle2" id="ariaid-title3">Product Inventory Open API - GET /sn_prd_invt/product/{id}</h2> <div class="body refbody"><p class="shortdesc">Retrieves a specified product inventory record.</p> <div class="section"><h3 class="title sectiontitle">URL format</h3> <p class="p rest_api_default_url">Default URL: <span class="ph filepath">/api/sn_prd_invt/product/{id}</span></p> </div> <div class="section" id="tmf_prod_inv-GET-product-id__section_esr_w5y_3sb"><h3 class="title sectiontitle">Supported request parameters</h3> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-product-id__table_apt_nkz_gsb" class="table rest_api_path_parameters" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 7. </span>Path parameters</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e1155">Name</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e1158">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1155 ">id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1158 ">Sys_id of the product inventory to retrieve. Located in the Product Inventory [sn_prd_invt_product_inventory] table.<p class="p">Data type: String</p> </td></tr></tbody></table> </div> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-product-id__table_pfr_vgy_fsb" class="table rest_api_query_parameters" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 8. </span>Query parameters</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e1194">Name</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e1197">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1194 ">customer</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1197 ">Filter product inventories by customer. Only product offerings with a customer sys_id or external id matching the value of this parameter are returned in the response.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1194 ">fields</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1197 ">List of fields to return in the response. Invalid fields are ignored. If this parameter is not used, all fields are returned. <p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1194 ">place</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1197 ">Filter product inventories by place. Only product offerings with a place sys_id or external id matching the value of this parameter are returned in the response.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1194 ">status</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1197 ">Filter product inventories by status. Only product inventories with a status matching the value of this parameter are returned in the response.<p class="p">Data type: String</p> </td></tr></tbody></table> </div> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-product-id__table_gld_vkz_gsb" class="table rest_api_request_body" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 9. </span>Request body parameters (JSON)</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e1270">Name</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e1273">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1270 ">None</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1273 "> </td></tr></tbody></table> </div> </div> <div class="section rest_api_headers"><h3 class="title sectiontitle">Headers</h3> <p class="p">The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see <a class="xref" href="c_RESTAPI.html" title="REST (REpresentational State Transfer) is a simple stateless architecture that provides standards between computer systems on the web, making it easier for them to communicate with each other.">Supported REST API headers</a>.</p> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-product-id__table_kqy_wgy_fsb" class="table rest_api_request_headers" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 10. </span>Request headers</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e1322">Header</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e1325">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1322 ">None</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1325 "> </td></tr></tbody></table> </div> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-product-id__table_tzy_thy_ksb" class="table rest_api_response_headers" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 11. </span>Response headers</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry row-nocellborder" style="vertical-align:top;" id="d785544e1358">Header</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e1361">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry row-nocellborder" style="vertical-align:top;" headers="d785544e1358 ">Content-Type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1361 ">Data format of the response body. Only supports <span class="keyword parmname">application/json</span>.</td></tr></tbody></table> </div> </div> <div class="section rest_api_status_codes"><h3 class="title sectiontitle">Status codes</h3> <p class="p">The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see <a class="xref" href="c_RESTAPI.html" title="REST (REpresentational State Transfer) is a simple stateless architecture that provides standards between computer systems on the web, making it easier for them to communicate with each other.">REST API HTTP response codes</a>.</p> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-product-id__table_nxj_ykz_gsb" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 12. </span>Status codes</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e1414">Status code</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e1417">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1414 ">200</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1417 ">Request successfully processed.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1414 ">400</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1417 "><div class="p">Bad Request. Could be any of the following reasons: <ul class="ul" id="tmf_prod_inv-GET-product-id__ul_rys_1gy_fsb"><li class="li">Invalid path parameter</li><li class="li">Invalid URI</li></ul> </div> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1414 ">404</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1417 ">Record not found. Record associated with the ID is not found in the table.</td></tr></tbody></table> </div> </div> <div class="section rest-api-response-body" id="tmf_prod_inv-GET-product-id__section_rhr_nvy_3sb"><h3 class="title sectiontitle">Response body parameters (JSON)</h3> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-product-id__table_shr_nvy_3sb" class="table" frame="border" border="1" rules="all"><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e1488">Name</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e1491">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">href</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">Relative link to the product inventory record.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">Sys_id of the product inventory from the Product Inventory [sn_prd_invt_product_inventory] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">Name of the product inventory.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">place</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">Place associated with the product.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">productCharacteristic</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">List of product characteristics.<p class="p">Data type: Array</p> <pre class="pre codeblock"><code>"productCharacteristic": [ { "name": "String", "value": "String" } ]</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">productCharacteristic.name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">Name of the characteristic.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">productCharacteristic.value</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">Value of the characteristic.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">productOffering</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">Product offering that the product inventory is associated with.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"productOffering": { "id": "String", "internalId": "String", "internalVersion": "String", "name": "String", "version": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">productOffering.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">Initial_version or external_id of the product offering. Located in the Product Offering [sn_prd_pm_product_offering] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">productOffering.internalId</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">Initial_version of the product offering. Located in the Product Offering [sn_prd_pm_product_offering] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">productOffering.internalVersion</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">Version of the product offering. Located in the Product Offering [sn_prd_pm_product_offering] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">productOffering.name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">Name of the product offering. Located in the Product Offering [sn_prd_pm_product_offering] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">productOffering.version</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">External_version of the product offering. Located in the Product Offering [sn_prd_pm_product_offering] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">productPrice</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">Returns an empty array.<p class="p">Data type: Array</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">productRelationship</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">List of related products.<p class="p">Data type: Array</p> <pre class="pre codeblock"><code>"productRelationship": [ { "productId": "String", "relationshipType": "String" } ]</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">productRelationship.productId</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">Sys_id of the related product from the Product Inventory [sn_prd_invt_product_inventory] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">productRelationship.relationshipType</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">Type of relationship.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">productSpecification</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">Product specification for the product.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"productSpecification": { "id": "String", "internalId": "String", "internalVersion": "String", "version": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">productSpecification.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">Initial_version or external_id of the product specification. Located in the Product Specification [sn_prd_pm_product_specification] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">productSpecification.internalId</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">Initial_version of the product specification. Located in the Product Specification [sn_prd_pm_product_specification] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">productSpecification.internalVersion</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">Version of the product specification. Located in the Product Specification [sn_prd_pm_product_specification] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">productSpecification.version</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">External_version of the product specification. Located in the Product Specification [sn_prd_pm_product_specification] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">realizingResource</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">Resource that realizes the product. The realizing resource is a child product inventory of this product inventory.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"realizingResource": { "id": "String", "type": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">realizingResource.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 "><span class="ph" id="tmf_prod_inv-GET-product-id__realRes-id-entry">Sys_id of the realizing resource. Located in the Product Inventory [sn_prd_invt_product_inventory] table.</span> <p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">realizingResource.type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">Type of the realizing resource.<p class="p">Valid value: child</p> <p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">realizingService</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">Service that realizes the product. The realizing service is a child product inventory of this product inventory.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"realizingService": { "id": "String", "type": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">realizingService.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 "><span class="ph" id="tmf_prod_inv-GET-product-id__realServ-id-entry">Sys_id of the realizing service. Located in the Product Inventory [sn_prd_invt_product_inventory] table.</span> <p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">realizingService.type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">Type of the realizing service.<p class="p">Valid value: child</p> <p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">relatedParty</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">List of parties associated with the ticket.<p class="p">Data type: Array</p> <pre class="pre codeblock"><code>"relatedParty": [ { "id": "String", "@referredType": "String" } ]</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">relatedParty.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">Sys_id of the account or customer contact associated with the ticket. Located in the Account [customer_account], Contact [customer_contact], or Consumer [csm_consumer] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">relatedParty.@referredType</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">Type of customer.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1488 ">state</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e1491 ">Current state of the product.<p class="p">Data type: String</p> </td></tr></tbody></table> </div> </div> <div class="example rest_api_curl_example"><h3 class="title sectiontitle">cURL request</h3> <p class="p">This example retrieves a specified product inventory.</p> <pre lang="curl" class="pre codeblock"><code>curl -X GET 'https://instance.service-now.com/api/sn_prd_invt/product/037fd87ec3603010abc8b5183c40ddf2' \ --user 'username':'password'</code></pre> <p class="p">Output:</p> <pre lang="json" class="pre codeblock"><code>{ "id": "037fd87ec3603010abc8b5183c40ddf2", "relatedParty": [ { "id": "ffc68911c35420105252716b7d40dd55", "name": "Example Company", "@type": "RelatedParty", "@referredType": "Customer" }, { "id": "eaf68911c35420105252716b7d40ddde", "name": "Sally Thomas", "@type": "RelatedParty", "@referredType": "CustomerContact" } ], "name": "Routing and Configuration PI0000318", "productSpecification": { "id": "aec57e981bb420106ba59acf034bcb08", "name": "Routing and Configuration", "version": "", "internalVersion": "1", "internalId": "aec57e981bb420106ba59acf034bcb08" }, "status": "Active", "productOffering": { "id": "69017a0f536520103b6bddeeff7b127d", "name": "Premium SD-WAN Offering", "version": "", "internalVersion": "1", "internalId": "69017a0f536520103b6bddeeff7b127d" }, "product": "ce0b52c7532520103b6bddeeff7b12f5", "place": { "id": "25ab9c4d0a0a0bb300f7dabdc0ca7c1c", "name": "100 South Charles Street, Baltimore,MD" }, "productCharacteristic": [], "productRelationship": [], "realizingService": [], "realizingResource": [ { "id": "9b2fa60b536520103b6bddeeff7b1233", "name": "Route Target" } ], "productPrice": [], "href": "/api/sn_prd_invt/product/037fd87ec3603010abc8b5183c40ddf2", "billingAccount": "Not Specified." }</code></pre> </div> </div> </div> <div class="topic reference nested1 rest_api_endpoint" id="tmf_prod_inv-GET-prodinv"> <h2 class="title topictitle2" id="ariaid-title4">Product Inventory Open API - GET /sn_prd_invt/productinventory</h2> <div class="body refbody"><p class="shortdesc">Retrieves a list of all product inventories.</p> <div class="section" id="tmf_prod_inv-GET-prodinv__section_owd_kzk_stb"> <div class="p"><div class="note important"><span class="importanttitle">Important:</span> Starting with the <span class="ph">Tokyo</span> release, this endpoint is deprecated. The new version of this endpoint is <a class="xref" href="product-inventory-open-api.html#tmf_prod_inv-GET-product" title="Retrieves a list of all product inventories.">Product Inventory Open API - GET /sn_prd_invt/product</a>.</div> </div> </div> <div class="section"><h3 class="title sectiontitle">URL format</h3> <p class="p rest_api_default_url">Default URL: <span class="ph filepath">api/sn_prd_invt/productinventory</span></p> </div> <div class="section"><h3 class="title sectiontitle">Supported request parameters</h3> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-prodinv__table_ofr_vgy_fsb" class="table rest_api_path_parameters" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 13. </span>Path parameters</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e2011">Name</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e2014">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2011 ">None</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2014 "> </td></tr></tbody></table> </div> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-prodinv__table_pfr_vgy_fsb" class="table rest_api_query_parameters" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 14. </span>Query parameters</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e2047">Name</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e2050">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2047 ">customer</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2050 ">Filter product inventories by customer. Only product offerings with a customer sys_id or external id matching the value of this parameter are returned in the response.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2047 ">fields</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2050 ">List of fields to return in the response. Invalid fields are ignored. If this parameter is not used, all fields are returned. <p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2047 ">limit</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2050 ">Maximum number of records to return. For requests that exceed this number of records, use the <span class="keyword parmname">offset</span> parameter to paginate record retrieval. <p class="p">Default: 20</p> <p class="p">Maximum: 100</p> <p class="p">Data type: Number</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2047 ">offset</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2050 ">Starting index at which to begin retrieving records. Use this value to paginate record retrieval. This functionality enables the retrieval of all records, regardless of the number of records, in small manageable chunks.<p class="p">Default: 0</p> <p class="p">Data type: Number</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2047 ">place</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2050 ">Filter product inventories by place. Only product offerings with a place sys_id or external id matching the value of this parameter are returned in the response.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2047 ">status</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2050 ">Filter product inventories by status. Only product inventories with a status matching the value of this parameter are returned in the response.<p class="p">Data type: String</p> </td></tr></tbody></table> </div> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-prodinv__table_gld_vkz_gsb" class="table rest_api_request_body" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 15. </span>Request body parameters (JSON)</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e2151">Name</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e2154">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2151 ">None</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2154 "> </td></tr></tbody></table> </div> </div> <div class="section rest_api_headers"><h3 class="title sectiontitle">Headers</h3> <p class="p">The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see <a class="xref" href="c_RESTAPI.html" title="REST (REpresentational State Transfer) is a simple stateless architecture that provides standards between computer systems on the web, making it easier for them to communicate with each other.">Supported REST API headers</a>.</p> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-prodinv__table_kqy_wgy_fsb" class="table rest_api_request_headers" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 16. </span>Request headers</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e2203">Header</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e2206">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2203 ">None</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2206 "> </td></tr></tbody></table> </div> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-prodinv__table_idy_qgm_lsb" class="table rest_api_response_headers" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 17. </span>Response headers</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry row-nocellborder" style="vertical-align:top;" id="d785544e2239">Header</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e2242">Description</th></tr></thead><tbody class="tbody"><tr id="tmf_prod_inv-GET-prodinv__content-range-row" class="row"><td class="entry row-nocellborder" style="vertical-align:top;" headers="d785544e2239 ">Content-Range</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2242 ">Specifies the range of content returned in a paginated call. <p class="p">For example, if <code class="ph codeph">offset=2</code> and <code class="ph codeph">limit=3</code>, the value of the <span class="keyword parmname">Content-Range</span> header is <code class="ph codeph">items 3-5</code>.</p> </td></tr><tr id="tmf_prod_inv-GET-prodinv__content-type-row" class="row"><td class="entry row-nocellborder" style="vertical-align:top;" headers="d785544e2239 ">Content-Type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2242 ">Data format of the response body. Only supports <span class="keyword parmname">application/json</span>.</td></tr><tr id="tmf_prod_inv-GET-prodinv__links-pagination-row" class="row"><td class="entry row-nocellborder" style="vertical-align:top;" headers="d785544e2239 ">Link</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2242 ">Contains the following links to navigate through query results.<ul class="ul" id="tmf_prod_inv-GET-prodinv__ul_zzk_sdm_lsb"><li class="li">first</li><li class="li">last</li><li class="li">next</li><li class="li">previous</li></ul> </td></tr><tr id="tmf_prod_inv-GET-prodinv__x-total-count-row" class="row"><td class="entry row-nocellborder" id="tmf_prod_inv-GET-prodinv__x-total-count" style="vertical-align:top;" headers="d785544e2239 ">X-Total-Count</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2242 "><span class="ph" id="tmf_prod_inv-GET-prodinv__x-total-count-descr">For paginated queries, this header specifies the total number of records available on the server.</span></td></tr></tbody></table> </div> </div> <div class="section rest_api_status_codes"><h3 class="title sectiontitle">Status codes</h3> <p class="p">The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see <a class="xref" href="c_RESTAPI.html" title="REST (REpresentational State Transfer) is a simple stateless architecture that provides standards between computer systems on the web, making it easier for them to communicate with each other.">REST API HTTP response codes</a>.</p> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-prodinv__table_hl1_rcm_lsb" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 18. </span>Status codes</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e2351">Status code</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e2354">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2351 ">200</td><td class="entry cellrowborder" id="tmf_prod_inv-GET-prodinv__tmf-get-status-200-entry" style="vertical-align:top;" headers="d785544e2354 "><span class="ph" id="tmf_prod_inv-GET-prodinv__tmf-get-status-200-p">Request successfully processed. Full resource returned in response (no pagination).</span></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2351 ">206</td><td class="entry cellrowborder" id="tmf_prod_inv-GET-prodinv__tmf-get-status-206-entry" style="vertical-align:top;" headers="d785544e2354 ">Partial resource returned in response (with pagination).</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2351 ">400</td><td class="entry cellrowborder" id="tmf_prod_inv-GET-prodinv__tmf-get-status-400-entry" style="vertical-align:top;" headers="d785544e2354 "><div class="p">Bad request. Possible reasons: <ul class="ul" id="tmf_prod_inv-GET-prodinv__ul_rys_1gy_fsb"><li class="li">Invalid path parameter</li><li class="li">Invalid URI</li></ul> </div> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2351 ">404</td><td class="entry cellrowborder" id="tmf_prod_inv-GET-prodinv__tmf-get-status-404-entry" style="vertical-align:top;" headers="d785544e2354 ">Record not found. No records matching the query parameters are found in the table.</td></tr></tbody></table> </div> </div> <div class="section rest-api-response-body" id="tmf_prod_inv-GET-prodinv__section_rhr_nvy_3sb"><h3 class="title sectiontitle">Response body parameters (JSON)</h3> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-prodinv__table_shr_nvy_3sb" class="table" frame="border" border="1" rules="all"><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e2429">Name</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e2432">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2429 ">id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2432 ">Sys_id of the product inventory from the Product Inventory [sn_prd_invt_product_inventory] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2429 ">name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2432 ">Name of the product inventory.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2429 ">place</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2432 ">Place associated with the product.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2429 ">productCharacteristic</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2432 ">List of product characteristics.<p class="p">Data type: Array</p> <pre class="pre codeblock"><code>"productCharacteristic": [ { "name": "String", "value": "String" } ]</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2429 ">productCharacteristic.name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2432 ">Name of the characteristic.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2429 ">productCharacteristic.value</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2432 ">Value of the characteristic.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2429 ">productOffering</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2432 ">Product offering that the product inventory is associated with.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"productOffering": { "id": "String", "name": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2429 ">productOffering.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2432 ">Sys_id of the product offering. Located in the Product Offering [sn_prd_pm_product_offering] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2429 ">productOffering.name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2432 ">Name of the product offering. Located in the Product Offering [sn_prd_pm_product_offering] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2429 ">productRelationship</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2432 ">List of related products.<p class="p">Data type: Array</p> <pre class="pre codeblock"><code>"productRelationship": [ { "productId": "String", "relationshipType": "String" } ]</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2429 ">productRelationship.productId</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2432 ">Sys_id of the related product from the Product Inventory [sn_prd_invt_product_inventory] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2429 ">productRelationship.relationshipType</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2432 ">Type of relationship.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2429 ">productSpecification</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2432 ">Product specification for the product.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"productSpecification": { "id": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2429 ">productSpecification.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2432 ">Sys_id of the product specification. Located in the Product Specification [sn_prd_pm_product_specification] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2429 ">realizingResource</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2432 ">Realizing resource.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"realizingResource": { "id": "String", "type": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2429 ">realizingResource.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2432 ">Sys_id of the realizing resource from the Product Inventory [sn_prd_invt_product_inventory] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2429 ">realizingResource.type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2432 ">Type of the realizing resource.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2429 ">realizingService</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2432 ">Realizing service.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"realizingService": { "id": "String", "type": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2429 ">realizingService.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2432 ">Sys_id of the realizing service from the Product Inventory [sn_prd_invt_product_inventory] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2429 ">realizingService.type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2432 ">Type of the realizing service.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2429 ">relatedParty</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2432 ">List of parties associated with the ticket.<p class="p">Data type: Array</p> <pre class="pre codeblock"><code>"relatedParty": [ { "id": "String", "@referredType": "String" } ]</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2429 ">relatedParty.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2432 ">Sys_id of the account or customer contact associated with the ticket. Located in the Account [customer_account], Contact [customer_contact] or Consumer [csm_consumer] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2429 ">relatedParty.@referredType</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2432 ">Type of customer.<div class="p">Possible values:<ul class="ul" id="tmf_prod_inv-GET-prodinv__ul_jqs_vbh_fwb"><li class="li">customer</li><li class="li">customerContact</li><li class="li">consumer</li></ul> </div> <p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2429 ">state</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2432 ">Current state of the product.<p class="p">Data type: String</p> </td></tr></tbody></table> </div> </div> <div class="example rest_api_curl_example" id="tmf_prod_inv-GET-prodinv__example_ld5_lnz_3sb"><h3 class="title sectiontitle">cURL request</h3> <p class="p">This example retrieves all product inventories.</p> <pre lang="curl" class="pre codeblock"><code>curl "https://instance.servicenow.com/api/sn_prd_invt/productinventory" \ --request GET \ --user 'username':'password' </code></pre> <p class="p">Response body.</p> <pre lang="json" class="pre codeblock"><code>[ { "id": "075072aec3a83010abc8b5183c40dd44", "relatedParty": [ { "id": "ffc68911c35420105252716b7d40dd55", "name": "Funco Intl", "@type": "RelatedParty", "@referredType": "Customer" }, { "id": "eaf68911c35420105252716b7d40ddde", "name": "Sally Thomas", "@type": "RelatedParty", "@referredType": "CustomerContact" } ], "name": "Firewall Administration PI0000300", "productSpecification": { "id": "31c5caff07266010a7955b7e0ad3006b", "name": "Firewall Administration" }, "status": "Active", "productOffering": { "id": "", "name": "" }, "place": { "id": "920cf6ac73d423002728660c4cf6a799", "name": "200 South James street,Atlanta, GA" }, "productCharacteristic": [ { "name": "Firewall Administration CPE Type", "valueType": "Choice", "value": "Physical" }, { "name": "Configuration and Policy backup", "valueType": "Choice", "value": "" }, { "name": "Firewall Administration CPE ID", "valueType": "Single Line Text", "value": "CPE123456789" }, { "name": "Remote CLI troubleshoot support", "valueType": "Choice", "value": "" }, { "name": "Firewall Administration CPE Model", "valueType": "Choice", "value": "9300 series" } ], "productRelationship": [], "realizingService": [], "realizingResource": [ { "id": "3546463307666010a7955b7e0ad3005d", "name": "Cisco Firewall Management system" } ] }, { "id": "0303a8ea74418510f877ca57242ff96d", "relatedParty": [ { "id": "ffc68911c35420105252716b7d40dd55", "name": "Funco Intl", "@type": "RelatedParty", "@referredType": "Customer" }, { "id": "eaf68911c35420105252716b7d40ddde", "name": "Sally Thomas", "@type": "RelatedParty", "@referredType": "CustomerContact" } ], "name": "SD-WAN Edge Device PI0001114", "productSpecification": { "id": "39b627aa53702010cd6dddeeff7b1202", "name": "SD-WAN Edge Device" }, "status": "Installation Pending", "productOffering": { "id": "69017a0f536520103b6bddeeff7b127d", "name": "Premium SD-WAN Offering" }, "place": "", "productCharacteristic": [], "productRelationship": [], "realizingService": [ { "id": "bf65eadc1b7420106ba59acf034bcb57", "name": "SD-WAN Routing" }, { "id": "16d79ec3532520103b6bddeeff7b12a6", "name": "SD WAN Optimization Service" }, { "id": "16d79ec3532520103b6bddeeff7b12a6", "name": "SD WAN Optimization Service" }, { "id": "bf65eadc1b7420106ba59acf034bcb57", "name": "SD-WAN Routing" }, { "id": "bf65eadc1b7420106ba59acf034bcb57", "name": "SD-WAN Routing" }, { "id": "bf65eadc1b7420106ba59acf034bcb57", "name": "SD-WAN Routing" } ], "realizingResource": [ { "id": "493fa60b536520103b6bddeeff7b12b6", "name": "Customer Premise SD-WAN Router" } ] } ]</code></pre> </div> </div> </div> <div class="topic reference nested1 rest_api_endpoint" id="tmf_prod_inv-GET-prodinv-id"> <h2 class="title topictitle2" id="ariaid-title5">Product Inventory Open API - GET /sn_prd_invt/productinventory/{inventoryId}</h2> <div class="body refbody"><p class="shortdesc">Retrieves a product inventory.</p> <div class="section" id="tmf_prod_inv-GET-prodinv-id__section_owd_kzk_stb"> <div class="p"><div class="note important"><span class="importanttitle">Important:</span> Starting with the <span class="ph">Tokyo</span> release, this endpoint is deprecated. The new version of this endpoint is <a class="xref" href="product-inventory-open-api.html#tmf_prod_inv-GET-product-id" title="Retrieves a specified product inventory record.">Product Inventory Open API - GET /sn_prd_invt/product/{id}</a>.</div> </div> </div> <div class="section"><h3 class="title sectiontitle">URL format</h3> <p class="p rest_api_default_url">Default URL: <span class="ph filepath">/api/sn_prd_invt/productinventory/{inventoryId}</span></p> </div> <div class="section" id="tmf_prod_inv-GET-prodinv-id__section_esr_w5y_3sb"><h3 class="title sectiontitle">Supported request parameters</h3> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-prodinv-id__table_apt_nkz_gsb" class="table rest_api_path_parameters" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 19. </span>Path parameters</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e2840">Name</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e2843">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2840 ">inventoryId</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2843 ">Sys_id of the product inventory to retrieve. Located in the Product Inventory [sn_prd_invt_product_inventory] table.<p class="p">Data type: String</p> </td></tr></tbody></table> </div> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-prodinv-id__table_pfr_vgy_fsb" class="table rest_api_query_parameters" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 20. </span>Query parameters</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e2879">Name</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e2882">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2879 ">customer</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2882 ">Filter product inventories by customer. Only product offerings with a customer sys_id or external id matching the value of this parameter are returned in the response.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2879 ">fields</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2882 ">List of fields to return in the response. Invalid fields are ignored. If this parameter is not used, all fields are returned. <p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2879 ">place</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2882 ">Filter product inventories by place. Only product offerings with a place sys_id or external id matching the value of this parameter are returned in the response.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2879 ">status</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2882 ">Filter product inventories by status. Only product inventories with a status matching the value of this parameter are returned in the response.<p class="p">Data type: String</p> </td></tr></tbody></table> </div> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-prodinv-id__table_gld_vkz_gsb" class="table rest_api_request_body" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 21. </span>Request body parameters (JSON)</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e2951">Name</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e2954">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2951 ">None</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e2954 "> </td></tr></tbody></table> </div> </div> <div class="section rest_api_headers"><h3 class="title sectiontitle">Headers</h3> <p class="p">The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see <a class="xref" href="c_RESTAPI.html" title="REST (REpresentational State Transfer) is a simple stateless architecture that provides standards between computer systems on the web, making it easier for them to communicate with each other.">Supported REST API headers</a>.</p> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-prodinv-id__table_kqy_wgy_fsb" class="table rest_api_request_headers" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 22. </span>Request headers</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e3003">Header</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e3006">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3003 ">None</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3006 "> </td></tr></tbody></table> </div> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-prodinv-id__table_tzy_thy_ksb" class="table rest_api_response_headers" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 23. </span>Response headers</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry row-nocellborder" style="vertical-align:top;" id="d785544e3039">Header</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e3042">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry row-nocellborder" style="vertical-align:top;" headers="d785544e3039 ">Content-Type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3042 ">Data format of the response body. Only supports <span class="keyword parmname">application/json</span>.</td></tr></tbody></table> </div> </div> <div class="section rest_api_status_codes"><h3 class="title sectiontitle">Status codes</h3> <p class="p">The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see <a class="xref" href="c_RESTAPI.html" title="REST (REpresentational State Transfer) is a simple stateless architecture that provides standards between computer systems on the web, making it easier for them to communicate with each other.">REST API HTTP response codes</a>.</p> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-prodinv-id__table_nxj_ykz_gsb" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 24. </span>Status codes</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e3095">Status code</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e3098">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3095 ">200</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3098 ">Request successfully processed.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3095 ">400</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3098 "><div class="p">Bad Request. Could be any of the following reasons: <ul class="ul" id="tmf_prod_inv-GET-prodinv-id__ul_rys_1gy_fsb"><li class="li">Invalid path parameter</li><li class="li">Invalid URI</li></ul> </div> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3095 ">404</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3098 ">Record not found. Record associated with the ID is not found in the table.</td></tr></tbody></table> </div> </div> <div class="section rest-api-response-body" id="tmf_prod_inv-GET-prodinv-id__section_rhr_nvy_3sb"><h3 class="title sectiontitle">Response body parameters (JSON)</h3> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-GET-prodinv-id__table_shr_nvy_3sb" class="table" frame="border" border="1" rules="all"><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e3163">Name</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e3166">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3163 ">id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3166 ">Sys_id of the product inventory from the Product Inventory [sn_prd_invt_product_inventory] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3163 ">name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3166 ">Name of the product inventory.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3163 ">place</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3166 ">Place associated with the product.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3163 ">productCharacteristic</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3166 ">List of product characteristics.<p class="p">Data type: Array</p> <pre class="pre codeblock"><code>"productCharacteristic": [ { "name": "String", "value": "String" } ]</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3163 ">productCharacteristic.name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3166 ">Name of the characteristic.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3163 ">productCharacteristic.value</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3166 ">Value of the characteristic.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3163 ">productOffering</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3166 ">Product offering that the product inventory is associated with.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"productOffering": { "id": "String", "name": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3163 ">productOffering.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3166 ">Sys_id of the product offering. Located in the Product Offering [sn_prd_pm_product_offering] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3163 ">productOffering.name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3166 ">Name of the product offering. Located in the Product Offering [sn_prd_pm_product_offering] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3163 ">productRelationship</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3166 ">List of related products.<p class="p">Data type: Array</p> <pre class="pre codeblock"><code>"productRelationship": [ { "productId": "String", "relationshipType": "String" } ]</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3163 ">productRelationship.productId</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3166 ">Sys_id of the related product from the Product Inventory [sn_prd_invt_product_inventory] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3163 ">productRelationship.relationshipType</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3166 ">Type of relationship.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3163 ">productSpecification</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3166 ">Product specification for the product.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"productSpecification": { "id": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3163 ">productSpecification.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3166 ">Sys_id of the product specification. Located in the Product Specification [sn_prd_pm_product_specification] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3163 ">realizingResource</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3166 ">Realizing resource.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"realizingResource": { "id": "String", "type": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3163 ">realizingResource.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3166 ">Sys_id of the realizing resource from the Product Inventory [sn_prd_invt_product_inventory] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3163 ">realizingResource.type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3166 ">Type of the realizing resource.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3163 ">realizingService</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3166 ">Realizing service.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"realizingService": { "id": "String", "type": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3163 ">realizingService.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3166 ">Sys_id of the realizing service from the Product Inventory [sn_prd_invt_product_inventory] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3163 ">realizingService.type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3166 ">Type of the realizing service.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3163 ">relatedParty</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3166 ">List of parties associated with the ticket.<p class="p">Data type: Array</p> <pre class="pre codeblock"><code>"relatedParty": [ { "id": "String", "@referredType": "String" } ]</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3163 ">relatedParty.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3166 ">Sys_id of the account or customer contact associated with the ticket. Located in the Account [customer_account], Contact [customer_contact], or Consumer [csm_consumer] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3163 ">relatedParty.@referredType</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3166 ">Type of customer.<div class="p">Possible values:<ul class="ul" id="tmf_prod_inv-GET-prodinv-id__ul_jqs_vbh_fwb"><li class="li">Customer</li><li class="li">CustomerContact</li><li class="li">Consumer</li></ul> </div> <p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3163 ">state</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3166 ">Current state of the product.<p class="p">Data type: String</p> </td></tr></tbody></table> </div> </div> <div class="example rest_api_curl_example"><h3 class="title sectiontitle">cURL request</h3> <p class="p">This example retrieves a product inventory for an SD-WAN service package.</p> <pre lang="curl" class="pre codeblock"><code>curl --location --request GET 'https:// instance.servicenow.com/api/sn_prd_invt/productinventory/074450fc74918d10f877ca57242ff9e3' \ --user 'username':'password' </code></pre> <p class="p">Output:</p> <pre lang="json" class="pre codeblock"><code>{ "id": "074450fc74918d10f877ca57242ff9e3", "relatedParty": [ { "id": "ffc68911c35420105252716b7d40dd55", "name": "Funco Intl", "@type": "RelatedParty", "@referredType": "Customer" }, { "id": "eaf68911c35420105252716b7d40ddde", "name": "Sally Thomas", "@type": "RelatedParty", "@referredType": "CustomerContact" } ], "name": "SD-WAN Service Package PI0001576", "productSpecification": { "id": "cfe5ef6a53702010cd6dddeeff7b12f6", "name": "SD-WAN Service Package" }, "status": "Installation Pending", "productOffering": { "id": "69017a0f536520103b6bddeeff7b127d", "name": "Premium SD-WAN Offering" }, "place": "", "productCharacteristic": [], "productRelationship": [ { "id": "a74490fc74918d10f877ca57242ff942", "name": "SD-WAN Edge Device PI0001582", "relationshipType": "Bundles" }, { "id": "b85414fc74918d10f877ca57242ff90e", "name": "SD-WAN Controller PI0001602", "relationshipType": "Bundles" }, { "id": "d74490fc74918d10f877ca57242ff907", "name": "SD-WAN Security PI0001577", "relationshipType": "Bundles" } ], "realizingService": [], "realizingResource": [] }</code></pre> </div> </div> </div> <div class="topic reference nested1 rest_api_endpoint" id="tmf_prod_inv-POST-product"> <h2 class="title topictitle2" id="ariaid-title6">Product Inventory Open API - POST /sn_prd_invt/product</h2> <div class="body refbody"><p class="shortdesc">Creates a product inventory record.</p> <div class="section"><h3 class="title sectiontitle">URL format</h3> <p class="p rest_api_default_url">Default URL: <span class="ph filepath">/api/sn_prd_invt/product</span></p> </div> <div class="section"><h3 class="title sectiontitle">Supported request parameters</h3> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-POST-product__table_o3n_mvf_hsb" class="table rest_api_path_parameters" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 25. </span>Path parameters</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e3558">Name</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e3561">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3558 ">None</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3561 "> </td></tr></tbody></table> </div> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-POST-product__table_nbq_zds_3sb" class="table rest_api_query_parameters" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 26. </span>Query parameters</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e3594">Name</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e3597">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3594 ">None</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3597 "> </td></tr></tbody></table> </div> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" class="table rest_api_request_body" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 27. </span>Request body parameters (JSON)</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e3632">Name</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e3635">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3632 ">name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3635 ">Required. Name of the product inventory.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3632 ">pid</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3635 ">Unique identifier for the product inventory from the external system.<p class="p">Data type: String</p> <p class="p">Default: Blank string</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3632 ">productCharacteristic</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3635 ">List of product characteristics.<p class="p">Data type: Array</p> <pre class="pre codeblock"><code>"productCharacteristic": [ { "name": "String", "value": "String" } ]</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3632 ">productCharacteristic.name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3635 ">Name of the characteristic.<p class="p">Data type: String</p> <p class="p">Default: Blank string</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3632 ">productCharacteristic.value</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3635 ">Value of the characteristic.<p class="p">Data type: String</p> <p class="p">Default: Blank string</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3632 ">productOffering</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3635 ">Required. Product offering that the product inventory is associated with.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"productOffering": { "id": "String", "internalVersion": "String", "name": "String", "version": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3632 ">productOffering.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3635 ">Required. Initial_version or external_id of the product offering. Located in the Product Offering [sn_prd_pm_product_offering] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3632 ">productOffering.internalVersion</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3635 ">Version of the product offering. Located in the Product Offering [sn_prd_pm_product_offering] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3632 ">productOffering.name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3635 ">Name of the product offering. Located in the Product Offering [sn_prd_pm_product_offering] table.<p class="p">Data type: String</p> <p class="p">Default: Blank string</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3632 ">productOffering.version</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3635 ">External_version of the product offering. Located in the Product Offering [sn_prd_pm_product_offering] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3632 ">productRelationship</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3635 ">List of related products.<p class="p">Data type: Array</p> <pre class="pre codeblock"><code>"productRelationship": [ { "productId": "String", "relationshipType": "String" } ]</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3632 ">productRelationship.productId</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3635 ">Required if using the <span class="keyword parmname">productRelationship</span> parameter. Sys_id of the related product from the Product Inventory [sn_prd_invt_product_inventory] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3632 ">productRelationship.relationshipType</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3635 ">Type of relationship. The only valid value is child.<p class="p">Data type: String</p> <p class="p">Default: Blank string</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3632 ">productSpecification</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3635 ">Required. Product specification for the product.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"productSpecification": { "id": "String", "internalVersion": "String", "version": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3632 ">productSpecification.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3635 ">Required. Initial_version or external_id of the product specification. Located in the Product Specification [sn_prd_pm_product_specification] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3632 ">productSpecification.internalVersion</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3635 ">Version of the product specification. Located in the Product Specification [sn_prd_pm_product_specification] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3632 ">productSpecification.version</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3635 ">External_version of the product specification. Located in the Product Specification [sn_prd_pm_product_specification] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3632 ">realizingResource</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3635 ">Resource that realizes the product. The realizing resource is a child product inventory of this product inventory.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"realizingResource": { "id": "String", "type": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3632 ">realizingResource.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3635 ">Required if using the <span class="keyword parmname">realizingResource</span> parameter. <span class="ph">Sys_id of the realizing resource. Located in the Product Inventory [sn_prd_invt_product_inventory] table.</span> <p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3632 ">realizingResource.type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3635 ">Type of the realizing resource.<p class="p">Valid value: child</p> <p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3632 ">realizingService</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3635 ">Service that realizes the product. The realizing service is a child product inventory of this product inventory.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"realizingService": { "id": "String", "type": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3632 ">realizingService.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3635 ">Required if using the <span class="keyword parmname">realizingService</span> parameter. <span class="ph">Sys_id of the realizing service. Located in the Product Inventory [sn_prd_invt_product_inventory] table.</span> <p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3632 ">realizingService.type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3635 ">Type of the realizing service.<p class="p">Valid value: child</p> <p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3632 ">relatedParty</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3635 ">List of parties associated with the ticket.<p class="p">Data type: Array</p> <pre class="pre codeblock"><code>"relatedParty": [ { "id": "String", "@referredType": "String" } ]</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3632 ">relatedParty.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3635 ">Required if using the <span class="keyword parmname">relatedParty</span> parameter. Sys_id of the account or customer contact associated with the ticket. Located in the Account [customer_account], Contact [customer_contact], or Consumer [csm_consumer] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3632 ">relatedParty.@referredType</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3635 ">Type of customer.<div class="p">Possible values:<ul class="ul" id="tmf_prod_inv-POST-product__ul_dhg_ngs_3sb"><li class="li">customer</li><li class="li">customer_contact</li><li class="li">consumer</li></ul> </div> <p class="p">Data type: String</p> <p class="p">Default: Blank string</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3632 ">state</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e3635 ">Current state of the product.<div class="p">Possible values:<ul class="ul" id="tmf_prod_inv-POST-product__ul_blq_yw5_4sb"><li class="li">active</li><li class="li">change_pending</li><li class="li">inactivation_pending</li><li class="li">inactive</li><li class="li">installation_pending</li></ul> </div> <p class="p">Data type: String</p> <p class="p">Default: installation_pending</p> </td></tr></tbody></table> </div> </div> <div class="section rest_api_headers"><h3 class="title sectiontitle">Headers</h3> <p class="p">The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see <a class="xref" href="c_RESTAPI.html" title="REST (REpresentational State Transfer) is a simple stateless architecture that provides standards between computer systems on the web, making it easier for them to communicate with each other.">Supported REST API headers</a>.</p> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-POST-product__table_ett_h3z_gsb" class="table rest_api_request_headers" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 28. </span>Request headers</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e4088">Header</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e4091">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4088 ">Accept</td><td class="entry cellrowborder" id="tmf_prod_inv-POST-product__accept-JSON-only-entry-RESTAPI" style="vertical-align:top;" headers="d785544e4091 "><span class="ph">Data format of the response body. Only supports <span class="keyword parmname">application/json</span>.</span></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4088 ">Content-Type</td><td class="entry cellrowborder" id="tmf_prod_inv-POST-product__content_type-JSON-only-entry-RESTAPI" style="vertical-align:top;" headers="d785544e4091 "><span class="ph">Data format of the request body. Only supports <span class="keyword parmname">application/json</span>.</span></td></tr></tbody></table> </div> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-POST-product__table_tzy_thy_ksb" class="table rest_api_response_headers" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 29. </span>Response headers</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry row-nocellborder" style="vertical-align:top;" id="d785544e4142">Header</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e4145">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry row-nocellborder" style="vertical-align:top;" headers="d785544e4142 ">Content-Type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4145 ">Data format of the response body. Only supports <span class="keyword parmname">application/json</span>.</td></tr></tbody></table> </div> </div> <div class="section rest_api_status_codes"><h3 class="title sectiontitle">Status codes</h3> <p class="p">The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see <a class="xref" href="c_RESTAPI.html" title="REST (REpresentational State Transfer) is a simple stateless architecture that provides standards between computer systems on the web, making it easier for them to communicate with each other.">REST API HTTP response codes</a>.</p> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-POST-product__table_fbw_k3z_gsb" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 30. </span>Status codes</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e4198">Status code</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e4201">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4198 ">201</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4201 ">Request successfully processed.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4198 ">400</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4201 ">Bad Request. Could be any of the following reasons: <ul class="ul" id="tmf_prod_inv-POST-product__ul_nc5_myx_fsb"><li class="li">Empty payload.</li><li class="li">Invalid payload. Mandatory field missing: <field name></li></ul> </td></tr></tbody></table> </div> </div> <div class="section rest-api-response-body"><h3 class="title sectiontitle">Response body parameters (JSON)</h3> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" class="table" frame="border" border="1" rules="all"><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e4261">Name</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e4264">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">href</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">Relative link to the product inventory record.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">Sys_id of the product inventory from the Product Inventory [sn_prd_invt_product_inventory] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">Name of the product inventory.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">pid</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">Unique identifier for the product inventory from the external system.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">productCharacteristic</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">List of product characteristics.<p class="p">Data type: Array</p> <pre class="pre codeblock"><code>"productCharacteristic": [ { "name": "String", "value": "String" } ]</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">productCharacteristic.name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">Name of the characteristic.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">productCharacteristic.value</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">Value of the characteristic.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">productOffering</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">Product offering that the product inventory is associated with.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"productOffering": { "id": "String", "internalId": "String", "internalVersion": "String", "name": "String", "version": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">productOffering.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">Initial_version or external_id of the product offering. Located in the Product Offering [sn_prd_pm_product_offering] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">productOffering.internalId</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">Initial_version of the product offering. Located in the Product Offering [sn_prd_pm_product_offering] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">productOffering.internalVersion</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">Version of the product offering. Located in the Product Offering [sn_prd_pm_product_offering] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">productOffering.name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">Name of the product offering. Located in the Product Offering [sn_prd_pm_product_offering] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">productOffering.version</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">External_version of the product offering. Located in the Product Offering [sn_prd_pm_product_offering] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">productPrice</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">Returns an empty array.<p class="p">Data type: Array</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">productRelationship</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">List of related products.<p class="p">Data type: Array</p> <pre class="pre codeblock"><code>"productRelationship": [ { "productId": "String", "relationshipType": "String" } ]</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">productRelationship.productId</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">Sys_id of the related product from the Product Inventory [sn_prd_invt_product_inventory] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">productRelationship.relationshipType</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">Type of relationship.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">productSpecification</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">Product specification for the product.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"productSpecification": { "id": "String", "internalId": "String", "internalVersion": "String", "version": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">productSpecification.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">Initial_version or external_id of the product specification. Located in the Product Specification [sn_prd_pm_product_specification] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">productSpecification.internalId</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">Initial_version of the product specification. Located in the Product Specification [sn_prd_pm_product_specification] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">productSpecification.internalVersion</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">Version of the product specification. Located in the Product Specification [sn_prd_pm_product_specification] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">productSpecification.version</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">External_version of the product specification. Located in the Product Specification [sn_prd_pm_product_specification] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">realizingResource</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">Resource that realizes the product. The realizing resource is a child product inventory of this product inventory.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"realizingResource": { "id": "String", "type": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">realizingResource.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 "><span class="ph" id="tmf_prod_inv-POST-product__realRes-id-entry">Sys_id of the realizing resource. Located in the Product Inventory [sn_prd_invt_product_inventory] table.</span> <p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">realizingResource.type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">Type of the realizing resource.<p class="p">Valid value: child</p> <p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">realizingService</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">Service that realizes the product. The realizing service is a child product inventory of this product inventory.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"realizingService": { "id": "String", "type": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">realizingService.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 "><span class="ph" id="tmf_prod_inv-POST-product__realServ-id-entry">Sys_id of the realizing service. Located in the Product Inventory [sn_prd_invt_product_inventory] table.</span> <p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">realizingService.type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">Type of the realizing service.<p class="p">Valid value: child</p> <p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">relatedParty</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">List of parties associated with the ticket.<p class="p">Data type: Array</p> <pre class="pre codeblock"><code>"relatedParty": [ { "id": "String", "@referredType": "String" } ]</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">relatedParty.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">Sys_id of the account or customer contact associated with the ticket. Located in the Account [customer_account], Contact [customer_contact], or Consumer [csm_consumer] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">relatedParty.@referredType</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">Type of customer.<div class="p">Possible values:<ul class="ul" id="tmf_prod_inv-POST-product__ul_jqs_vbh_fwb"><li class="li">Customer</li><li class="li">CustomerContact</li><li class="li">Consumer</li></ul> </div> <p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4261 ">state</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4264 ">Current state of the product.<p class="p">Data type: String</p> </td></tr></tbody></table> </div> </div> <div class="example rest_api_curl_example"><h3 class="title sectiontitle">cURL request</h3> <p class="p">This example creates a product inventory for a voice over IP solution for a user.</p> <pre lang="curl" class="pre codeblock"><code>curl -X POST "https://instance.service-now.com/api/sn_prd_invt/product" \ --header "Accept: application/json" \ --header "Content-Type: application/json" \ --user "username":"password" \ --data "[ { "pid": "PO-456", "description": "inventory description", "isBundle": false, "name": "Voice Over IP Basic instance for Jean", "productOffering": { "@referredType": "ProductOffering", "name": "Premium SD-WAN Offering", "id": "69017a0f536520103b6bddeeff7b127d" }, "productCharacteristic": [], "productRelationship": [ { "productId": "fa6d13f45b5620102dff5e92dc81c77f", "relationshipType": "child" } ], "realizingService": { "id": "fe6d13f45b5620102dff5e92dc81c786", "relationshipType": "child" }, "realizingResource": { "id": "326d13f45b5620102dff5e92dc81c78c", "relationshipType": "child" }, "relatedParty": [ { "@referredType": "CustomerContact", "@type": "RelatedParty", "name": "Sally Thomas", "id": "eaf68911c35420105252716b7d40ddde" }, { "@referredType": "Customer", "@type": "RelatedParty", "name": "Funco Intl", "id": "ffc68911c35420105252716b7d40dd55" } ], "productSpecification": { "@referredType": "ProductSpecification", "@type": null, "name": null, "id": "3ee1fdb1c3331010d216b5183c40dd81", "internalVersion": "1" }, "bundle": false } ]"</code></pre> <p class="p">Response body.</p> <pre lang="json" class="pre codeblock"><code>{ "pid": "PO-456", "description": "inventory description", "isBundle": false, "name": "Voice Over IP Basic instance for Jean", "productOffering": { "@referredType": "ProductOffering", "name": "Premium SD-WAN Offering", "id": "69017a0f536520103b6bddeeff7b127d", "internalVersion": "1", "version": null, "status": "published", "internalId": "69017a0f536520103b6bddeeff7b127d" }, "productCharacteristic": [], "productRelationship": [ { "productId": "fa6d13f45b5620102dff5e92dc81c77f", "relationshipType": "child" } ], "realizingService": { "id": "fe6d13f45b5620102dff5e92dc81c786", "relationshipType": "child" }, "realizingResource": { "id": "326d13f45b5620102dff5e92dc81c78c", "relationshipType": "child" }, "relatedParty": [ { "@referredType": "CustomerContact", "@type": "RelatedParty", "name": "Sally Thomas", "id": "eaf68911c35420105252716b7d40ddde" }, { "@referredType": "Customer", "@type": "RelatedParty", "name": "Example Company", "id": "ffc68911c35420105252716b7d40dd55" } ], "productSpecification": { "@referredType": "ProductSpecification", "@type": null, "name": null, "id": "3ee1fdb1c3331010d216b5183c40dd81", "internalVersion": "1", "version": null, "status": "published", "internalId": "3ee1fdb1c3331010d216b5183c40dd81" }, "bundle": false, "productPrice": [], "id": "25b07475471789108761b955d36d439d", "href": "/api/sn_prd_invt/product/25b07475471789108761b955d36d439d" }</code></pre> </div> </div> </div> <div class="topic reference nested1 rest_api_endpoint" id="tmf_prod_inv-POST-prodinv"> <h2 class="title topictitle2" id="ariaid-title7">Product Inventory Open API - POST /sn_prd_invt/productinventory</h2> <div class="body refbody"><p class="shortdesc">Creates a product inventory.</p> <div class="section" id="tmf_prod_inv-POST-prodinv__section_owd_kzk_stb"> <div class="p"><div class="note important"><span class="importanttitle">Important:</span> Starting with the <span class="ph">Tokyo</span> release, this endpoint is deprecated. The new version of this endpoint is <a class="xref" href="product-inventory-open-api.html#tmf_prod_inv-POST-product" title="Creates a product inventory record.">Product Inventory Open API - POST /sn_prd_invt/product</a>.</div> </div> </div> <div class="section"><h3 class="title sectiontitle">URL format</h3> <p class="p rest_api_default_url">Default URL: <span class="ph filepath">/api/sn_prd_invt/productinventory</span></p> </div> <div class="section"><h3 class="title sectiontitle">Supported request parameters</h3> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-POST-prodinv__table_o3n_mvf_hsb" class="table rest_api_path_parameters" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 31. </span>Path parameters</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e4772">Name</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e4775">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4772 ">None</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4775 "> </td></tr></tbody></table> </div> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-POST-prodinv__table_nbq_zds_3sb" class="table rest_api_query_parameters" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 32. </span>Query parameters</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e4808">Name</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e4811">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4808 ">None</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4811 "> </td></tr></tbody></table> </div> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" class="table rest_api_request_body" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 33. </span>Request body parameters (JSON)</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e4844">Name</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e4847">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4844 ">name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4847 ">Required. Name of the product inventory.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4844 ">pid</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4847 ">Unique identifier for the product inventory from the external system.<p class="p">Data type: String</p> <p class="p">Default: Blank string</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4844 ">productCharacteristic</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4847 ">List of product characteristics.<p class="p">Data type: Array</p> <pre class="pre codeblock"><code>"productCharacteristic": [ { "name": "String", "value": "String" } ]</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4844 ">productCharacteristic.name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4847 ">Name of the characteristic.<p class="p">Data type: String</p> <p class="p">Default: Blank string</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4844 ">productCharacteristic.value</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4847 ">Value of the characteristic.<p class="p">Data type: String</p> <p class="p">Default: Blank string</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4844 ">productOffering</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4847 ">Required. Product offering that the product inventory is associated with.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"productOffering": { "id": "String", "name": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4844 ">productOffering.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4847 ">Required. Sys_id of the product offering. Located in the Product Offering [sn_prd_pm_product_offering] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4844 ">productOffering.name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4847 ">Name of the product offering. Located in the Product Offering [sn_prd_pm_product_offering] table.<p class="p">Data type: String</p> <p class="p">Default: Blank string</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4844 ">productRelationship</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4847 ">List of related products.<p class="p">Data type: Array</p> <pre class="pre codeblock"><code>"productRelationship": [ { "productId": "String", "relationshipType": "String" } ]</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4844 ">productRelationship.productId</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4847 ">Required if using the <span class="keyword parmname">productRelationship</span> parameter. Sys_id of the related product from the Product Inventory [sn_prd_invt_product_inventory] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4844 ">productRelationship.relationshipType</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4847 ">Type of relationship. The only valid value is child.<p class="p">Data type: String</p> <p class="p">Default: Blank string</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4844 ">productSpecification</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4847 ">Required. Product specification for the product.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"productSpecification": { "id": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4844 ">productSpecification.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4847 ">Required. Sys_id of the product specification. Located in the Product Specification [sn_prd_pm_product_specification] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4844 ">realizingResource</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4847 ">Realizing resource.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"realizingResource": { "id": "String", "type": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4844 ">realizingResource.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4847 ">Required if using the <span class="keyword parmname">realizingResource</span> parameter. Sys_id of the realizing resource from the Product Inventory [sn_prd_invt_product_inventory] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4844 ">realizingResource.type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4847 ">Type of the realizing resource. The only valid value is child.<p class="p">Data type: String</p> <p class="p">Default: Blank string</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4844 ">realizingService</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4847 ">Realizing service.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"realizingService": { "id": "String", "type": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4844 ">realizingService.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4847 ">Required if using the <span class="keyword parmname">realizingService</span> parameter. Sys_id of the realizing service from the Product Inventory [sn_prd_invt_product_inventory] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4844 ">realizingService.type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4847 ">Type of the realizing service. The only valid value is child.<p class="p">Data type: String</p> <p class="p">Default: Blank string</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4844 ">relatedParty</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4847 ">List of parties associated with the ticket.<p class="p">Data type: Array</p> <pre class="pre codeblock"><code>"relatedParty": [ { "id": "String", "@referredType": "String" } ]</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4844 ">relatedParty.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4847 ">Required if using the <span class="keyword parmname">relatedParty</span> parameter. Sys_id of the account or customer contact associated with the ticket. Located in the Account [customer_account], Contact [customer_contact], or Consumer [csm_Consumer] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4844 ">relatedParty.@referredType</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4847 ">Type of customer.<div class="p">Possible values:<ul class="ul" id="tmf_prod_inv-POST-prodinv__ul_dhg_ngs_3sb"><li class="li">customer</li><li class="li">customer_contact</li><li class="li">consumer</li></ul> </div> <p class="p">Data type: String</p> <p class="p">Default: Blank string</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4844 ">state</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e4847 ">Current state of the product.<div class="p">Possible values:<ul class="ul" id="tmf_prod_inv-POST-prodinv__ul_blq_yw5_4sb"><li class="li">active</li><li class="li">change_pending</li><li class="li">inactivation_pending</li><li class="li">inactive</li><li class="li">installation_pending</li></ul> </div> <p class="p">Data type: String</p> <p class="p">Default: installation_pending</p> </td></tr></tbody></table> </div> </div> <div class="section rest_api_headers"><h3 class="title sectiontitle">Headers</h3> <p class="p">The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see <a class="xref" href="c_RESTAPI.html" title="REST (REpresentational State Transfer) is a simple stateless architecture that provides standards between computer systems on the web, making it easier for them to communicate with each other.">Supported REST API headers</a>.</p> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-POST-prodinv__table_ett_h3z_gsb" class="table rest_api_request_headers" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 34. </span>Request headers</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e5244">Header</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e5247">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5244 ">Accept</td><td class="entry cellrowborder" id="tmf_prod_inv-POST-prodinv__accept-JSON-only-entry-RESTAPI" style="vertical-align:top;" headers="d785544e5247 "><span class="ph">Data format of the response body. Only supports <span class="keyword parmname">application/json</span>.</span></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5244 ">Content-Type</td><td class="entry cellrowborder" id="tmf_prod_inv-POST-prodinv__content_type-JSON-only-entry-RESTAPI" style="vertical-align:top;" headers="d785544e5247 "><span class="ph">Data format of the request body. Only supports <span class="keyword parmname">application/json</span>.</span></td></tr></tbody></table> </div> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-POST-prodinv__table_tzy_thy_ksb" class="table rest_api_response_headers" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 35. </span>Response headers</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry row-nocellborder" style="vertical-align:top;" id="d785544e5298">Header</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e5301">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry row-nocellborder" style="vertical-align:top;" headers="d785544e5298 ">Content-Type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5301 ">Data format of the response body. Only supports <span class="keyword parmname">application/json</span>.</td></tr></tbody></table> </div> </div> <div class="section rest_api_status_codes"><h3 class="title sectiontitle">Status codes</h3> <p class="p">The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see <a class="xref" href="c_RESTAPI.html" title="REST (REpresentational State Transfer) is a simple stateless architecture that provides standards between computer systems on the web, making it easier for them to communicate with each other.">REST API HTTP response codes</a>.</p> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="tmf_prod_inv-POST-prodinv__table_fbw_k3z_gsb" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 36. </span>Status codes</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e5354">Status code</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e5357">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5354 ">201</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5357 ">Request successfully processed.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5354 ">400</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5357 ">Bad Request. Could be any of the following reasons: <ul class="ul" id="tmf_prod_inv-POST-prodinv__ul_nc5_myx_fsb"><li class="li">Empty payload.</li><li class="li">Invalid payload. Mandatory field missing: <field name></li></ul> </td></tr></tbody></table> </div> </div> <div class="section rest-api-response-body"><h3 class="title sectiontitle">Response body parameters (JSON)</h3> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" class="table" frame="border" border="1" rules="all"><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e5412">Name</th><th class="entry cellrowborder" style="vertical-align:top;" id="d785544e5415">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5412 ">id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5415 ">Sys_id of the product inventory from the Product Inventory [sn_prd_invt_product_inventory] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5412 ">name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5415 ">Name of the product inventory.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5412 ">pid</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5415 ">Unique identifier for the product inventory from the external system.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5412 ">productCharacteristic</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5415 ">List of product characteristics.<p class="p">Data type: Array</p> <pre class="pre codeblock"><code>"productCharacteristic": [ { "name": "String", "value": "String" } ]</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5412 ">productCharacteristic.name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5415 ">Name of the characteristic.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5412 ">productCharacteristic.value</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5415 ">Value of the characteristic.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5412 ">productOffering</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5415 ">Product offering that the product inventory is associated with.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"productOffering": { "id": "String", "name": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5412 ">productOffering.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5415 ">Sys_id of the product offering. Located in the Product Offering [sn_prd_pm_product_offering] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5412 ">productOffering.name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5415 ">Name of the product offering. Located in the Product Offering [sn_prd_pm_product_offering] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5412 ">productRelationship</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5415 ">List of related products.<p class="p">Data type: Array</p> <pre class="pre codeblock"><code>"productRelationship": [ { "productId": "String", "relationshipType": "String" } ]</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5412 ">productRelationship.productId</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5415 ">Sys_id of the related product from the Product Inventory [sn_prd_invt_product_inventory] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5412 ">productRelationship.relationshipType</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5415 ">Type of relationship.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5412 ">productSpecification</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5415 ">Product specification for the product.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"productSpecification": { "id": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5412 ">productSpecification.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5415 ">Sys_id of the product specification. Located in the Product Specification [sn_prd_pm_product_specification] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5412 ">realizingResource</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5415 ">Realizing resource.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"realizingResource": { "id": "String", "type": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5412 ">realizingResource.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5415 ">Sys_id of the realizing resource from the Product Inventory [sn_prd_invt_product_inventory] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5412 ">realizingResource.type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5415 ">Type of the realizing resource.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5412 ">realizingService</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5415 ">Realizing service.<p class="p">Data type: Object</p> <pre class="pre codeblock"><code>"realizingService": { "id": "String", "type": "String" }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5412 ">realizingService.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5415 ">Sys_id of the realizing service from the Product Inventory [sn_prd_invt_product_inventory] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5412 ">realizingService.type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5415 ">Type of the realizing service.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5412 ">relatedParty</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5415 ">List of parties associated with the ticket.<p class="p">Data type: Array</p> <pre class="pre codeblock"><code>"relatedParty": [ { "id": "String", "@referredType": "String" } ]</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5412 ">relatedParty.id</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5415 ">Sys_id of the account or customer contact associated with the ticket. Located in the Account [customer_account], Contact [customer_contact], or Consumer [csm_consumer] table.<p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5412 ">relatedParty.@referredType</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5415 ">Type of customer.<div class="p">Possible values:<ul class="ul" id="tmf_prod_inv-POST-prodinv__ul_jqs_vbh_fwb"><li class="li">Customer</li><li class="li">CustomerContact</li><li class="li">Consumer</li></ul> </div> <p class="p">Data type: String</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5412 ">state</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d785544e5415 ">Current state of the product.<p class="p">Data type: String</p> </td></tr></tbody></table> </div> </div> <div class="example rest_api_curl_example"><h3 class="title sectiontitle">cURL request</h3> <p class="p">This example creates a product inventory for a voice over IP solution for a user.</p> <pre lang="curl" class="pre codeblock"><code>curl --location --request POST “https://instance.servicenow.com/api/sn_prd_invt/productinventory” \ --header “Content-Type: application/json” \ --data-raw '[ { "pid": "demoInventory", "description": "inventory description", "isBundle": false, "name": "Voice Over IP Basic instance for Jean", "productOffering": { "id": "69017a0f536520103b6bddeeff7b127d", "name": "Premium SD-WAN Offering", "@referredType": "ProductOffering" }, "productCharacteristic": [ { "name": "CPE Type", "valueType": "choice", "value": "Virtual" }, { "name":"Routing", "valueType": "choice", "value": "Premium" } ], "productRelationship": [ { "productId": "7e6d13f45b5620102dff5e92dc81c787", "relationshipType": "child" } ], "relatedParty": [ { "id": "eaf68911c35420105252716b7d40ddde", "name": "Sally Thomas", "role": "User", "@type": "RelatedParty", "@referredType": "CustomerContact" }, { "id": "ffc68911c35420105252716b7d40dd55", "name": "Funco Intl", "@type": "RelatedParty", "@referredType": "Customer" } ], "productSpecification": { "id": "cfe5ef6a53702010cd6dddeeff7b12f6", "@referredType": "ProductSpecification", "version": "1" } } ]' --user 'username':'password' </code></pre> <p class="p">Response body.</p> <pre lang="json" class="pre codeblock"><code>{ "pid": "demoInventory", "description": "inventory description", "isBundle": false, "name": "Voice Over IP Basic instance for Jean", "productOffering": { "id": "69017a0f536520103b6bddeeff7b127d", "name": "Premium SD-WAN Offering", "@referredType": "ProductOffering" }, "productCharacteristic": [ { "name": "CPE Type", "valueType": "choice", "value": "Virtual" }, { "name": "Routing", "valueType": "choice", "value": "Premium" } ], "productRelationship": [ { "productId": "7e6d13f45b5620102dff5e92dc81c787", "relationshipType": "child" } ], "relatedParty": [ { "id": "eaf68911c35420105252716b7d40ddde", "name": "Sally Thomas", "role": "User", "@type": "RelatedParty", "@referredType": "CustomerContact" }, { "id": "ffc68911c35420105252716b7d40dd55", "name": "Funco Intl", "@type": "RelatedParty", "@referredType": "Customer" } ], "productSpecification": { "id": "cfe5ef6a53702010cd6dddeeff7b12f6", "@referredType": "ProductSpecification", "version": "1" }, "id": "3ac715c6745d8150f877ca57242ff97a" }</code></pre> </div> </div> </div> </div> </body></html></div>