Order Management Order Management for SOAP API Developers API Reference Order Web Service Current: Creating a Direct Order PDF Download PDF Download page Creating a Direct Order. Current page All pages Creating a Direct Order This API creates a direct order without source Id.API DetailsAPISignatureCreateOrderRequestwebService static CPQApi.CPQ.CreateOrderResponseDOCreateOrderRequest(CPQApi.CPQ.CreateOrderRequestDO)ParametersNameTypeDescriptionrequestCPQApi.CPQ.CreateOrderRequestDO The request data object.Request Data Object - CPQApi.CPQ.CreateOrderRequestDOFieldTypeRequired?DescriptionCustomFieldsList<String>NoList of custom fields on orderSOOrderInputConga_Config2__Order__cYesOrderSOOrderItemsList<Apttus_CPQApi.CPQ.SelectedProductDO>NoList of order itemsOrderItemSourceStringYesSource of order itemsPropertiesList<Apttus_Config2.Property>NoList of properties for cart created for orderRequest Data Object - CPQApi.CPQ.SelectedProductDOFieldTypeRequired?DescriptionAttributeValuesList<Apttus_Config2__ProductAttributeValue__c>NoProduct attribute value for the productCommentsStringNoCommentsCopyBundleConfigurationFromSourceBooleanNoFor bundles, to copy bundle configurationCustomDataApttus_Config2__LineItem__cNoCustom data line itemCustomFieldsList<String>NoList of custom fieldsEndDateDateNoEnd dateProductIdIdNoProduct IdQuantityDecimalNoQuantityRelatedLineItemsList<Apttus_Config2__RelatedLineItem__c>NoList of related line itemsSellingTermDecimalNoSelling termSourceFieldsList<String>NoList of source custom fields to be copiedSourceIdIdNoId of a source itemStartDateDateNoStart DateCode Sample Apttus_CPQApi.CPQ.CreateOrderRequestDO request = new Apttus_CPQApi.CPQ.CreateOrderRequestDO(); // order item source request.OrderItemSource = Apttus_CPQApi.CPQ.ITEMSOURCE_QUOTE_LINEITEM; // create order input Apttus_Config2_Orderc inputSO = new Apttus_Config2Order_c(); inputSO.Apttus_Config2_SoldToAccountId_c = '0014C00000F9Zz3'; inputSO.Apttus_Config2_PriceListId_c = 'a174C0000001MQ1'; inputSO.Apttus_Config2_PricingDate_c = Datetime.now(); inputSO.Apttus_Config2_OrderDate_c = Datetime.now(); inputSO.Apttus_Config2_OrderStartDate_c = Date.today(); inputSO.Apttus_Config2_OrderEndDate_c = Date.today().addMonths(12); inputSO.put('Apttus_QPConfig_ProposalId_c','a0Y4C0000021Cm5'); request.OrderInput = inputSO; request.CustomFields.add('Apttus_QPConfig_ProposalId_c'); // add order items (optional) // selected item Apttus_CPQApi.CPQ.SelectedProductDO productDO = new Apttus_CPQApi.CPQ.SelectedProductDO(); productDO.Comments = 'Test Create Order API'; productDO.CopyBundleConfigurationFromSource = false; productDO.StartDate = Date.today(); productDO.EndDate = Date.today().addMonths(12); productDO.SellingTerm = 12; productDO.Quantity = 1; productDO.ProductId = '01t4C000001pB1J'; Apttus_Config2_ProductAttributeValuec attVal = new Apttus_Config2ProductAttributeValue_c(); attVal.RY_Color__c = 'Black'; productDO.AttributeValues.add(attVal); // productDO.SourceId = 'a0W4C000001MRRF'; request.OrderItems.add(productDO); // create order Apttus_CPQApi.CPQ.CreateOrderResponseDO result = Apttus_CPQApi.CPQWebService.createOrder(request); CODE ×