Partially update a variant inventory record

Request

Security
OAuth2(Required scopes: FullAccessProductAdmin)
Path
productIDstringrequired

ID of the product.

variantIDstringrequired

ID of the variant.

inventoryRecordIDstringrequired

ID of the inventory record.

Bodyapplication/jsonrequired
IDstring, <= 100 characters
Example:""
OwnerIDstring
Example:""
AllowAllBuyersboolean

Allow inventory record to be used by all buyers without creating explicit assignments.

Default:true
Example:false
AddressIDstring

AddressID is required because an inventory record represents a location where physical inventory for a given product exists.

Example:""
OrderCanExceedboolean
Example:false
QuantityAvailableinteger, (int32)
Example:0
NotificationPointinteger, (int32)
Example:0
xpobject
Example:
{}
curl -i -X PATCH \
  '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": {}
  }'

Responses

Bodyapplication/json
IDstring, <= 100 characters
Example:""
OwnerIDstring
Example:""
AllowAllBuyersboolean

Allow inventory record to be used by all buyers without creating explicit assignments.

Default:true
Example:false
Addressobject(Address)read-only
Example:
{ "ID": "", "DateCreated": "2018-01-01T00:00:00-06:00", "CompanyName": "", "FirstName": "", "LastName": "", "Street1": "", "Street2": "", "City": "", "State": "", "Zip": "", "Country": "", "Phone": "", "AddressName": "", "xp": {} }
AddressIDstring

AddressID is required because an inventory record represents a location where physical inventory for a given product exists.

Example:""
OrderCanExceedboolean
Example:false
QuantityAvailableinteger, (int32)
Example:0
NotificationPointinteger, (int32)
Example:0
LastUpdatedstring, (date-time)read-only
Example:"2018-01-01T00:00:00-06:00"
xpobject
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": {} }