Supplier Contact, Address and Site Creation and Updation by using SOAP Web Service or WSDL in cloud fusion

Supplier Contact

Supplier Contact, Address and Site Creation and Updation by using SOAP Web Service or WSDL in cloud fusion


Service WSDL URL: https://servername/fscmService/SupplierServiceV2?WSDL 

Create Supplier Contact

  <soapenv:Body>
      <typ:createSupplier>
         <typ:supplierRow>
            <!--Optional:-->

           	        <sup:Supplier>Test Supplier App9011</sup:Supplier>
			<sup:AlternateName>App9011</sup:AlternateName>
			<sup:TaxOrganizationType>CORPORATION</sup:TaxOrganizationType>
			<sup:SupplierType>SUPPLIER</sup:SupplierType>
			<sup:BusinessRelationship>SPEND_AUTHORIZED</sup:BusinessRelationship>

			<sup:SupplierAddresses>
				<sup:Operation>CREATE</sup:Operation>
				<sup:AddressName>Main_add</sup:AddressName>
				<sup:Country>IN</sup:Country>
				<sup:AddressLine1>123 Old railway Line</sup:AddressLine1>
				<sup:City>Delhi</sup:City>
				<sup:State>Delhi</sup:State>
				<sup:County>India</sup:County>
				<sup:OrderingPurposeFlag>FALSE</sup:OrderingPurposeFlag>
               		<sup:RemitToPurposeFlag>FALSE</sup:RemitToPurposeFlag>
               		<sup:RFQOrBiddingPurposeFlag>TRUE</sup:RFQOrBiddingPurposeFlag>
			</sup:SupplierAddresses>
			
			<sup:SupplierSites>
				<sup:Operation>CREATE</sup:Operation>
				<sup:SiteName>Main Office</sup:SiteName>
				<sup:AddressName>Main_add</sup:AddressName>
				<sup:ProcurementBU>Snapdeal Private Limited</sup:ProcurementBU>
				<sup:PurchasingPurposeFlag>True</sup:PurchasingPurposeFlag>
				<sup:AlternateSiteName>Main Office Purchasing</sup:AlternateSiteName>
				<sup:CommunicationMethod>EMAIL</sup:CommunicationMethod>
				<sup:EmailAddress>purchasing@gmail.com</sup:EmailAddress>				
					<sup:SupplierSiteAssignments>
						<sup:Operation>CREATE</sup:Operation>
						<sup:ClientBU>Snapdeal Private Limited</sup:ClientBU>
						<sup:BillToBU>Snapdeal Private Limited</sup:BillToBU>
					</sup:SupplierSiteAssignments>
			</sup:SupplierSites>	
		
			<sup:SupplierContacts>
				<sup:Operation>CREATE</sup:Operation>
				<sup:FirstName>Admin</sup:FirstName>
				<sup:LastName>Contact</sup:LastName>
				<sup:AdministrativeContactFlag>True</sup:AdministrativeContactFlag>
				<sup:EmailAddress>Admin.Contact@gamil.com</sup:EmailAddress>
				<sup:PhoneCountryCode>91</sup:PhoneCountryCode>
				<sup:PhoneAreaCode>011</sup:PhoneAreaCode>
				<sup:Phone>980765-02</sup:Phone>				
				<sup:SupplierContactAddresses>
				<sup:Operation>CREATE</sup:Operation>
				<sup:AddressName>Main_add</sup:AddressName>
				</sup:SupplierContactAddresses>
			</sup:SupplierContacts>

         </typ:supplierRow>
      </typ:createSupplier>
   </soapenv:Body>

Update Supplier Contact

<soapenv:Body>
      <typ:updateSupplier>
         <typ:supplierRow>
           <!--Optional:-->
           	<sup:Supplier>Test Supplier App9011</sup:Supplier>
			<sup:AlternateName>App9011</sup:AlternateName>
			<sup:SupplierAddresses>
				<sup:Operation>UPDATE</sup:Operation>
				<sup:AddressName>Main_add</sup:AddressName>
				<sup:Country>IN</sup:Country>
				<sup:AddressLine1>9011 New railway Line</sup:AddressLine1>
				<sup:City>Delhi</sup:City>
				<sup:State>Delhi</sup:State>
				<sup:County>India</sup:County>
			      <sup:EmailAddress>Test_9011@gmail.com</sup:EmailAddress>
				<sup:OrderingPurposeFlag>FALSE</sup:OrderingPurposeFlag>
               		<sup:RemitToPurposeFlag>FALSE</sup:RemitToPurposeFlag>
               		<sup:RFQOrBiddingPurposeFlag>TRUE</sup:RFQOrBiddingPurposeFlag>
			</sup:SupplierAddresses>
			<sup:SupplierSites>
				<sup:Operation>UPDATE</sup:Operation>
				<sup:SiteName>Main Office</sup:SiteName>			
				<sup:ProcurementBU>Snapdeal Private Limited</sup:ProcurementBU>
				<sup:PurchasingPurposeFlag>True</sup:PurchasingPurposeFlag>
				<sup:AlternateSiteName>Main Office Purchasing</sup:AlternateSiteName>
				<sup:CommunicationMethod>EMAIL</sup:CommunicationMethod>
				<sup:EmailAddress>purchasing_9011@gmail.com</sup:EmailAddress>				
			</sup:SupplierSites>
			<sup:SupplierContacts>
				<sup:Operation>UPDATE</sup:Operation>
				<sup:AddressName>Main_add</sup:AddressName>
				<sup:FirstName>Admin</sup:FirstName>
				<sup:LastName>Contact</sup:LastName>
				<sup:AdministrativeContactFlag>True</sup:AdministrativeContactFlag>
				<sup:EmailAddress>Admin.Contact9001@gamil.com</sup:EmailAddress>
				<sup:PhoneCountryCode>91</sup:PhoneCountryCode>
				<sup:PhoneAreaCode>011</sup:PhoneAreaCode>
				<sup:Phone>989796-02</sup:Phone>				
			</sup:SupplierContacts>
            </typ:supplierRow>
      </typ:updateSupplier>
   </soapenv:Body>



--- UPDATE Opertaion :-  for create contact :- where supplier already created but contact not ----

   <soapenv:Body>
      <typ:updateSupplier>
         <typ:supplierRow>
           <!--Optional:-->
           	<sup:Supplier>Test Supplier App9001</sup:Supplier>
			<sup:AlternateName>App9001</sup:AlternateName>			
			<sup:SupplierContacts>
				<sup:Operation>CREATE</sup:Operation>
				<sup:FirstName>Jack</sup:FirstName>
				<sup:LastName>Contact</sup:LastName>
				<sup:AdministrativeContactFlag>True</sup:AdministrativeContactFlag>
				<sup:EmailAddress>Jack.Contact@gamil.com</sup:EmailAddress>
				<sup:PhoneCountryCode>91</sup:PhoneCountryCode>
				<sup:PhoneAreaCode>011</sup:PhoneAreaCode>
				<sup:Phone>980765-02</sup:Phone>				
				<sup:SupplierContactAddresses>
				<sup:Operation>CREATE</sup:Operation>
				<sup:AddressName>Main</sup:AddressName>
				</sup:SupplierContactAddresses>
			</sup:SupplierContacts>
            </typ:supplierRow>
      </typ:updateSupplier>
   </soapenv:Body>
</soapenv:Envelope>

Comments

Popular posts from this blog

E-Text Report In Fusion | Types of E-Text reports

Supplier API's

How to pass default Parameter in cursor