Product Inventory Open API
-
- UpdatedJan 30, 2025
- 26 minutes to read
- Yokohama
- API reference
The Product Inventory Open API provides endpoints to create and retrieve product inventories.
Use this API to manage product inventory information between external systems and the ServiceNow AI Platform.
This API is included in the Product Inventory Advanced application, which is available on the ServiceNow Store and runs in the sn_prd_invt
namespace.
The calling user must have the sn_prd_invt.product_inventory_integrator role.
- Product Characteristics [sn_prd_invt_product_characteristics]
- Product Inventory [sn_prd_invt_product_inventory]
- Product Model [cmdb_model]
- Product Model Characteristic [sn_prd_pm_product_model_characteristic]
The Product Inventory Open API is a ServiceNow® implementation of the TM Forum Product Inventory Management API REST specification. This implementation is based on the TMF637 Product Inventory Management API REST Specification Release 19, August 2019. The Product Inventory Open API is conformance certified by TM Forum.
Product Inventory Open API - GET /sn_prd_invt/product
Retrieves all product inventory records and their associated child product inventories.
URL format
Default URL: api/sn_prd_invt/product
Supported request parameters
Name | Description |
---|---|
None |
Name | Description |
---|---|
None |
Headers
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 Supported REST API headers.
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Response body parameters (JSON)
Example: cURL request
This example retrieves all product inventories.
Response body.
Product Inventory Open API - GET /sn_prd_invt/product/{id}
Retrieves a specified product inventory record and the sys_ids of the associated child product inventory records.
URL format
Default URL: /api/sn_prd_invt/product/{id}
Supported request parameters
Name | Description |
---|---|
id | Sys_id or exteranl_id of the product inventory record to retrieve. Data type: String Table: Product Inventory [sn_prd_invt_product_inventory] |
Name | Description |
---|---|
None |
Headers
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 Supported REST API headers.
Header | Description |
---|---|
None |
Header | Description |
---|---|
Content-Type | Data format of the response body. Only supports application/json. |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
200 | Request successfully processed. |
400 | Bad Request. Could be any of the following reasons:
|
404 | Record not found. Record associated with the ID is not found in the table. |
Response body parameters (JSON)
Example: cURL request
This example retrieves a specified product inventory.
Output:
Product Inventory Open API - GET /sn_prd_invt/productinventory
Retrieves a list of all product inventories.
URL format
Default URL: api/sn_prd_invt/productinventory
Supported request parameters
Name | Description |
---|---|
None |
Name | Description |
---|---|
None |
Headers
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 Supported REST API headers.
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Response body parameters (JSON)
Example: cURL request
This example retrieves all product inventories.
Response body.
Product Inventory Open API - GET /sn_prd_invt/productinventory/{inventoryId}
Retrieves a product inventory.
URL format
Default URL: /api/sn_prd_invt/productinventory/{inventoryId}
Supported request parameters
Name | Description |
---|---|
inventoryId | Sys_id of the product inventory to retrieve. Data type: String Table: Product Inventory [sn_prd_invt_product_inventory] |
Name | Description |
---|---|
None |
Headers
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 Supported REST API headers.
Header | Description |
---|---|
None |
Header | Description |
---|---|
Content-Type | Data format of the response body. Only supports application/json. |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
200 | Request successfully processed. |
400 | Bad Request. Could be any of the following reasons:
|
404 | Record not found. Record associated with the ID is not found in the table. |
Response body parameters (JSON)
Example: cURL request
This example retrieves a product inventory for an SD-WAN service package.
Output:
Product Inventory Open API - POST /sn_prd_invt/product
Creates a product inventory record.
You can also use this endpoint to create product inventory bundles. For additional information on these bundles, see.
URL format
Default URL: /api/sn_prd_invt/product
Supported request parameters
Name | Description |
---|---|
None |
Name | Description |
---|---|
None |
Headers
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 Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response body. Only supports application/json. |
Content-Type | Data format of the request body. Only supports application/json. |
Header | Description |
---|---|
Content-Type | Data format of the response body. Only supports application/json. |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
201 | Request successfully processed. |
400 | Bad Request. Could be any of the following reasons:
|
Response body parameters (JSON)
Example: cURL request
This example creates a product inventory for a voice over IP solution for a user.
Response body.
Product Inventory Open API - POST /sn_prd_invt/productinventory
Creates a product inventory.
URL format
Default URL: /api/sn_prd_invt/productinventory
Supported request parameters
Name | Description |
---|---|
None |
Name | Description |
---|---|
None |
Headers
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 Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response body. Only supports application/json. |
Content-Type | Data format of the request body. Only supports application/json. |
Header | Description |
---|---|
Content-Type | Data format of the response body. Only supports application/json. |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code | Description |
---|---|
201 | Request successfully processed. |
400 | Bad Request. Could be any of the following reasons:
|
Response body parameters (JSON)
Example: cURL request
This example creates a product inventory for a voice over IP solution for a user.
Response body.
On this page
- Product Inventory Open API - GET /sn_prd_invt/product
- Product Inventory Open API - GET /sn_prd_invt/product/{id}
- Product Inventory Open API - GET /sn_prd_invt/productinventory
- Product Inventory Open API - GET /sn_prd_invt/productinventory/{inventoryId}
- Product Inventory Open API - POST /sn_prd_invt/product
- Product Inventory Open API - POST /sn_prd_invt/productinventory