03.01. QuoteRequest
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/Quote.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> <QuoteRequest> <QuoteRequestHeader requestID="" requestDate="" type="" openDate="" closeDate="" previewDate="" templateName="" currency="" xml:lang="" quoteReceivingPreference=""> <Name xml:lang=""></Name> <SupplierSelector matchingType=""> <SupplierInvitation supplierStatus=""/> <OrganizationID/> <Correspondent/> <MasterAgreementIDinfo/> <Extrinsic/> </SupplierSelector> <Total> <Money alternateAmount="" alternateCurrency="" currency=""/> </Total> <Description type="" xml:lang=""/> <ShipTo> <Address addressID="" addressIDDomain="" isoCountryCode=""> <Name xml:lang=""/> <PostalAddress name=""> <DeliverTo/> <Street/> <City/> <State isoStateCode=""/> <PostalCode/> <Country isoCountryCode=""/> </PostalAddress> </Address> <CarrierIdentifier domain=""/> <TransportInformation> <Route method=""/> <ShippingContractNumber/> <ShippingInstructions> <Description xml:lang=""/> </ShippingInstructions> </TransportInformation> <IdReference /> </ShipTo> <Contact role=""> <Name xml:lang=""/> <PostalAddress> <Street/> <City/> <State isoStateCode=""/> <PostalCode/> <Country isoCountryCode=""/> </PostalAddress> <Email/> </Contact> <Comments type="" xml:lang=""/> <QuoteHeaderInfo> <LegalEntity/> <OrganizationalUnit/> <PaymentTerms/> <FollowUpDocument/> <DocumentReference/> <Extrinsic/> </QuoteHeaderInfo> <Extrinsic/> </QuoteRequestHeader> <QuoteItemOut quantity="" lineNumber="" parentLineNumber="" requestedDeliveryDate="" itemClassification="" itemType="" serviceLineType=""> <ItemID> <SupplierPartID revisionID=""/> <SupplierPartAuxiliaryID/> <BuyerPartID/> <IdReference/> </ItemID> <ItemDetail> <UnitPrice> <Money alternateAmount="" alternateCurrency="" currency=""/> <!-- ここに価格設定条件を記述することで特定期間はいくらという条件設定が可能(詳細はリファレンスガイドの208page) --> <PricingConditions/> </UnitPrice> <Description type="" xml:lang=""> <ShortName/> Description here </Description> <OverallLimit> <Money currency=""/> </OverallLimit> <ExpectedLimit> <Money currency=""/> </ExpectedLimit> <UnitOfMeasure/> <PriceBasisQuantity quantity="" conversionFactor=""> <UnitOfMeasure/> <Description type="" xml:lang=""/> </PriceBasisQuantity> <Classification domain=""/> <ManufacturerPartID/> <ManufacturerName/> <URL/> <LeadTime/> <Dimension quantity="" type=""> <UnitofMeasure/> </Dimension> <ItemDetailIndustry isConfigurableMaterial =""> <ItemDetailRetail> <EANID/> <EuropeanWasteCatalogID/> <Characteristic domain="" value="" code=""/> </ItemDetailRetail> </ItemDetailIndustry> <AttachmentReference length="" version=""> <Name xml:lang=""/> <Description type="" xml:lang=""/> <InternalID domain=""/> <URL /> </AttachmentReference> <PlannedAcceptanceDays/> <Extrinsic name=""/> </ItemDetail> <ShipTo> <Address addressID="" addressIDDomain="" isoCountryCode=""> <Name xml:lang=""/> <PostalAddress name=""> <DeliverTo/> <Street/> <City/> <State isoStateCode=""/> <PostalCode/> <Country isoCountryCode=""/> </PostalAddress> </Address> <CarrierIdentifier domain=""/> <TransportInformation> <Route method=""/> <ShippingContractNumber/> <ShippingInstructions> <Description xml:lang="">As per the contract</Description> </ShippingInstructions> </TransportInformation> <IdReference/> </ShipTo> <Shipping tracking="" trackingDomain="" trackingId=""> <Money alternateAmount="" alternateCurrency="" currency=""/> <Description type="" 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> <!-- SpendDetailには複数の費目向けの構造があり、実装時はリファレンスガイド145pageを再度参照されたし --> <SpendDetail/> <Total> <Money alternateAmount="" alternateCurrency="" currency=""/> </Total> <TermsOfDelivery> <TermsOfDeliveryCode value=""/> <ShippingPaymentMethod value=""/> </TermsOfDelivery> <ReferenceDocumentInfo lineNumber="" scheduleLineNumber="" status=""/> <Contact addressID="" addressIDDomain="" role=""> <Name xml:lang=""/> </Contact> <Comments type="" xml:lang=""/> <Alternative alternativeType="" basicLineNumber=""/> <SupplierSelector matchingType=""/> </QuoteItemOut> </QuoteRequest> </Request> </cXML>
下記が返送されるQuoteResponseの例です。他のAPIと同様にHeaderは存在しません。
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE cXML SYSTEM "https://electric-blue-industries.com/schemas/cXML/1.2.052/Quote.dtd"> <cXML> <Response> <QuoteResponse effectiveDate="2023-07-01T05:24:29-08:00" lastRefresh="2023-07-08T05:24:29-08:00"> </QuoteResponse> </Response> </cXML>
03.02. QuoteMessage
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/Quote.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> <Message> <QuoteMessage> <QuoteMessageHeader type="" quoteID="" quoteDate="" currency="" xml:lang=""> <OrganizationID> <Credential domain=""> <Identity/> </Credential> </OrganizationID> <Total> <Money currency=""/> </Total> <ShipTo> <Address addressID="" addressIDDomain="" isoCountryCode=""> <Name xml:lang=""/> <PostalAddress name=""> <DeliverTo/> <Street/> <City/> <State isoStateCode=""/> <PostalCode/> <Country isoCountryCode=""/> </PostalAddress> </Address> <CarrierIdentifier domain=""/> <!-- TransportInformationはHeader内のShipToのみで記述する --> <TransportInformation> <Route method=""/> <ShippingContractNumber/> <ShippingInstructions> <Description xml:lang=""/> </ShippingInstructions> </TransportInformation> <IdReference/> </ShipTo> <QuoteRequestReference requestID="" requestDate=""> <DocumentReference type=""/> </QuoteRequestReference> <Comments/> </QuoteMessageHeader> <QuoteItemIn type="" quantity="" lineNumber="" parentLineNumber="" requestedDeliveryDate="" rank="" itemClassification ="" itemType="" serviceLineType=""> <ItemID> <SupplierPartID/> <SupplierPartAuxiliaryID/> <BuyerPartID/> <IdReference/> </ItemID> <ItemDetail> <UnitPrice> <Money currency=""/> </UnitPrice> <Description type="" xml:lang=""> <ShortName/> Digital cameras </Description> <OverallLimit> <Money currency=""/> </OverallLimit> <ExpectedLimit> <Money currency=""/> </ExpectedLimit> <UnitOfMeasure/> <PriceBasisQuantity quantity="" conversionFactor=""> <UnitOfMeasure/> <Description type="" xml:lang=""> <ShortName/> Digital cameras </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="">Description Text</Description> <InternalID/> <URL/> </AttachmentReference> <PlannedAcceptanceDays/> <Extrinsic /> </ItemDetail> <ShipTo> <Address addressID="" addressIDDomain="" isoCountryCode=""> <Name xml:lang=""/> <PostalAddress name=""> <DeliverTo/> <Street/> <City/> <State isoStateCode=""/> <PostalCode/> <Country isoCountryCode=""/> </PostalAddress> </Address> <CarrierIdentifier domain=""/> <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/> <Total> <Money currency=""/> </Total> <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> <ReferenceDocumentInfo lineNumber="" scheduleLineNumber="" status=""> <!-- DocumentInfoとDocumentReferenceはどちらか一方のみ使用 --> <DocumentInfo/> <DocumentReference/> <DateInfo/> <Contact role=""> <Name xml:lang=""/> <PostalAddress> <Street/> <City/> <State isoStateCode=""/> <PostalCode/> <Country isoCountryCode=""/> </PostalAddress> <Email/> </Contact> <Extrinsic/> </ReferenceDocumentInfo> <Contact role=""> <Name xml:lang=""/> <PostalAddress> <Street/> <City/> <State isoStateCode=""/> <PostalCode/> <Country isoCountryCode=""/> </PostalAddress> <Email/> </Contact> <Comments type="" xml:lang=""></Comments> <Alternative alternativeType="" basicLineNumber=""/> <SupplierProductionFacilityRelations operation=""> <!-- ProductionFacilityAssociation要素は複数列挙することができる --> <ProductionFacilityAssociation operation=""> <ProductionFacility productionFacilityName=""> <IdReference identifier="" domain=""/> <ProductionFacilityRole name=""> <IdReference identifier="" domain=""/> </ProductionFacilityRole> </ProductionFacility> <OrganizationalUnit> <IdReference identifier="" domain=""/> </OrganizationalUnit> <ShipTo> <Address addressID=""> <Name xml:lang=""/> <PostalAddress name=""> <DeliverTo/> <Street/> <City/> <State isoStateCode=""/> <PostalCode/> <Country isoCountryCode=""/> </PostalAddress> </Address> <CarrierIdentifier domain=""/> </ShipTo> <IdReference/> </ProductionFacilityAssociation> </SupplierProductionFacilityRelations> <Extrinsic/> </QuoteItemIn> </QuoteMessage> </Message> </cXML>