PublicAPIService


Click here for a complete list of operations.

addVendor

This function will add a Vendor with the data supplied. The result data from this function will be in the same format as the input parameters and contain the new VendorID.

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /PublicAPIService.asmx HTTP/1.1
Host: langcompany.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://digitalgateway.com/WebServices/PublicAPIService/addVendor"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <addVendor xmlns="http://digitalgateway.com/WebServices/PublicAPIService">
      <Auth>
        <User>string</User>
        <Password>string</Password>
        <CompanyID>string</CompanyID>
        <Version>string</Version>
        <PartnerToken>string</PartnerToken>
      </Auth>
      <Vendor>
        <VendorNumber>
          <ID>
            <Value>int</Value>
            <Valid>boolean</Valid>
          </ID>
          <Code>
            <Value>string</Value>
            <Valid>boolean</Valid>
          </Code>
        </VendorNumber>
        <Name>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Name>
        <Address>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Address>
        <City>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </City>
        <State>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </State>
        <Zip>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Zip>
        <Country>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Country>
        <Contact>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Contact>
        <Phone>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Phone>
        <Fax>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Fax>
        <Email>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Email>
        <WebSite>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </WebSite>
        <PurchaseContact>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </PurchaseContact>
        <PurchasePhone>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </PurchasePhone>
        <PurchaseFax>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </PurchaseFax>
        <Active>
          <Value>boolean</Value>
          <Valid>boolean</Valid>
        </Active>
        <Term>
          <ID>
            <Value>int</Value>
            <Valid>boolean</Valid>
          </ID>
          <Code>
            <Value>string</Value>
            <Valid>boolean</Valid>
          </Code>
        </Term>
        <ShipMethod>
          <ID>
            <Value>int</Value>
            <Valid>boolean</Valid>
          </ID>
          <Code>
            <Value>string</Value>
            <Valid>boolean</Valid>
          </Code>
        </ShipMethod>
        <EIN>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </EIN>
        <VendorAccountNumber>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </VendorAccountNumber>
        <CreditLimit>
          <Value>decimal</Value>
          <Valid>boolean</Valid>
        </CreditLimit>
        <Do1099>
          <Value>boolean</Value>
          <Valid>boolean</Valid>
        </Do1099>
        <Hold>
          <Value>boolean</Value>
          <Valid>boolean</Valid>
        </Hold>
        <OnHoldCode>
          <ID>
            <Value>int</Value>
            <Valid>boolean</Valid>
          </ID>
          <Code>
            <Value>string</Value>
            <Valid>boolean</Valid>
          </Code>
        </OnHoldCode>
        <Remarks>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Remarks>
        <VendorOrderTo>
          <VendorOrderTo>
            <Address xsi:nil="true" />
            <City xsi:nil="true" />
            <State xsi:nil="true" />
            <Zip xsi:nil="true" />
            <Country xsi:nil="true" />
            <Contact xsi:nil="true" />
            <Phone xsi:nil="true" />
            <Fax xsi:nil="true" />
            <Email xsi:nil="true" />
            <WebSite xsi:nil="true" />
            <Preferred xsi:nil="true" />
          </VendorOrderTo>
          <VendorOrderTo>
            <Address xsi:nil="true" />
            <City xsi:nil="true" />
            <State xsi:nil="true" />
            <Zip xsi:nil="true" />
            <Country xsi:nil="true" />
            <Contact xsi:nil="true" />
            <Phone xsi:nil="true" />
            <Fax xsi:nil="true" />
            <Email xsi:nil="true" />
            <WebSite xsi:nil="true" />
            <Preferred xsi:nil="true" />
          </VendorOrderTo>
        </VendorOrderTo>
        <CustomProperties>
          <CustomProperty>
            <ID>int</ID>
            <Name>string</Name>
            <Value>string</Value>
            <IDVal>int</IDVal>
          </CustomProperty>
          <CustomProperty>
            <ID>int</ID>
            <Name>string</Name>
            <Value>string</Value>
            <IDVal>int</IDVal>
          </CustomProperty>
        </CustomProperties>
      </Vendor>
    </addVendor>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <addVendorResponse xmlns="http://digitalgateway.com/WebServices/PublicAPIService">
      <addVendorResult>
        <VendorNumber>
          <ID>
            <Value>int</Value>
            <Valid>boolean</Valid>
          </ID>
          <Code>
            <Value>string</Value>
            <Valid>boolean</Valid>
          </Code>
        </VendorNumber>
        <Name>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Name>
        <Address>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Address>
        <City>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </City>
        <State>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </State>
        <Zip>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Zip>
        <Country>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Country>
        <Contact>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Contact>
        <Phone>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Phone>
        <Fax>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Fax>
        <Email>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Email>
        <WebSite>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </WebSite>
        <PurchaseContact>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </PurchaseContact>
        <PurchasePhone>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </PurchasePhone>
        <PurchaseFax>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </PurchaseFax>
        <Active>
          <Value>boolean</Value>
          <Valid>boolean</Valid>
        </Active>
        <Term>
          <ID>
            <Value>int</Value>
            <Valid>boolean</Valid>
          </ID>
          <Code>
            <Value>string</Value>
            <Valid>boolean</Valid>
          </Code>
        </Term>
        <ShipMethod>
          <ID>
            <Value>int</Value>
            <Valid>boolean</Valid>
          </ID>
          <Code>
            <Value>string</Value>
            <Valid>boolean</Valid>
          </Code>
        </ShipMethod>
        <EIN>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </EIN>
        <VendorAccountNumber>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </VendorAccountNumber>
        <CreditLimit>
          <Value>decimal</Value>
          <Valid>boolean</Valid>
        </CreditLimit>
        <Do1099>
          <Value>boolean</Value>
          <Valid>boolean</Valid>
        </Do1099>
        <Hold>
          <Value>boolean</Value>
          <Valid>boolean</Valid>
        </Hold>
        <OnHoldCode>
          <ID>
            <Value>int</Value>
            <Valid>boolean</Valid>
          </ID>
          <Code>
            <Value>string</Value>
            <Valid>boolean</Valid>
          </Code>
        </OnHoldCode>
        <Remarks>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Remarks>
        <VendorOrderTo>
          <VendorOrderTo>
            <Address xsi:nil="true" />
            <City xsi:nil="true" />
            <State xsi:nil="true" />
            <Zip xsi:nil="true" />
            <Country xsi:nil="true" />
            <Contact xsi:nil="true" />
            <Phone xsi:nil="true" />
            <Fax xsi:nil="true" />
            <Email xsi:nil="true" />
            <WebSite xsi:nil="true" />
            <Preferred xsi:nil="true" />
          </VendorOrderTo>
          <VendorOrderTo>
            <Address xsi:nil="true" />
            <City xsi:nil="true" />
            <State xsi:nil="true" />
            <Zip xsi:nil="true" />
            <Country xsi:nil="true" />
            <Contact xsi:nil="true" />
            <Phone xsi:nil="true" />
            <Fax xsi:nil="true" />
            <Email xsi:nil="true" />
            <WebSite xsi:nil="true" />
            <Preferred xsi:nil="true" />
          </VendorOrderTo>
        </VendorOrderTo>
        <CustomProperties>
          <CustomProperty>
            <ID>int</ID>
            <Name>string</Name>
            <Value>string</Value>
            <IDVal>int</IDVal>
          </CustomProperty>
          <CustomProperty>
            <ID>int</ID>
            <Name>string</Name>
            <Value>string</Value>
            <IDVal>int</IDVal>
          </CustomProperty>
        </CustomProperties>
      </addVendorResult>
    </addVendorResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /PublicAPIService.asmx HTTP/1.1
Host: langcompany.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <addVendor xmlns="http://digitalgateway.com/WebServices/PublicAPIService">
      <Auth>
        <User>string</User>
        <Password>string</Password>
        <CompanyID>string</CompanyID>
        <Version>string</Version>
        <PartnerToken>string</PartnerToken>
      </Auth>
      <Vendor>
        <VendorNumber>
          <ID>
            <Value>int</Value>
            <Valid>boolean</Valid>
          </ID>
          <Code>
            <Value>string</Value>
            <Valid>boolean</Valid>
          </Code>
        </VendorNumber>
        <Name>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Name>
        <Address>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Address>
        <City>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </City>
        <State>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </State>
        <Zip>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Zip>
        <Country>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Country>
        <Contact>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Contact>
        <Phone>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Phone>
        <Fax>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Fax>
        <Email>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Email>
        <WebSite>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </WebSite>
        <PurchaseContact>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </PurchaseContact>
        <PurchasePhone>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </PurchasePhone>
        <PurchaseFax>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </PurchaseFax>
        <Active>
          <Value>boolean</Value>
          <Valid>boolean</Valid>
        </Active>
        <Term>
          <ID>
            <Value>int</Value>
            <Valid>boolean</Valid>
          </ID>
          <Code>
            <Value>string</Value>
            <Valid>boolean</Valid>
          </Code>
        </Term>
        <ShipMethod>
          <ID>
            <Value>int</Value>
            <Valid>boolean</Valid>
          </ID>
          <Code>
            <Value>string</Value>
            <Valid>boolean</Valid>
          </Code>
        </ShipMethod>
        <EIN>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </EIN>
        <VendorAccountNumber>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </VendorAccountNumber>
        <CreditLimit>
          <Value>decimal</Value>
          <Valid>boolean</Valid>
        </CreditLimit>
        <Do1099>
          <Value>boolean</Value>
          <Valid>boolean</Valid>
        </Do1099>
        <Hold>
          <Value>boolean</Value>
          <Valid>boolean</Valid>
        </Hold>
        <OnHoldCode>
          <ID>
            <Value>int</Value>
            <Valid>boolean</Valid>
          </ID>
          <Code>
            <Value>string</Value>
            <Valid>boolean</Valid>
          </Code>
        </OnHoldCode>
        <Remarks>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Remarks>
        <VendorOrderTo>
          <VendorOrderTo>
            <Address xsi:nil="true" />
            <City xsi:nil="true" />
            <State xsi:nil="true" />
            <Zip xsi:nil="true" />
            <Country xsi:nil="true" />
            <Contact xsi:nil="true" />
            <Phone xsi:nil="true" />
            <Fax xsi:nil="true" />
            <Email xsi:nil="true" />
            <WebSite xsi:nil="true" />
            <Preferred xsi:nil="true" />
          </VendorOrderTo>
          <VendorOrderTo>
            <Address xsi:nil="true" />
            <City xsi:nil="true" />
            <State xsi:nil="true" />
            <Zip xsi:nil="true" />
            <Country xsi:nil="true" />
            <Contact xsi:nil="true" />
            <Phone xsi:nil="true" />
            <Fax xsi:nil="true" />
            <Email xsi:nil="true" />
            <WebSite xsi:nil="true" />
            <Preferred xsi:nil="true" />
          </VendorOrderTo>
        </VendorOrderTo>
        <CustomProperties>
          <CustomProperty>
            <ID>int</ID>
            <Name>string</Name>
            <Value>string</Value>
            <IDVal>int</IDVal>
          </CustomProperty>
          <CustomProperty>
            <ID>int</ID>
            <Name>string</Name>
            <Value>string</Value>
            <IDVal>int</IDVal>
          </CustomProperty>
        </CustomProperties>
      </Vendor>
    </addVendor>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <addVendorResponse xmlns="http://digitalgateway.com/WebServices/PublicAPIService">
      <addVendorResult>
        <VendorNumber>
          <ID>
            <Value>int</Value>
            <Valid>boolean</Valid>
          </ID>
          <Code>
            <Value>string</Value>
            <Valid>boolean</Valid>
          </Code>
        </VendorNumber>
        <Name>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Name>
        <Address>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Address>
        <City>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </City>
        <State>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </State>
        <Zip>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Zip>
        <Country>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Country>
        <Contact>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Contact>
        <Phone>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Phone>
        <Fax>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Fax>
        <Email>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Email>
        <WebSite>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </WebSite>
        <PurchaseContact>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </PurchaseContact>
        <PurchasePhone>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </PurchasePhone>
        <PurchaseFax>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </PurchaseFax>
        <Active>
          <Value>boolean</Value>
          <Valid>boolean</Valid>
        </Active>
        <Term>
          <ID>
            <Value>int</Value>
            <Valid>boolean</Valid>
          </ID>
          <Code>
            <Value>string</Value>
            <Valid>boolean</Valid>
          </Code>
        </Term>
        <ShipMethod>
          <ID>
            <Value>int</Value>
            <Valid>boolean</Valid>
          </ID>
          <Code>
            <Value>string</Value>
            <Valid>boolean</Valid>
          </Code>
        </ShipMethod>
        <EIN>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </EIN>
        <VendorAccountNumber>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </VendorAccountNumber>
        <CreditLimit>
          <Value>decimal</Value>
          <Valid>boolean</Valid>
        </CreditLimit>
        <Do1099>
          <Value>boolean</Value>
          <Valid>boolean</Valid>
        </Do1099>
        <Hold>
          <Value>boolean</Value>
          <Valid>boolean</Valid>
        </Hold>
        <OnHoldCode>
          <ID>
            <Value>int</Value>
            <Valid>boolean</Valid>
          </ID>
          <Code>
            <Value>string</Value>
            <Valid>boolean</Valid>
          </Code>
        </OnHoldCode>
        <Remarks>
          <Value>string</Value>
          <Valid>boolean</Valid>
        </Remarks>
        <VendorOrderTo>
          <VendorOrderTo>
            <Address xsi:nil="true" />
            <City xsi:nil="true" />
            <State xsi:nil="true" />
            <Zip xsi:nil="true" />
            <Country xsi:nil="true" />
            <Contact xsi:nil="true" />
            <Phone xsi:nil="true" />
            <Fax xsi:nil="true" />
            <Email xsi:nil="true" />
            <WebSite xsi:nil="true" />
            <Preferred xsi:nil="true" />
          </VendorOrderTo>
          <VendorOrderTo>
            <Address xsi:nil="true" />
            <City xsi:nil="true" />
            <State xsi:nil="true" />
            <Zip xsi:nil="true" />
            <Country xsi:nil="true" />
            <Contact xsi:nil="true" />
            <Phone xsi:nil="true" />
            <Fax xsi:nil="true" />
            <Email xsi:nil="true" />
            <WebSite xsi:nil="true" />
            <Preferred xsi:nil="true" />
          </VendorOrderTo>
        </VendorOrderTo>
        <CustomProperties>
          <CustomProperty>
            <ID>int</ID>
            <Name>string</Name>
            <Value>string</Value>
            <IDVal>int</IDVal>
          </CustomProperty>
          <CustomProperty>
            <ID>int</ID>
            <Name>string</Name>
            <Value>string</Value>
            <IDVal>int</IDVal>
          </CustomProperty>
        </CustomProperties>
      </addVendorResult>
    </addVendorResponse>
  </soap12:Body>
</soap12:Envelope>