Update Line Amount of an Active Contract

In this use case, we'll update the line amount of an active contract.

Contract type: All

Operation: mergeContractInAllStatus

Note: For free-form type lines, you can pass the amount through the attribute/tag LineValueAmount. For item-based type lines, amount is derived from values passed through ItemQuantity and UnitPrice tags.

This payload will amend the contract, make the line amount changes, and moves the amended version to Active status. Since amendment is involved, it is mandatory to pass AmendmentEffectiveDate in the payload.

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
        <ns1:mergeContractInAllStatus xmlns:ns1="http://xmlns.oracle.com/apps/contracts/coreAuthoring/contractService/types/">
            <ns1:contractHeader xmlns:ns2="http://xmlns.oracle.com/apps/contracts/coreAuthoring/contractService/">
                <ns2:Id>300100168601844</ns2:Id>
                <ns2:MajorVersion>1</ns2:MajorVersion>
                <ns2:AmendmentEffectiveDate>2016-10-08</ns2:AmendmentEffectiveDate>
                <ns2:ContractLine><!-- Free form line -->
                    <ns2:Id>300100168602041</ns2:Id>
                    <ns2:MajorVersion>1</ns2:MajorVersion>
                    <ns2:LineValueAmount currencyCode="USD">12345</ns2:LineValueAmount>
                </ns2:ContractLine>               
                <ns2:ContractLine><!-- Item based line -->
                    <ns2:Id>300100168601787</ns2:Id>
                    <ns2:MajorVersion>1</ns2:MajorVersion>
                    <ns2:ItemQuantity unitCode="Ea">5</ns2:ItemQuantity>
                    <ns2:UnitPrice currencyCode="USD">12</ns2:UnitPrice>
                </ns2:ContractLine>
            </ns1:contractHeader>
            <ns1:versionFlag>true</ns1:versionFlag>
        </ns1:mergeContractInAllStatus>
    </soap:Body>
</soap:Envelope>