API Operations
Description:
The API creates a new vendor or edits an existing vendor in the system. A vendor is a supplier/seller of goods & services available to the users.
API:
<soapenv:Envelope xmlns:ser=”http://uniware.unicommerce.com/services/” xmlns:soapenv=”http://schemas.xmlsoap.org/soap/envelope/”> <soapenv:Header> <wsse:Security soapenv:mustUnderstand=”1″ xmlns:wsse=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd” xmlns:wsu=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd”> <wsse:UsernameToken wsu:Id=”UsernameToken-4″> <wsse:Username>Sandbox</wsse:Username> <wsse:Password Type=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText”>91561781f43921dd2803fa63a7ee5519</wsse:Password> <wsse:Nonce EncodingType=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary”>tTuQTRs2AYr4+oK6BOz0RA==</wsse:Nonce> <wsu:Created>2014-05-07T06:52:53.838Z</wsu:Created> </wsse:UsernameToken> </wsse:Security> </soapenv:Header> <soapenv:Body> <ser:CreateOrEditVendorRequest> <ser:VendorCode>?</ser:VendorCode> <ser:Name>?</ser:Name> <!–Optional:–> <ser:PAN>?</ser:PAN> <!–Optional:–> <ser:TIN>?</ser:TIN> <!–Optional:–> <ser:CSTNumber>?</ser:CSTNumber> <!–Optional:–> <ser:STNumber>?</ser:STNumber> <!–Optional:–> <ser:Website>?</ser:Website> <!–Optional:–> <ser:PurchaseExpiryPeriod>?</ser:PurchaseExpiryPeriod> <!–Optional:–> <ser:AcceptsCForm>?</ser:AcceptsCForm> <!–Optional:–> <ser:RegisteredDealer>?</ser:RegisteredDealer> </ser:CreateOrEditVendorRequest> </soapenv:Body> </soapenv:Envelope>
|
API parameters:
The facility code must be set in the API URL.
Request:
<soapenv:Envelope xmlns:ser=”http://uniware.unicommerce.com/services/” xmlns:soapenv=”http://schemas.xmlsoap.org/soap/envelope/”> <soapenv:Header> <wsse:Security soapenv:mustUnderstand=”1″ xmlns:wsse=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd” xmlns:wsu=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd”> <wsse:UsernameToken wsu:Id=”UsernameToken-5″> <wsse:Username>ashish1</wsse:Username> <wsse:Password Type=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText”>e13cc8cd-17c8-4798-bb7b-2d1335ad92d6</wsse:Password> <wsse:Nonce EncodingType=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary”>ajnCS5RzPG5m5iicKfvWMA==</wsse:Nonce> <wsu:Created>2014-05-07T07:06:18.295Z</wsu:Created> </wsse:UsernameToken> </wsse:Security> </soapenv:Header> <soapenv:Body> <ser:CreateOrEditVendorRequest> <ser:VendorCode>sss</ser:VendorCode> <ser:Name>Vendor1</ser:Name> </ser:CreateOrEditVendorRequest> </soapenv:Body> </soapenv:Envelope>
|
Response:
<SOAP-ENV:Envelope xmlns:SOAP-ENV=”http://schemas.xmlsoap.org/soap/envelope/”> <SOAP-ENV:Header/> <SOAP-ENV:Body> <CreateOrEditVendorResponse xmlns=”http://uniware.unicommerce.com/services/”> <Successful>true</Successful> </CreateOrEditVendorResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
|
Error Codes:
With the tag <Successful>false</Successful>, the system throws an error. The error codes are as defined below:
Next API: Create Or Edit Item Type