Sitecore API catalog/OrderCloud//
- Create or update a variant inventory record
List inventory records
Create an inventory record
Retrieve an inventory record
Create or update an inventory record
Delete an inventory record
Partially update an inventory record
Delete an inventory record assignment
List inventory record assignments
Create or update an inventory record assignment
Get a list of variant inventory records
Create a new variant inventory record
Get a single variant inventory record
Delete a variant inventory record
Partially update a variant inventory record
Delete an inventory record variant assignment
List inventory record variant assignments
Create or update an inventory record variant assignment
Create or update a varian...
Security
OAuth2(Required scopes: FullAccessProductAdmin)
AddressID is required because an inventory record represents a location where physical inventory for a given product exists.
Example:""
Allow inventory record to be used by all buyers without creating explicit assignments.
Default:true
Example:false
- Production sever for Ordercloudhttps://api.ordercloud.io/v1/products/{productID}/variants/{variantID}/inventoryrecords/{inventoryRecordID}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://api.ordercloud.io/v1/products/{productID}/variants/{variantID}/inventoryrecords/{inventoryRecordID}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"ID": "",
"OwnerID": "",
"AllowAllBuyers": false,
"Address": {
"ID": "",
"DateCreated": "2018-01-01T00:00:00-06:00",
"CompanyName": "",
"FirstName": "",
"LastName": "",
"Street1": "",
"Street2": "",
"City": "",
"State": "",
"Zip": "",
"Country": "",
"Phone": "",
"AddressName": "",
"xp": {}
},
"AddressID": "",
"OrderCanExceed": false,
"QuantityAvailable": 0,
"NotificationPoint": 0,
"LastUpdated": "2018-01-01T00:00:00-06:00",
"xp": {}
}'Allow inventory record to be used by all buyers without creating explicit assignments.
Default:true
Example:false
Example:
{ "ID": "", "DateCreated": "2018-01-01T00:00:00-06:00", "CompanyName": "", "FirstName": "", "LastName": "", "Street1": "", "Street2": "", "City": "", "State": "", "Zip": "", "Country": "", "Phone": "", "AddressName": "", "xp": {} }
AddressID is required because an inventory record represents a location where physical inventory for a given product exists.
Example:""
Response
{ "ID": "", "OwnerID": "", "AllowAllBuyers": false, "Address": { "ID": "", "DateCreated": "2018-01-01T00:00:00-06:00", "CompanyName": "", "FirstName": "", "LastName": "", "Street1": "", "Street2": "", "City": "", "State": "", "Zip": "", "Country": "", "Phone": "", "AddressName": "", "xp": {} }, "AddressID": "", "OrderCanExceed": false, "QuantityAvailable": 0, "NotificationPoint": 0, "LastUpdated": "2018-01-01T00:00:00-06:00", "xp": {} }