List inventory record variant assignments

Request

Security
OAuth2(Required scopes: FullAccessProductAdminProductReader)
Path
productIDstringrequired

ID of the product.

variantIDstringrequired

ID of the variant.

Query
buyerIDstring

ID of the buyer.

inventoryRecordIDstring

ID of the inventory record.

userGroupIDstring

ID of the user group.

levelstring

Level of the inventory record assignment. Possible values: Group, Company, BuyerGroup.

Enum:"Group""Company"
pageinteger

Page of results to return. When paginating through many items (> page 30), we recommend the "Last ID" method, as outlined in the Advanced Querying documentation.

pageSizeinteger

Number of results to return per page.

curl -i -X GET \
  'https://api.ordercloud.io/v1/products/{productID}/variants/{variantID}/inventoryrecords/assignments?buyerID=string&inventoryRecordID=string&userGroupID=string&level=Group&page=0&pageSize=0' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Bodyapplication/json
ItemsArray of objects(InventoryRecordAssignment)
Example:
[ { "InventoryRecordID": "", "BuyerID": "", "UserGroupID": "" } ]
Metaobject(Meta)
Response
{ "Items": [ { … } ], "Meta": { "Page": 0, "PageSize": 0, "TotalCount": 0, "TotalPages": 0, "ItemRange": [ … ], "NextPageKey": "string" } }