Fedex WSDL C# - Setting the Invoice # value -
i'm using fedex's wsdl in c# generate cod shipping labels. on fedex shipping labels there "invoice #" string on both shipping label , cod return label. want set orderid in request fedex such orderid shows invoice #.
it's not obvious me how set invoice # in fedex's wsdl request. has done this?
the way in place order id or invoice number in labels following:
- set invoice number in package customer reference.
- specify on cod details node (on reference indicator) want cod label include invoice number 1 of reference.
please, note can include other references invoice number (e.g.: po, customer reference, , tracking).
here sample soap envelope request depicting said before:
<?xml version="1.0" encoding="utf-8"?> <soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:xsd="http://www.w3.org/2001/xmlschema"> <soap:body> <processshipmentrequest xmlns="http://fedex.com/ws/ship/v12"> <webauthenticationdetail> <cspcredential> <key>csp_key(if one)</key> <password>cis_password(if one)</password> </cspcredential> <usercredential> <key>csp_user_key(if belong csp)</key> <password>csp_password(if belong csp)</password> </usercredential> </webauthenticationdetail> <clientdetail> <accountnumber>account_number</accountnumber> <meternumber>meter_number</meternumber> <clientproductid>client_product_id(if 1 provided)</clientproductid> <clientproductversion>client_version(if 1 provided)</clientproductversion> </clientdetail> <transactiondetail> <customertransactionid>261</customertransactionid> </transactiondetail> <version> <serviceid>ship</serviceid> <major>12</major> <intermediate>0</intermediate> <minor>0</minor> </version> <requestedshipment> <shiptimestamp>2013-08-21t14:00:00-04:00</shiptimestamp> <dropofftype>regular_pickup</dropofftype> <servicetype>priority_overnight</servicetype> <packagingtype>your_packaging</packagingtype> <shipper> <accountnumber>account_number</accountnumber> <contact> <personname>323199 323199</personname> <companyname>csp testing</companyname> <phonenumber>9012633035</phonenumber> <emailaddress>csp@fedex.com</emailaddress> </contact> <address> <streetlines>99 fedex parkway</streetlines> <city>alameda</city> <stateorprovincecode>ca</stateorprovincecode> <postalcode>94501</postalcode> <countrycode>us</countrycode> </address> </shipper> <recipient> <contact> <personname>323257 323257</personname> <companyname>csp testing</companyname> <phonenumber>9012633035</phonenumber> <emailaddress>csp@fedex.com</emailaddress> </contact> <address> <streetlines>124 fedex parkway</streetlines> <city>paducah</city> <stateorprovincecode>ky</stateorprovincecode> <postalcode>42001</postalcode> <countrycode>us</countrycode> </address> </recipient> <origin> <contact> <personname>323199 323199</personname> <companyname>csp testing</companyname> <phonenumber>9012633035</phonenumber> <emailaddress>csp@fedex.com</emailaddress> </contact> <address> <streetlines>99 fedex parkway</streetlines> <city>alameda</city> <stateorprovincecode>ca</stateorprovincecode> <postalcode>94501</postalcode> <countrycode>us</countrycode> </address> </origin> <shippingchargespayment> <paymenttype>sender</paymenttype> <payor> <responsibleparty> <accountnumber>account_number</accountnumber> <contact> <personname>csp testing</personname> <companyname>rtc testing</companyname> </contact> <address> <countrycode>us</countrycode> </address> </responsibleparty> </payor> </shippingchargespayment> <specialservicesrequested> <specialservicetypes>cod</specialservicetypes> <coddetail> <codcollectionamount> <currency>usd</currency> <amount>50</amount> </codcollectionamount> <collectiontype>any</collectiontype> <referenceindicator>invoice</referenceindicator> </coddetail> </specialservicesrequested> <customsclearancedetail> <documentcontent>non_documents</documentcontent> </customsclearancedetail> <labelspecification> <labelformattype>common2d</labelformattype> <imagetype>png</imagetype> <labelstocktype>paper_4x6</labelstocktype> </labelspecification> <raterequesttypes>accountaccount</raterequesttypes> <packagecount>1</packagecount> <requestedpackagelineitems> <sequencenumber>1</sequencenumber> <grouppackagecount>1</grouppackagecount> <insuredvalue> <currency>usd</currency> <amount>5000</amount> </insuredvalue> <weight> <units>lb</units> <value>20</value> </weight> <physicalpackaging>other</physicalpackaging> <itemdescription>macbook pro</itemdescription> <customerreferences> <customerreferencetype>invoice_number</customerreferencetype> <value>invoice12345</value> </customerreferences> <specialservicesrequested> <specialservicetypes>signature_option</specialservicetypes> <signatureoptiondetail> <optiontype>service_default</optiontype> </signatureoptiondetail> </specialservicesrequested> </requestedpackagelineitems> </requestedshipment> </processshipmentrequest> </soap:body> </soap:envelope>
this generated shipping label:
this generated cod label:
i hope reply of you.
best!
Comments
Post a Comment