Showing posts with label DebitMemo. Show all posts
Showing posts with label DebitMemo. Show all posts

Thursday, March 14, 2024

SOAP to Create Debit memo (Oracle Fusion Receivables Cloud Service)

 SOAP API
===========


Service Name
=============
createDebitMemo


Sample Payload
================
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://xmlns.oracle.com/apps/financials/receivables/transactions/invoices/debitMemoService/types/" xmlns:deb="http://xmlns.oracle.com/apps/financials/receivables/transactions/invoices/debitMemoService/">
   <soapenv:Header/>
   <soapenv:Body>
      <typ:createDebitMemo>
         <typ:debitMemo>
            <deb:BatchSourceSequenceId>37711366</deb:BatchSourceSequenceId>
            <!--BATCH_SOURCE_SEQ_ID :-->
            <deb:CustomerTrxSquenceId>38859442</deb:CustomerTrxSquenceId>
            <!--CUST_TRX_TYPE_SEQ_ID put Debit memo here :-->
            <deb:InvoiceCurrencyCode>USD</deb:InvoiceCurrencyCode>
            <deb:OrgId>33059258</deb:OrgId>
            <deb:BillToCustomerId>132506363</deb:BillToCustomerId>
            <!--BILL_TO_CUSTOMER_ID:-->
            <deb:BillToAddressId>316731415</deb:BillToAddressId>
            <!--BILL_TO_ADDRESS_ID:-->
            <deb:BillToSiteUseId>316731416</deb:BillToSiteUseId>
            <!--BILL_TO_SITE_USE_ID:-->
            <deb:Comments>test debit memo service</deb:Comments>
            <deb:DefaultTaxationCountry>US</deb:DefaultTaxationCountry>
            <deb:PaymentTermsId>32914118</deb:PaymentTermsId>
            <!--TERM_ID:-->
            <deb:RemitToAddressSequenceId>32914100</deb:RemitToAddressSequenceId>
            <!--REMIT_TO_ADDRESS_SEQ_ID:-->
            <deb:ShipToAddressId>132255334</deb:ShipToAddressId>
            <!--SHIP_TO_PARTY_ADDRESS_ID:-->
            <deb:ShipToCustomerId>114525837</deb:ShipToCustomerId>
            <!--SHIP_TO_PARTY_ID:-->
            <deb:ShipToSiteUseId>132298316</deb:ShipToSiteUseId>
            <!--SHIP_TO_PARTY_SITE_USE_ID:-->
            <deb:TrxDate>2024-02-12</deb:TrxDate>
            <deb:DebitMemoLine>
               <deb:LineNumber>1</deb:LineNumber>
               <deb:Description>test1 debit memo service</deb:Description>
               <deb:InvoicedQuantity unitCode="">1</deb:InvoicedQuantity>
               <deb:UnitSellingPrice currencyCode="USD">100</deb:UnitSellingPrice>
               <deb:LineType>LINE</deb:LineType>
               <deb:ExtendedAmount currencyCode="USD">100</deb:ExtendedAmount>
               <deb:RevenueAmount currencyCode="USD">100</deb:RevenueAmount>
               <deb:OrgId>33059258</deb:OrgId>
            </deb:DebitMemoLine>
            <deb:DebitMemoLine>
               <deb:LineNumber>2</deb:LineNumber>
               <deb:Description>test2 debit memo service</deb:Description>
               <deb:InvoicedQuantity unitCode="">1</deb:InvoicedQuantity>
               <deb:UnitSellingPrice currencyCode="USD">100</deb:UnitSellingPrice>
               <deb:LineType>LINE</deb:LineType>
               <deb:ExtendedAmount currencyCode="USD">500</deb:ExtendedAmount>
               <deb:RevenueAmount currencyCode="USD">500</deb:RevenueAmount>
               <deb:OrgId>33059258</deb:OrgId>
            </deb:DebitMemoLine>
         </typ:debitMemo>
      </typ:createDebitMemo>
   </soapenv:Body>
</soapenv:Envelope>