API - UpdateWarehouse

Overview

Endpoint URL https://www.yournetosite.com.au/do/WS/NetoAPI
Method POST
XML Headers
NETOAPI_ACTION UpdateWarehouse
NETOAPI_USERNAME API Username
NETOAPI_KEY Your Neto API Secure Key (generate this in your Neto control panel)
JSON Headers
NETOAPI_ACTION UpdateWarehouse
NETOAPI_USERNAME API Username
NETOAPI_KEY Your Neto API Secure Key (generate this in your Neto control panel)
Accept application/json
Description Use this call to add a new warehouse. You can store stock in multiple warehouses with Neto.
XSD Schema UpdateWarehouse XSD   |   UpdateWarehouse Response XSD

UpdateWarehouse Post

XML POST

<?xml version="1.0" encoding="utf-8"?>
<UpdateWarehouse>
  <Warehouse>
    <WarehouseID>(Integer)</WarehouseID>
    <WarehouseReference>(String)</WarehouseReference>
    <IsActive>(Boolean)</IsActive>
    <ShowQuantity>(Boolean)</ShowQuantity>
    <IsPrimary>(Boolean)</IsPrimary>
    <WarehouseName>(String)</WarehouseName>
    <WarehouseContact>(String)</WarehouseContact>
    <WarehousePhone>(String)</WarehousePhone>
    <WarehouseStreet1>(String)</WarehouseStreet1>
    <WarehouseStreet2>(String)</WarehouseStreet2>
    <WarehousePostcode>(String)</WarehousePostcode>
    <WarehouseCity>(String)</WarehouseCity>
    <WarehouseState>(String)</WarehouseState>
    <WarehouseCountry>(String)</WarehouseCountry>
    <WarehouseNotes>(String)</WarehouseNotes>
  </Warehouse>
</UpdateWarehouse>

JSON POST

{
  "Warehouse": [ {
    "WarehouseID":"Integer",
    "WarehouseReference":"String",
    "IsActive":"Boolean",
    "ShowQuantity":"Boolean",
    "IsPrimary":"Boolean",
    "WarehouseName":"String",
    "WarehouseContact":"String",
    "WarehousePhone":"String",
    "WarehouseStreet1":"String",
    "WarehouseStreet2":"String",
    "WarehousePostcode":"String",
    "WarehouseCity":"String",
    "WarehouseState":"String",
    "WarehouseCountry":"String",
    "WarehouseNotes":"String"
  } ]
}

<Warehouse>

Element Name Required Field Type / Options
WarehouseID Required Integer
WarehouseReference Optional String(10)
IsActive Optional Boolean(True, False)
ShowQuantity Optional Boolean(True, False)
IsPrimary Required Boolean(True, False)
WarehouseName Optional String(30)
WarehouseContact Optional String(25)
WarehousePhone Optional String(30)
WarehouseStreet1 Optional String(50)
WarehouseStreet2 Optional String(50)
WarehousePostcode Optional String(15)
WarehouseCity Optional String(50)
WarehouseState Optional String(50)
WarehouseCountry Optional String(50)
WarehouseNotes Optional String(255)

UpdateWarehouse Responses

XML Response

<?xml version="1.0" encoding="utf-8"?>
<UpdateWarehouse>
  <Warehouse>
    <WarehouseID>(Integer)</WarehouseID>
  </Warehouse>  <Messages>
    <Error>
      <Message>(String)</Message>
      <SeverityCode>(String)</SeverityCode>
      <Description>(String)</Description>
    </Error>
    <Warning>
      <Message>(String)</Message>
      <SeverityCode>(String)</SeverityCode>
    </Warning>
  </Messages>
</UpdateWarehouse>

JSON Response

{
  "Warehouse": [ {
    "WarehouseID":"Integer"
  } ],  "Messages": {
    "Error": [ {
      "Message":"String",
      "SeverityCode":"String",
      "Description":"String"
    } ],
    "Warning": [ {
      "Message":"String",
      "SeverityCode":"String"
    } ]
  } 
}

<Warehouse>

Element Name Field Type
WarehouseID Integer

<Messages>

Element Name Field Type
Error ErrorType
Warning WarningType

<Error>

Element Name Field Type
Message String
SeverityCode String
Description String

<Warning>

Element Name Field Type
Message String
SeverityCode String