04.01. OrderRequest
click here to expand/close XML view
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE cXML SYSTEM "https://electric-blue-industries.com/schemas/cXML/1.2.052/cXML.dtd"> <!-- * Author: Electric Blue Industries Ltd. * Author URI: https://electric-blue-industries.com/ * Copyright: (c)2015-2023 Electric Blue Industries Ltd. * Contact: admin@electric-blue-industris.com * License: GNU General Public License v3.0 * License URI: http://www.gnu.org/licenses/gpl-3.0.html * Reference: http://xml.cxml.org/current/cXMLReferenceGuide.pdf --> <cXML timestamp="0000-00-00T00:00:00+09:00" payloadID=""> <Header> <From> <Credential domain="DUNS"> <Identity>123456789</Identity> </Credential> </From> <To> <Credential domain="NetworkID"> <Identity>AN01000000001</Identity> </Credential> </To> <Sender> <Credential domain="DUNS"> <Identity>123456789</Identity> <SharedSecret>SharedSecret</SharedSecret> <CredentialMac type="FromSenderCredentials" algorithm="HMAC-SHA1-96" creationDate="0000-00-00T00:00:00+09:00" expirationDate="0000-00-00T00:00:00+09:00">CredentialMAC</CredentialMac> </Credential> <UserAgent>Procurement Application Name</UserAgent> </Sender> </Header> <Request> <OrderRequest> <OrderRequestHeader orderID="" orderDate="" orderType="" type="" orderVersion="" isInternalVersion="" agreementID="" agreementPayloadID="" parentAgreementID="" parentAgreementPayloadID="" effectiveDate="" expirationDate="" requisitionID="" shipComplete="" pickUpDate="" requestedDeliveryDate="" isSTOOutbound=""> <Total> <Money currency=""/> </Total> <Modifications> <Modification> <OriginalPrice> <Money currency=""/> </OriginalPrice> <AdditionalDeduction type=""> <DeductionAmount> <Money currency=""/> </DeductionAmount> <DeductionPercent percent=""/> <DeductedPrice> <Money currency=""/> </DeductedPrice> </AdditionalDeduction> <AdditionalCost> <Money currency=""/> <Percentage /> </AdditionalCost> <ModificationDetail name="" startDate="" endDate="" code=""> <Description xml:lang=""/> <Extrinsic/> </ModificationDetail> <Tax> <Money currency=""/> <Description xml:lang=""/> <TaxDetail purpose="" category="" percentageRate="" isVatRecoverable="" taxPointDate="" paymentDate="" isTriangularTransaction="" exemptDetail="" isWithholdingTax="" taxRateType="" basePercentageRate="" isIncludedInPrice=""> <TaxableAmount> <Money currency=""/> </TaxableAmount> <TaxAmount> <Money currency=""/> </TaxAmount> <TaxLocation xml:lang=""/> <Description xml:lang=""/> </TaxDetail> <Distribution/> <Extrinsic/> </Tax> </Modification> </Modifications> <ShipTo> <Address addressID="" addressIDDomain="" isoCountryCode=""> <Name xml:lang=""/> <PostalAddress name=""> <DeliverTo/> <Street/> <City/> <Municipality/> <State isoStateCode=""/> <PostalCode/> <Country isoCountryCode=""/> </PostalAddress> <Email name=""/> <Phone name=""> <TelephoneNumber> <CountryCode isoCountryCode=""/> <AreaOrCityCode/> <Number/> </TelephoneNumber> </Phone> <Fax name=""> <TelephoneNumber> <CountryCode isoCountryCode=""/> <AreaOrCityCode/> <Number/> </TelephoneNumber> </Fax> <URL/> <IdReference/> </Address> <CarrierIdentifier domain=""/> <!-- TransportInformationはHeader内のShipToのみで記述する --> <TransportInformation> <Route method=""/> <ShippingContractNumber/> <ShippingInstructions> <Description xml:lang=""/> </ShippingInstructions> </TransportInformation> <IdReference/> </ShipTo> <!-- BillToが記述されるのはOrderRequestHeader内でのみ --> <BillTo> <Address addressID="" addressIDDomain="" isoCountryCode=""> <Name xml:lang=""/> <PostalAddress name=""> <DeliverTo/> <Street/> <City/> <Municipality/> <State isoStateCode=""/> <PostalCode/> <Country isoCountryCode=""/> </PostalAddress> <Email name=""/> <Phone name=""> <TelephoneNumber> <CountryCode isoCountryCode=""/> <AreaOrCityCode/> <Number/> </TelephoneNumber> </Phone> <Fax name=""> <TelephoneNumber> <CountryCode isoCountryCode=""/> <AreaOrCityCode/> <Number/> </TelephoneNumber> </Fax> <URL/> <IdReference/> </Address> </BillTo> <!-- BusinessPartner要素は複数列挙できる --> <BusinessPartner type="" role=""> <Address isoCountryCode="" addressID="" addressIDDomain=""> <Name xml:lang=""/> <PostalAddress name=""> <Street/> <City/> <Municipality/> <PostalCode/> <Country isoCountryCode=""/> </PostalAddress> <Email name=""/> <Phone name=""> <TelephoneNumber> <CountryCode isoCountryCode=""/> <AreaOrCityCode/> <Number/> </TelephoneNumber> </Phone> <Fax name=""> <TelephoneNumber> <CountryCode isoCountryCode=""/> <AreaOrCityCode/> <Number/> </TelephoneNumber> </Fax> <URL/> <IdReference/> </Address> <IdReference identifier="" domain=""/> <IdReference identifier="" domain=""/> </BusinessPartner> <LegalEntity> <IdReference identifier="" domain=""> <Description xml:lang=""/> </IdReference> </LegalEntity> <OrganizationalUnit> <IdReference identifier="" domain=""> <Description xml:lang=""/> </IdReference> </OrganizationalUnit> <!-- Shipping 要素が OrderRequestHeader に存在する場合、ItemOut 要素に存在してはいけません。OrderRequestHeader に存在しない場合は、ItemOut 要素に存在する必要があります。 --> <Shipping> <Money currency=""/> <Description xml:lang=""/> </Shipping> <Tax> <Money currency=""/> <Description xml:lang=""/> <TaxDetail purpose="" category="" percentageRate="" isVatRecoverable="" taxPointDate="" paymentDate="" isTriangularTransaction="" exemptDetail="" isWithholdingTax="" taxRateType="" basePercentageRate="" isIncludedInPrice=""> <TaxableAmount> <Money currency=""/> </TaxableAmount> <TaxAmount> <Money currency=""/> </TaxAmount> <TaxLocation xml:lang=""/> <Description xml:lang=""/> </TaxDetail> <Distribution/> <Extrinsic/> </Tax> <Payment> <PCard number="" expiration=""/> </Payment> <!-- PaymentTermは複数記述可能 --> <PaymentTerm payInNumberOfDays=""> <Discount> <Money currency=""/> <DiscountPercent percent=""/> </Discount> <Extrinsic/> </PaymentTerm> <Contact role="" addressID="" addressIDDomain=""> <Name xml:lang=""/> <PostalAddress> <Street/> <City/> <Municipality/> <State isoStateCode=""/> <PostalCode/> <Country isoCountryCode=""/> </PostalAddress> <Email/> <Phone name=""> <TelephoneNumber> <CountryCode isoCountryCode=""/> <AreaOrCityCode/> <Number/> </TelephoneNumber> </Phone> <Fax name=""> <TelephoneNumber> <CountryCode isoCountryCode=""/> <AreaOrCityCode/> <Number/> </TelephoneNumber> </Fax> <URL /> <IdReference /> <Extrinsic name=""/> </Contact> <Comments xml:lang=""> <Attachment visibility="internal"> <URL>cid: uniqueCID@cxml.org</URL> </Attachment> Please see attached image for my idea of what this should look like </Comments> <ControlKeys> <OCInstruction value=""> <Lower> <Tolerances> <QuantityTolerance> <Percentage percent=""/> </QuantityTolerance> </Tolerances> </Lower> <Upper> <Tolerances> <QuantityTolerance> <Percentage percent=""/> </QuantityTolerance> </Tolerances> </Upper> </OCInstruction> <ASNInstruction value=""> <Lower> <Tolerances> <QuantityTolerance> <Percentage percent=""/> </QuantityTolerance> </Tolerances> </Lower> <Upper> <Tolerances> <QuantityTolerance> <Percentage percent=""/> </QuantityTolerance> </Tolerances> </Upper> </ASNInstruction> <InvoiceInstruction value="" verificationType="" unitPriceEditable=""> <Lower> <Tolerances> <QuantityTolerance> <Percentage percent=""/> </QuantityTolerance> </Tolerances> </Lower> <Upper> <Tolerances> <QuantityTolerance> <Percentage percent=""/> </QuantityTolerance> </Tolerances> </Upper> </InvoiceInstruction> <SESInstruction value="" unitPriceEditable=""> <Lower> <Tolerances> <QuantityTolerance> <Percentage percent=""/> </QuantityTolerance> </Tolerances> </Lower> <Upper> <Tolerances> <QuantityTolerance> <Percentage percent=""/> </QuantityTolerance> </Tolerances> </Upper> </SESInstruction> </ControlKeys> <DocumentReference/> <SupplierOrderInfo orderID="" orderDat=""/> <TermsOfDelivery> <TermsOfDeliveryCode value=""/> <ShippingPaymentMethod value=""/> <TransportTerms value=""></TransportTerms> <Address> <Name xml:lang=""></Name> <PostalAddress> <Street/> <City/> <Municipality/> <State isoStateCode=""/> <PostalCode/> <Country isoCountryCode=""/> </PostalAddress> <Email/> <Phone name=""> <TelephoneNumber> <CountryCode isoCountryCode=""/> <AreaOrCityCode/> <Number/> </TelephoneNumber> </Phone> <Fax name=""> <TelephoneNumber> <CountryCode isoCountryCode=""/> <AreaOrCityCode/> <Number/> </TelephoneNumber> </Fax> <URL /> <IdReference /> <Extrinsic name=""/> </Address> <Comments xml:lang="" type=""/> <Comments xml:lang="" type=""/> </TermsOfDelivery> <DeliveryPeriod> <Period startDate="" endDate=""/> </DeliveryPeriod> <IdReference/> <OrderRequestHeaderIndustry> <ReferenceDocumentInfo/> <Priority level="" sequence="" inventory_level=""/> <ExternalDocumentType documentType=""> <Description xml:lang=""/> </ExternalDocumentType> <QualityInfo requiresQualityProcess=""> <IdReference domain="" identifier=""> <Description xml:lang=""/> </IdReference> </QualityInfo> </OrderRequestHeaderIndustry> <ReferenceDocumentInfo lineNumber="" scheduleLineNumber="" status=""> <DocumentReference type=""/> <DateInfo/> <Contact/> <Extrinsic/> </ReferenceDocumentInfo> <Extrinsic/> </OrderRequestHeader> <ItemOut quantity="" lineNumber="" requisitionID="" agreementItemNumber="" requestedDeliveryDate="" isAdHoc="" parentLineNumber="" itemType="" requiresServiceEntry="" confirmationDueDate="" compositeItemType="" itemClassification="" itemCategory="" subcontractingType="" stockTransferType="" requestedShipmentDate="" isReturn="" returnAuthorizationNumber="" isDeliveryCompleted="" unlimitedDelivery="" isItemChanged="" isKanban="" stoDelivery="" stoOrderCombination="" stoFinalDelivery=""> <ItemID> <SupplierPartID/> <SupplierPartAuxiliaryID/> <BuyerPartID/> <IdReference/> </ItemID> <Path/> <!-- <ItemDetail/> or <BlanketItemDetail/> --> <ItemDetail> <UnitPrice> <Money currency=""/> </UnitPrice> <Description type="" xml:lang=""> <ShortName/> bra bra bra </Description> <OverallLimit> <Money currency=""/> </OverallLimit> <ExpectedLimit> <Money currency=""/> </ExpectedLimit> <UnitOfMeasure/> <PriceBasisQuantity quantity="" conversionFactor=""> <UnitOfMeasure/> <Description type="" xml:lang=""> <ShortName/> bra bra bra </Description> </PriceBasisQuantity> <Classification domain=""/> <ManufacturerPartID/> <ManufacturerName/> <URL/> <LeadTime/> <!-- Dimensionは複数要素を列挙して複数の指定をすることが可能 --> <!-- typeには length/width/height/weight/volume/stackHeight/grossWeight/grossVolume/unitGrossWeight/unitNetWeight を指定可能 --> <Dimension quantity="" type=""> <UnitOfMeasure/> </Dimension> <ItemDetailIndustry isConfigurableMaterial=""> <ItemDetailRetail> <EANID/> <EuropeanWasteCatalogID/> <Characteristic domain="" value="" code=""/> </ItemDetailRetail> </ItemDetailIndustry> <AttachmentReference length="" version=""> <Name xml:lang=""/> <Description xml:lang=""/> <InternalID/> <URL/> </AttachmentReference> <PlannedAcceptanceDays/> <Extrinsic/> </ItemDetail> <SupplierList> <Supplier> <Name xml:lang=""/> <SupplierID domain=""/> </Supplier> <Supplier> <Name xml:lang=""/> <SupplierID domain=""/> <SupplierID domain=""/> </Supplier> </SupplierList> <ShipTo> <Address addressID="" addressIDDomain="" isoCountryCode=""> <Name xml:lang=""/> <PostalAddress name=""> <DeliverTo/> <Street/> <City/> <Municipality/> <State isoStateCode=""/> <PostalCode/> <Country isoCountryCode=""/> </PostalAddress> <Email name=""/> <Phone name=""> <TelephoneNumber> <CountryCode isoCountryCode=""/> <AreaOrCityCode/> <Number/> </TelephoneNumber> </Phone> <Fax name=""> <TelephoneNumber> <CountryCode isoCountryCode=""/> <AreaOrCityCode/> <Number/> </TelephoneNumber> </Fax> <URL/> <IdReference/> </Address> <CarrierIdentifier domain=""/> <TransportInformation> <Route method=""/> <ShippingContractNumber/> <ShippingInstructions> <Description xml:lang=""/> </ShippingInstructions> </TransportInformation> <IdReference /> </ShipTo> <Shipping tracking="" trackingDomain="" trackingId=""> <Money alternateAmount="" alternateCurrency="" currency=""/> <Description type="" xml:lang=""/> </Shipping> <!-- Taxが複数課される場合は TaxDetail を複数列挙することができる --> <Tax> <Money currency=""/> <Description xml:lang=""/> <TaxDetail purpose="" category="" percentageRate="" isVatRecoverable="" taxPointDate="" paymentDate="" isTriangularTransaction="" exemptDetail="" isWithholdingTax="" taxRateType="" basePercentageRate="" isIncludedInPrice=""> <TaxableAmount> <Money currency=""/> </TaxableAmount> <TaxAmount> <Money currency=""/> </TaxAmount> <TaxLocation xml:lang=""/> <Description xml:lang=""/> </TaxDetail> <Distribution/> <Extrinsic/> </Tax> <SpendDetail /> <Distribution> <Accounting name=""> <!-- AccountingSegmentは複数列挙することができる --> <AccountingSegment id=""> <Name xml:lang=""/> <Description xml:lang=""/> </AccountingSegment> <AccountingSegment id=""> <Name xml:lang=""/> <Description xml:lang=""/> </AccountingSegment> </Accounting> <Charge> <Money currency=""/> </Charge> </Distribution> <Contact role=""> <Name xml:lang=""/> <PostalAddress name=""> <Street/> <City/> <Municipality/> <State isoStateCode=""/> <PostalCode/> <Country isoCountryCode=""/> </PostalAddress> <Email name=""/> <Phone name=""> <TelephoneNumber> <CountryCode isoCountryCode=""/> <AreaOrCityCode/> <Number/> </TelephoneNumber> </Phone> <Fax name=""> <TelephoneNumber> <CountryCode isoCountryCode=""/> <AreaOrCityCode/> <Number/> </TelephoneNumber> </Fax> <URL /> <IdReference /> </Contact> <TermsOfDelivery> <TermsOfDeliveryCode value=""/> <ShippingPaymentMethod value=""/> <TransportTerms value=""/> <Address> <Name xml:lang=""/> <PostalAddress name=""> <DeliverTo/> <Street/> <City/> <State isoStateCode=""/> <PostalCode/> <Country isoCountryCode=""/> </PostalAddress> </Address> <!-- コメント要素は複数列挙することができる --> <Comments xml:lang="" type=""> As per the Transport contract </Comments> </TermsOfDelivery> <!-- コメント要素は複数列挙することができる --> <Comments xml:lang="" type=""> As per the Transport contract </Comments> <Tolerances> <QuantityTolerance> <Percentage/> <Value/> </QuantityTolerance> <PriceTolerance> <Percentage/> <Money currency=""/> </PriceTolerance> <TimeTolerance limit="" type=""/> </Tolerances> <ControlKeys> <OCInstruction value=""> <Lower> <Tolerances> <QuantityTolerance> <Percentage percent=""/> </QuantityTolerance> </Tolerances> </Lower> <Upper> <Tolerances> <QuantityTolerance> <Percentage percent=""/> </QuantityTolerance> </Tolerances> </Upper> </OCInstruction> <ASNInstruction value=""> <Lower> <Tolerances> <QuantityTolerance> <Percentage percent=""/> </QuantityTolerance> </Tolerances> </Lower> <Upper> <Tolerances> <QuantityTolerance> <Percentage percent=""/> </QuantityTolerance> </Tolerances> </Upper> </ASNInstruction> <InvoiceInstruction value="" verificationType="" unitPriceEditable=""> <Lower> <Tolerances> <QuantityTolerance> <Percentage percent=""/> </QuantityTolerance> </Tolerances> </Lower> <Upper> <Tolerances> <QuantityTolerance> <Percentage percent=""/> </QuantityTolerance> </Tolerances> </Upper> </InvoiceInstruction> <SESInstruction value="" unitPriceEditable=""> <Lower> <Tolerances> <QuantityTolerance> <Percentage percent=""/> </QuantityTolerance> </Tolerances> </Lower> <Upper> <Tolerances> <QuantityTolerance> <Percentage percent=""/> </QuantityTolerance> </Tolerances> </Upper> </SESInstruction> </ControlKeys> <ScheduleLine quantity="" requestedDeliveryDate="" deliveryWindow="" lineNumber="" requestedShipmentDate="" originalRequestedDeliveryDate=""> <UnitOfMeasure/> <ScheduleLineReleaseInfo commitmentCode="" cumulativeScheduledQuantity="" receivedQuantity=""/> <SubcontractingComponent quantity="" requirementDate="" materialProvisionIndicator=""> <ComponentID/> <UnitOfMeasure/> <Description/> <Product/> <ProductRevisionID/> <Batch/> </SubcontractingComponent> <ShipTo> <Address> <Name xml:lang=""/> <PostalAddress name=""> <DeliverTo/> <Street/> <City/> <State isoStateCode=""/> <PostalCode/> <Country isoCountryCode=""/> </PostalAddress> </Address> </ShipTo> <Extrinsic/> </ScheduleLine> <!-- MasterAgreementReference または MasterAgreementIDInfo --> <MasterAgreementReference/> <ItemOutIndustry planningType="" requiresRealTimeConsumption="" isHUMandatory=""> <ItemOutRetail/> <ReferenceDocumentInfo/> <Priority level="" sequence="" inventory_level=""/> <!-- QualityInfo または CertificateInfo --> <QualityInfo requiresQualityProcess=""> <IdReference identifier="" domain=""> <Description xml:lang=""/> </IdReference> </QualityInfo> <!-- QualityInfo または CertificateInfo --> <CertificateInfo isRequired=""> <IdReference domain="" identifier=""> <Description xml:lang=""/> </IdReference> </CertificateInfo> <SerialNumberInfo requiresSerialNumber="" type=""> <SerialNumber /> <PropertyValue name=""> <Characteristic domain="" value=""/> <Characteristic domain="" value=""/> </PropertyValue> </SerialNumberInfo> <BatchInfo requiresBatch="" /> <AssetInfo isReferencedAsset="" tagNumber="" serialNumber="" location="" equipmentId=""/> <PackagingDistribution quantity=""> <StoreCode/> <UnitOfMeasure/> </PackagingDistribution> </ItemOutIndustry> <Packaging> <PackagingCode xml:lang=""/> <Dimension quantity="" type=""> <UnitOfMeasure/> </Dimension> <PackageID> <GlobalIndividualAssetID/> <ReturnablePackageID/> <PackageTrackingID/> </PackageID> <OrderedQuantity quantity=""> <UnitofMeasure/> </OrderedQuantity> <DispatchQuantity quantity=""> <UnitofMeasure/> </DispatchQuantity> <FreeGoodsQuantity quantity=""> <UnitofMeasure/> </FreeGoodsQuantity> <Description xml:lang=""/> <PackagingLevelCode/> <PackageTypeCodeIdentifierCode/> <ShippingContainerSerialCode/> <ShippingContainerSerialCodeReference/> <ShippingMark/> <QuantityVarianceNote/> <BestBeforeDate/> <AssetInfo isReferencedAsset="" tagNumber="" serialNumber="" location="" equipmentId=""/> <StoreCode/> <Extrinsic name=""/> </Packaging> <ReleaseInfo releaseType="" cumulativeReceivedQuantity="" releaseNumber="" productionGoAheadEndDate="" materialGoAheadEndDate=""> <ShipNoticeReleaseInfo/> <UnitofMeasure/> <Extrinsic name=""/> </ReleaseInfo> <Batch productionDate="" expirationDate="" inspectionDate="" shelfLife="" originCountryCode="" batchQuantity=""> <BuyerBatchID/> <SupplierBatchID/> <PropertyValuation> <PropertyReference/> <ValueGroup/> </PropertyValuation> </Batch> </ItemOut> </OrderRequest> </Request> </cXML>
下記が返送されるResponseの例です。他のAPIと同様にHeaderは存在しません。
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE cXML SYSTEM "https://electric-blue-industries.com/schemas/cXML/1.2.052/cXML.dtd"> <cXML> <Response> <OrderResponse effectiveDate="2023-07-01T05:24:29-08:00" lastRefresh="2023-07-08T05:24:29-08:00"> </OrderResponse> </Response> </cXML>