POST api/Shopify/InventoryUpdate
API to post shopify order
Request Information
URI Parameters
None.
Body Parameters
ShopifyBulkInventoryLevelUpdateRequestModelName | Description | Type | Additional information |
---|---|---|---|
ShopifyLocationID | integer |
None. |
|
Items | Collection of InventoryItem |
None. |
Request Formats
application/json, text/json, text/plain, text/html
Sample:
{ "shopifyLocationID": 1, "items": [ { "shopifyInventoryItemID": 1, "quantity": 2 }, { "shopifyInventoryItemID": 1, "quantity": 2 } ] }
application/xml, text/xml
Sample:
<ShopifyBulkInventoryLevelUpdateRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.RequestModel"> <Items> <InventoryItem> <Quantity>2</Quantity> <ShopifyInventoryItemID>1</ShopifyInventoryItemID> </InventoryItem> <InventoryItem> <Quantity>2</Quantity> <ShopifyInventoryItemID>1</ShopifyInventoryItemID> </InventoryItem> </Items> <ShopifyLocationID>1</ShopifyLocationID> </ShopifyBulkInventoryLevelUpdateRequestModel>
multipart/form-data
Sample:
<ShopifyBulkInventoryLevelUpdateRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.RequestModel"><Items><InventoryItem><Quantity>2</Quantity><ShopifyInventoryItemID>1</ShopifyInventoryItemID></InventoryItem><InventoryItem><Quantity>2</Quantity><ShopifyInventoryItemID>1</ShopifyInventoryItemID></InventoryItem></Items><ShopifyLocationID>1</ShopifyLocationID></ShopifyBulkInventoryLevelUpdateRequestModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CommonResponseDataModelName | Description | Type | Additional information |
---|---|---|---|
ReturnID | integer |
Required |
|
Message | string |
Required |
|
Successful | boolean |
Required |
|
Code | integer |
None. |
|
TotalRecord | integer |
None. |
Response Formats
application/json, text/json, text/plain, text/html
Sample:
{ "returnID": 1, "message": "sample string 2", "successful": true, "code": 4, "totalRecord": 5 }
application/xml, text/xml
Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel"> <Code>4</Code> <Message>sample string 2</Message> <ReturnID>1</ReturnID> <Successful>true</Successful> <TotalRecord>5</TotalRecord> </CommonResponseDataModel>
multipart/form-data
Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel"><Code>4</Code><Message>sample string 2</Message><ReturnID>1</ReturnID><Successful>true</Successful><TotalRecord>5</TotalRecord></CommonResponseDataModel>