SaleProcess
Click here for a complete list of operations.
CreateAccount
[#40] [AGENCIA] Crea una agencia automatica
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 /WS/SaleProcess.asmx HTTP/1.1 Host: api.sistemacoris.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://tempuri.org/CreateAccount" <?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> <CreateAccount xmlns="http://tempuri.org/"> <tokenSession>string</tokenSession> <account> <Id>int</Id> <Name>string</Name> <FiscalNumber>string</FiscalNumber> <FiscalName>string</FiscalName> <FiscalDocumentTypeId>int</FiscalDocumentTypeId> <Description>string</Description> <Address>string</Address> <FloorApartment>string</FloorApartment> <Phone>string</Phone> <Web>string</Web> <Logo>string</Logo> <LogoAbsoluteUrl>string</LogoAbsoluteUrl> <Mail>string</Mail> <AdministrationMail>string</AdministrationMail> <CancellationsMail>string</CancellationsMail> <CollectionsMail>string</CollectionsMail> <SalesMail>string</SalesMail> <Type> <Id>int</Id> <Name>string</Name> </Type> <Country> <Id>int</Id> <Name>string</Name> <IsoCode>string</IsoCode> <IsoCode2>string</IsoCode2> <IsoCode3>string</IsoCode3> <ContinentId>int</ContinentId> <CurrencyId>int</CurrencyId> </Country> <State> <Id>int</Id> <Name>string</Name> <CountryId>int</CountryId> </State> <City> <Id>int</Id> <Name>string</Name> <StateId>int</StateId> </City> <ZoneId>int</ZoneId> <IdBaseAccount>int</IdBaseAccount> <CurrencyId>int</CurrencyId> <Contacts> <AccountContact> <Id>int</Id> <ContactTypeId>int</ContactTypeId> <Name>string</Name> <Description>string</Description> <Skype>string</Skype> <CssIcon>string</CssIcon> <PersonalMail>string</PersonalMail> <PersonalPhone>string</PersonalPhone> <PersonalCellPhone>string</PersonalCellPhone> <WorkMail>string</WorkMail> <WorkPhone>string</WorkPhone> <WorkCellPhone>string</WorkCellPhone> </AccountContact> <AccountContact> <Id>int</Id> <ContactTypeId>int</ContactTypeId> <Name>string</Name> <Description>string</Description> <Skype>string</Skype> <CssIcon>string</CssIcon> <PersonalMail>string</PersonalMail> <PersonalPhone>string</PersonalPhone> <PersonalCellPhone>string</PersonalCellPhone> <WorkMail>string</WorkMail> <WorkPhone>string</WorkPhone> <WorkCellPhone>string</WorkCellPhone> </AccountContact> </Contacts> <SiigoBiller>boolean</SiigoBiller> <FinalConsumer>boolean</FinalConsumer> <InvoiceToThirdParties>boolean</InvoiceToThirdParties> <CanBuy>boolean</CanBuy> </account> <user> <Id>int</Id> <FirstName>string</FirstName> <LastName>string</LastName> <Mail>string</Mail> <Adress>string</Adress> <Phone>string</Phone> <CellPhone>string</CellPhone> <UserName>string</UserName> <Password>string</Password> <Image>string</Image> <idcultura>string</idcultura> <UsaTicket>boolean</UsaTicket> <IdPais>int</IdPais> <IsGlobalUser>boolean</IsGlobalUser> <Permissions> <Permission> <name>string</name> <page>string</page> <control>string</control> </Permission> <Permission> <name>string</name> <page>string</page> <control>string</control> </Permission> </Permissions> <Roles> <Role> <Id>int</Id> <Name>string</Name> <TypeId>int</TypeId> </Role> <Role> <Id>int</Id> <Name>string</Name> <TypeId>int</TypeId> </Role> </Roles> <IdPerfilTipoActual>int</IdPerfilTipoActual> <IdPerfilActual>int</IdPerfilActual> <PerfilTipoActual_EsAdministrador>boolean</PerfilTipoActual_EsAdministrador> <PerfilTipoActual_EsAdministradorAuxiliar>boolean</PerfilTipoActual_EsAdministradorAuxiliar> <PerfilTipoActual_EsAdministrativoContable>boolean</PerfilTipoActual_EsAdministrativoContable> <PerfilTipoActual_EsEjecutivoECommerce>boolean</PerfilTipoActual_EsEjecutivoECommerce> <PerfilTipoActual_EsEjecutivoComercial>boolean</PerfilTipoActual_EsEjecutivoComercial> <PerfilTipoActual_EsImplant>boolean</PerfilTipoActual_EsImplant> <PerfilTipoActual_EsEjecutivoHelpDesk>boolean</PerfilTipoActual_EsEjecutivoHelpDesk> <PerfilTipoActual_EsVendedorAgencia>boolean</PerfilTipoActual_EsVendedorAgencia> <EsAdministradorCuentaBase>boolean</EsAdministradorCuentaBase> <EsAdministradorRoot>boolean</EsAdministradorRoot> <RelatedUsers> <RelatedUser> <Id>int</Id> <FirstName>string</FirstName> <LastName>string</LastName> <UserName>string</UserName> </RelatedUser> <RelatedUser> <Id>int</Id> <FirstName>string</FirstName> <LastName>string</LastName> <UserName>string</UserName> </RelatedUser> </RelatedUsers> </user> </CreateAccount> </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> <CreateAccountResponse xmlns="http://tempuri.org/"> <CreateAccountResult> <Success>boolean</Success> <Message>string</Message> </CreateAccountResult> </CreateAccountResponse> </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 /WS/SaleProcess.asmx HTTP/1.1 Host: api.sistemacoris.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> <CreateAccount xmlns="http://tempuri.org/"> <tokenSession>string</tokenSession> <account> <Id>int</Id> <Name>string</Name> <FiscalNumber>string</FiscalNumber> <FiscalName>string</FiscalName> <FiscalDocumentTypeId>int</FiscalDocumentTypeId> <Description>string</Description> <Address>string</Address> <FloorApartment>string</FloorApartment> <Phone>string</Phone> <Web>string</Web> <Logo>string</Logo> <LogoAbsoluteUrl>string</LogoAbsoluteUrl> <Mail>string</Mail> <AdministrationMail>string</AdministrationMail> <CancellationsMail>string</CancellationsMail> <CollectionsMail>string</CollectionsMail> <SalesMail>string</SalesMail> <Type> <Id>int</Id> <Name>string</Name> </Type> <Country> <Id>int</Id> <Name>string</Name> <IsoCode>string</IsoCode> <IsoCode2>string</IsoCode2> <IsoCode3>string</IsoCode3> <ContinentId>int</ContinentId> <CurrencyId>int</CurrencyId> </Country> <State> <Id>int</Id> <Name>string</Name> <CountryId>int</CountryId> </State> <City> <Id>int</Id> <Name>string</Name> <StateId>int</StateId> </City> <ZoneId>int</ZoneId> <IdBaseAccount>int</IdBaseAccount> <CurrencyId>int</CurrencyId> <Contacts> <AccountContact> <Id>int</Id> <ContactTypeId>int</ContactTypeId> <Name>string</Name> <Description>string</Description> <Skype>string</Skype> <CssIcon>string</CssIcon> <PersonalMail>string</PersonalMail> <PersonalPhone>string</PersonalPhone> <PersonalCellPhone>string</PersonalCellPhone> <WorkMail>string</WorkMail> <WorkPhone>string</WorkPhone> <WorkCellPhone>string</WorkCellPhone> </AccountContact> <AccountContact> <Id>int</Id> <ContactTypeId>int</ContactTypeId> <Name>string</Name> <Description>string</Description> <Skype>string</Skype> <CssIcon>string</CssIcon> <PersonalMail>string</PersonalMail> <PersonalPhone>string</PersonalPhone> <PersonalCellPhone>string</PersonalCellPhone> <WorkMail>string</WorkMail> <WorkPhone>string</WorkPhone> <WorkCellPhone>string</WorkCellPhone> </AccountContact> </Contacts> <SiigoBiller>boolean</SiigoBiller> <FinalConsumer>boolean</FinalConsumer> <InvoiceToThirdParties>boolean</InvoiceToThirdParties> <CanBuy>boolean</CanBuy> </account> <user> <Id>int</Id> <FirstName>string</FirstName> <LastName>string</LastName> <Mail>string</Mail> <Adress>string</Adress> <Phone>string</Phone> <CellPhone>string</CellPhone> <UserName>string</UserName> <Password>string</Password> <Image>string</Image> <idcultura>string</idcultura> <UsaTicket>boolean</UsaTicket> <IdPais>int</IdPais> <IsGlobalUser>boolean</IsGlobalUser> <Permissions> <Permission> <name>string</name> <page>string</page> <control>string</control> </Permission> <Permission> <name>string</name> <page>string</page> <control>string</control> </Permission> </Permissions> <Roles> <Role> <Id>int</Id> <Name>string</Name> <TypeId>int</TypeId> </Role> <Role> <Id>int</Id> <Name>string</Name> <TypeId>int</TypeId> </Role> </Roles> <IdPerfilTipoActual>int</IdPerfilTipoActual> <IdPerfilActual>int</IdPerfilActual> <PerfilTipoActual_EsAdministrador>boolean</PerfilTipoActual_EsAdministrador> <PerfilTipoActual_EsAdministradorAuxiliar>boolean</PerfilTipoActual_EsAdministradorAuxiliar> <PerfilTipoActual_EsAdministrativoContable>boolean</PerfilTipoActual_EsAdministrativoContable> <PerfilTipoActual_EsEjecutivoECommerce>boolean</PerfilTipoActual_EsEjecutivoECommerce> <PerfilTipoActual_EsEjecutivoComercial>boolean</PerfilTipoActual_EsEjecutivoComercial> <PerfilTipoActual_EsImplant>boolean</PerfilTipoActual_EsImplant> <PerfilTipoActual_EsEjecutivoHelpDesk>boolean</PerfilTipoActual_EsEjecutivoHelpDesk> <PerfilTipoActual_EsVendedorAgencia>boolean</PerfilTipoActual_EsVendedorAgencia> <EsAdministradorCuentaBase>boolean</EsAdministradorCuentaBase> <EsAdministradorRoot>boolean</EsAdministradorRoot> <RelatedUsers> <RelatedUser> <Id>int</Id> <FirstName>string</FirstName> <LastName>string</LastName> <UserName>string</UserName> </RelatedUser> <RelatedUser> <Id>int</Id> <FirstName>string</FirstName> <LastName>string</LastName> <UserName>string</UserName> </RelatedUser> </RelatedUsers> </user> </CreateAccount> </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> <CreateAccountResponse xmlns="http://tempuri.org/"> <CreateAccountResult> <Success>boolean</Success> <Message>string</Message> </CreateAccountResult> </CreateAccountResponse> </soap12:Body> </soap12:Envelope>