Example Payloads: Contract Line Internal Attributes
The example payloads in this topic demonstrate how to create internal contract lines for an intercompany contract.
Create a
contract
<?xml version="1.0" encoding="UTF-8" standalone="no"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns1:createContract xmlns:ns1="http://xmlns.oracle.com/apps/contracts/coreAuthoring/contractService/types/">
<ns1:contractHeader xmlns:ns2="http://xmlns.oracle.com/apps/contracts/coreAuthoring/contractService/">
<ns2:OrgId>204</ns2:OrgId>
<ns2:InvOrganizationId>204</ns2:InvOrganizationId>
<ns2:ContractTypeId>105</ns2:ContractTypeId>
<ns2:ContractNumber>Vision_Corp_Intercompany_Contract</ns2:ContractNumber>
<ns2:Cognomen>Vision_Corp_Intercompany_Contract</ns2:Cognomen>
<ns2:PartyId>1398</ns2:PartyId>
<ns2:StartDate>2010-01-01</ns2:StartDate>
<ns2:LegalEntityId>204</ns2:LegalEntityId>
<ns2:ShortDescription>IC Contract Created via Web Services</ns2:ShortDescription>
<ns2:OwningOrgId>204</ns2:OwningOrgId>
<ns2:InvTrxTypeId>150</ns2:InvTrxTypeId>
<ns2:BillToAccountId>1398</ns2:BillToAccountId>
<ns2:BillToSiteUseId>1825</ns2:BillToSiteUseId>
<ns2:ShipToAccountId>1398</ns2:ShipToAccountId>
<ns2:ShipToSiteUseId>9689</ns2:ShipToSiteUseId>
<ns2:ExternalSource>335H38PJBIC_HS</ns2:ExternalSource>
<ns2:ExternalKey>335H38PJBIC_HK</ns2:ExternalKey>
<ns2:ContractLine>
<ns2:LineNumber>1</ns2:LineNumber>
<ns2:LineTypeId>101</ns2:LineTypeId>
<ns2:ItemNameTxt>1</ns2:ItemNameTxt>
<ns2:StartDate>2010-01-01</ns2:StartDate>
<ns2:LineValueAmount currencyCode="USD">29500</ns2:LineValueAmount>
<ns2:ExternalSource>335H38PJBIC_LS</ns2:ExternalSource>
<ns2:ExternalKey>335H38PJBIC_LK</ns2:ExternalKey>
</ns2:ContractLine>
<ns2:BillPlan xmlns:ns3="http://xmlns.oracle.com/apps/projects/billing/contracts/contractPublicService/">
<ns3:BillMethodName>PJB_IC_Rate Based TP</ns3:BillMethodName>
<ns3:BillPlanName>BP1</ns3:BillPlanName>
<ns3:BillingCurrencyType>Contract</ns3:BillingCurrencyType>
<ns3:PaymentTerms>30 Net</ns3:PaymentTerms>
<ns3:BillSetNumber>1</ns3:BillSetNumber>
<ns3:BillToAccountNumber>1187</ns3:BillToAccountNumber>
<ns3:BillToSiteUseId>1825</ns3:BillToSiteUseId>
<ns3:BillToContactId>4804</ns3:BillToContactId>
<ns3:BillingCycle>Last Day of the Month</ns3:BillingCycle>
<ns3:LaborInvoiceFormat>Cont Line Prj/Task Format</ns3:LaborInvoiceFormat>
<ns3:NonlaborInvoiceFormat>NL Cn Line, Prj/Task, Exp Type</ns3:NonlaborInvoiceFormat>
<ns3:EventInvoiceFormat>Contract Line Event Type</ns3:EventInvoiceFormat>
<ns3:LaborTransferPriceSchedule>PJB_TPS_1</ns3:LaborTransferPriceSchedule>
<ns3:NonlaborTransferPriceSchedule>PJB_TPS_1</ns3:NonlaborTransferPriceSchedule>
<ns3:ExternalSourceKey>335H38PJBIC_BS</ns3:ExternalSourceKey>
<ns3:ExternalReferenceKey>335H38PJBIC_BK</ns3:ExternalReferenceKey>
</ns2:BillPlan>
<ns2:RevenuePlan xmlns:ns3="http://xmlns.oracle.com/apps/projects/billing/contracts/contractPublicService/">
<ns3:BillMethodName>PJB_IC_As_Incurred</ns3:BillMethodName>
<ns3:BillPlanName>RP1</ns3:BillPlanName>
<ns3:ExternalSourceKey>335H38PJBIC_RS</ns3:ExternalSourceKey>
<ns3:ExternalReferenceKey>335H38PJBIC_RK</ns3:ExternalReferenceKey>
</ns2:RevenuePlan>
</ns1:contractHeader>
</ns1:createContract>
</soap:Body>
</soap:Envelope>
Update the bill plan and revenue plan to internal contract
line
<?xml version="1.0" encoding="UTF-8" standalone="no"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns1:updateContract xmlns:ns1="http://xmlns.oracle.com/apps/contracts/coreAuthoring/contractService/types/">
<ns1:contractHeader xmlns:ns2="http://xmlns.oracle.com/apps/contracts/coreAuthoring/contractService/">
<ns2:ExternalSource>335H38PJBIC_HS</ns2:ExternalSource>
<ns2:ExternalKey>335H38PJBIC_HK</ns2:ExternalKey>
<ns2:ContractLine>
<ns2:ExternalSource>335H38PJBIC_LS</ns2:ExternalSource>
<ns2:ExternalKey>335H38PJBIC_LK</ns2:ExternalKey>
<ns2:BillPlan>BP1</ns2:BillPlan>
<ns2:RevenuePlan>RP1</ns2:RevenuePlan>
</ns2:ContractLine>
</ns1:contractHeader>
</ns1:updateContract>
</soap:Body>
</soap:Envelope>
Create contract line internal attributes for internal contract
line
<?xml version="1.0" encoding="UTF-8" standalone="no"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns1:mergeContract xmlns:ns1="http://xmlns.oracle.com/apps/contracts/coreAuthoring/contractService/types/">
<ns1:contractHeader xmlns:ns2="http://xmlns.oracle.com/apps/contracts/coreAuthoring/contractService/">
<ns2:ExternalSource>335H38PJBIC_HS</ns2:ExternalSource>
<ns2:ExternalKey>335H38PJBIC_HK</ns2:ExternalKey>
<ns2:OutputTaxClassificationCode>EXP STD</ns2:OutputTaxClassificationCode>
<ns2:ContractLine>
<ns2:ExternalSource>335H38PJBIC_LS</ns2:ExternalSource>
<ns2:ExternalKey>335H38PJBIC_LK</ns2:ExternalKey>
<ns2:OutputTaxClassificationCode>EXP STD</ns2:OutputTaxClassificationCode>
<ns2:ProjectContractLineInternalAttributes xmlns:ns3="http://xmlns.oracle.com/apps/projects/billing/contracts/contractBillingService/">
<ns3:ProviderBusinessUnitName>Vision Corporation</ns3:ProviderBusinessUnitName>
<ns3:ReceiverProjectName>Vision_Corp_Intercompany_Project</ns3:ReceiverProjectName>
<ns3:ReceiverTaskName>Develop Conversion Strategy</ns3:ReceiverTaskName>
<ns3:OrganizationName>Vision College</ns3:OrganizationName>
<ns3:ExpenditureTypeName>Consulting</ns3:ExpenditureTypeName>
</ns2:ProjectContractLineInternalAttributes>
</ns2:ContractLine>
</ns1:contractHeader>
</ns1:mergeContract>
</soap:Body>
</soap:Envelope>
Create project linkage for the Intercompany
contract
<?xml version="1.0" encoding="UTF-8" standalone="no"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns1:mergeContract xmlns:ns1="http://xmlns.oracle.com/apps/contracts/coreAuthoring/contractService/types/">
<ns1:contractHeader xmlns:ns2="http://xmlns.oracle.com/apps/contracts/coreAuthoring/contractService/">
<ns2:ExternalSource>335H38PJBIC_HS</ns2:ExternalSource>
<ns2:ExternalKey>335H38PJBIC_HK</ns2:ExternalKey>
<ns2:ContractLine>
<ns2:ExternalSource>335H38PJBIC_LS</ns2:ExternalSource>
<ns2:ExternalKey>335H38PJBIC_LK</ns2:ExternalKey>
<ns2:SourceCodeClass>PROJECT</ns2:SourceCodeClass>
<ns2:AssociatedProject xmlns:ns3="http://xmlns.oracle.com/apps/projects/billing/contracts/contractPublicService/">
<ns3:ProjectNumber>Vision_Corp_Intercompany_Project</ns3:ProjectNumber>
<ns3:ExternalSourceKey>335H38PJBIC_APSK</ns3:ExternalSourceKey>
<ns3:ExternalReferenceKey>335H38PJBIC_APEK</ns3:ExternalReferenceKey>
</ns2:AssociatedProject>
</ns2:ContractLine>
</ns1:contractHeader>
</ns1:mergeContract>
</soap:Body>
</soap:Envelope>
Activate the
contract
<?xml version="1.0" encoding="UTF-8" standalone="no"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns1:updateContractToActive xmlns:ns1="http://xmlns.oracle.com/apps/contracts/coreAuthoring/contractService/types/">
<ns1:contractId>300100124246084</ns1:contractId>
<ns1:runValidationFlag>true</ns1:runValidationFlag>
</ns1:updateContractToActive>
</soap:Body>
</soap:Envelope>