# Create a new variant inventory record

Endpoint: POST /products/{productID}/variants/{variantID}/inventoryrecords
Version: 1.0.445.36017
Security: OAuth2

## Path parameters:

  - `productID` (string, required)
    ID of the product.

  - `variantID` (string, required)
    ID of the variant.

## Request fields (application/json):

  - `AddressID` (string, required)
    AddressID is required because an inventory record represents a location where physical inventory for a given product exists.

  - `ID` (string)

  - `OwnerID` (string)

  - `AllowAllBuyers` (boolean)
    Allow inventory record to be used by all buyers without creating explicit assignments.

  - `OrderCanExceed` (boolean)

  - `QuantityAvailable` (integer)

  - `NotificationPoint` (integer)

  - `xp` (object)
    Example: {}

## Response 201 fields (application/json):

  - `ID` (string)

  - `OwnerID` (string)

  - `AllowAllBuyers` (boolean)
    Allow inventory record to be used by all buyers without creating explicit assignments.

  - `Address` (object)
    Example: {"ID":"","DateCreated":"2018-01-01T00:00:00-06:00","CompanyName":"","FirstName":"","LastName":"","Street1":"","Street2":"","City":"","State":"","Zip":"","Country":"","Phone":"","AddressName":"","xp":{}}

  - `Address.ID` (string)

  - `Address.DateCreated` (string)
    Example: "2018-01-01T00:00:00-06:00"

  - `Address.CompanyName` (string)

  - `Address.FirstName` (string)

  - `Address.LastName` (string)

  - `Address.Street1` (string)

  - `Address.Street2` (string)

  - `Address.City` (string)

  - `Address.State` (string)

  - `Address.Zip` (string)

  - `Address.Country` (string)

  - `Address.Phone` (string)

  - `Address.AddressName` (string)

  - `Address.xp` (object)
    Example: {}

  - `AddressID` (string)
    AddressID is required because an inventory record represents a location where physical inventory for a given product exists.

  - `OrderCanExceed` (boolean)

  - `QuantityAvailable` (integer)

  - `NotificationPoint` (integer)

  - `LastUpdated` (string)
    Example: "2018-01-01T00:00:00-06:00"

  - `xp` (object)
    Example: {}

## Response 4XX fields (application/json):

  - `StatusCode` (integer)
    Example: "404"

  - `ErrorCode` (string)
    Example: "NotFoundError"

  - `Message` (string)
    Example: "Object not found"

  - `Data` (object)
    Example: {"ObjectType":"","ObjectID":""}


