Add Bin Transfer
Use this operation to transfer stock from one Bin to another.
Parameters
Body Params | |
---|---|
JSON: | json Bin Transfer details needs to be passed as body parameter,it should be in JSON format. |
XML: | string Bin Transfer details needs to be passed as body parameter,it should be in XML format. |
Path Params | |
---|---|
yourCompany: | string The Company name need to passed in the base URL.For eg. if you enter xyzcompany name, the url https://{yourCompany}.agiliron.net/agiliron/api-40.php/BinTransfer will change to https://xyzcompany.agiliron.net/agiliron/api-40.php/BinTransfer |
Header Params | |
---|---|
Accept: | string Response header need to be passed for eg. application/json or application/xml. |
Query Auth | |
---|---|
key: | string API key needs to be passed in this variable.The option to enter API key will appear when you click on Try it button.This will be the first option in AUTHENTICATION block.Default is SET to 0. |
Header Auth | |
---|---|
apiKey: | string Dedicated API key needs to be passed in this variable via header.The option to enter API key will appear when you click on Try it button.This will be the second option in AUTHENTICATION block.Default is SET to 0. |
Sample Code
{
"BinTransfers": {
"BinTransfer": [{
"ProductCode": "040820230 1",
"MatrixSKUCode": "",
"StockLocation": "OAK",
"FromBinLocation": "BinLocation-A",
"ToBinLocation": "BinLocation-B",
"Quantity": "1"
},
{
"ProductCode": "040820230 2",
"MatrixSKUCode": "",
"StockLocation": "OAK",
"FromBinLocation": "BinLocation-C",
"ToBinLocation": "BinLocation-D",
"Quantity": "1"
}]
}
}
<BinTransfers>
<BinTransfer>
<ProductCode>040820230 1</ProductCode>
<MatrixSKUCode></MatrixSKUCode>
<StockLocation>OAK</StockLocation>
<FromBinLocation>BinLocation-A</FromBinLocation>
<ToBinLocation>BinLocation-B</ToBinLocation>
<Quantity>1</Quantity>
</BinTransfer>
<BinTransfer>
<ProductCode>040820230 2</ProductCode>
<MatrixSKUCode></MatrixSKUCode>
<StockLocation>OAK</StockLocation>
<FromBinLocation>BinLocation-C</FromBinLocation>
<ToBinLocation>BinLocation-D</ToBinLocation>
<Quantity>1</Quantity>
</BinTransfer>
</BinTransfers>
Sample Response
{
"MCM": {
"response": {
"objectType": "Products",
"syncTime": "2024-08-28 09:47:40"
},
"parameters": {
"results": {
"message": {
"success_message": {
"bintransfer": [
{
"from_bin": "BinLocation-A",
"to_bin": "BinLocation-B"
},
{
"from_bin": "BinLocation-C",
"to_bin": "BinLocation-D"
}
]
},
"error_message": null
}
}
}
}
}
<MCM>
<response>
<objectType>Products</objectType>
<syncTime>2024-08-28 09:47:40</syncTime>
</response>
<parameters>
<results>
<message>
<success_message>
<bintransfer>
<from_bin>BinLocation-A</from_bin>
<to_bin>BinLocation-B</to_bin>
</bintransfer>
<bintransfer>
<from_bin>BinLocation-C</from_bin>
<to_bin>BinLocation-D</to_bin>
</bintransfer>
</success_message>
<error_message />
</message>
</results>
</parameters>
</MCM>
WADL
<?xml version="1.0" encoding="utf-8"?>
<application>
<resources base="https://{yourCompany}.agiliron.net/agiliron/api-40/">
<resource path="BinTransfer">
<method name="POST">
<request>
<param name="key" type="xsd:string" style="query" required="true"/>
<param name="ProductCode" type="xsd:string" style="query" required="true"/>
<param name="MatrixSKUCode" type="xsd:string" style="query">
<param name="StockLocation" type="xsd:sting" style="query" required="true"/>
<param name="FromBinLocation" type="xsd:string" style="query" required="true"/>
<param name="ToBinLocation" type="xsd:string" style="query" required="true"/>
<param name="Quantity" type="xsd:int" style="query" required="true"/>
</request>
<response status="200">
<representation mediaType="application/xml" element="yn:ResultSet"/>
</response>
<response status="400">
<representation mediaType="application/xml" element="ya:Error"/>
</response>
</method>
</resource>
</resources>
</application>
Updated 2 months ago