CreateShipment


Click here for a complete list of operations.

OnDemandPickupRequest_Type1

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /wsCreateShipment/wsCreateShipment.asmx HTTP/1.1
Host: ws.ups.com.tr
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://ws.ups.com.tr/wsCreateShipment/OnDemandPickupRequest_Type1"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <OnDemandPickupRequest_Type1 xmlns="https://ws.ups.com.tr/wsCreateShipment">
      <SessionID>string</SessionID>
      <OnDemandPickupRequestInfo>
        <LabelSource>int</LabelSource>
        <PickupRequestDay>dateTime</PickupRequestDay>
        <RequestedBoxList>
          <BoxType>
            <BoxTypeCode>int</BoxTypeCode>
            <BoxCount>int</BoxCount>
          </BoxType>
          <BoxType>
            <BoxTypeCode>int</BoxTypeCode>
            <BoxCount>int</BoxCount>
          </BoxType>
        </RequestedBoxList>
        <ShipmentInfo>
          <ShipperAccountNumber>string</ShipperAccountNumber>
          <ShipperName>string</ShipperName>
          <ShipperContactName>string</ShipperContactName>
          <ShipperAddress>string</ShipperAddress>
          <ShipperCityCode>int</ShipperCityCode>
          <ShipperAreaCode>int</ShipperAreaCode>
          <ShipperPostalCode>string</ShipperPostalCode>
          <ShipperPhoneNumber>string</ShipperPhoneNumber>
          <ShipperPhoneExtension>string</ShipperPhoneExtension>
          <ShipperMobilePhoneNumber>string</ShipperMobilePhoneNumber>
          <ShipperEMail>string</ShipperEMail>
          <ShipperExpenseCode>string</ShipperExpenseCode>
          <ConsigneeAccountNumber>string</ConsigneeAccountNumber>
          <ConsigneeName>string</ConsigneeName>
          <ConsigneeContactName>string</ConsigneeContactName>
          <ConsigneeAddress>string</ConsigneeAddress>
          <ConsigneeCityCode>int</ConsigneeCityCode>
          <ConsigneeAreaCode>int</ConsigneeAreaCode>
          <ConsigneePostalCode>string</ConsigneePostalCode>
          <ConsigneePhoneNumber>string</ConsigneePhoneNumber>
          <ConsigneePhoneExtension>string</ConsigneePhoneExtension>
          <ConsigneeMobilePhoneNumber>string</ConsigneeMobilePhoneNumber>
          <ConsigneeEMail>string</ConsigneeEMail>
          <ConsigneeExpenseCode>string</ConsigneeExpenseCode>
          <ServiceLevel>int</ServiceLevel>
          <PaymentType>int</PaymentType>
          <PackageType>string</PackageType>
          <NumberOfPackages>int</NumberOfPackages>
          <CustomerReferance>string</CustomerReferance>
          <CustomerInvoiceNumber>string</CustomerInvoiceNumber>
          <DeliveryNotificationEmail>string</DeliveryNotificationEmail>
          <IdControlFlag>int</IdControlFlag>
          <PhonePrealertFlag>int</PhonePrealertFlag>
          <SmsToShipper>int</SmsToShipper>
          <SmsToConsignee>int</SmsToConsignee>
          <InsuranceValue>decimal</InsuranceValue>
          <InsuranceValueCurrency>string</InsuranceValueCurrency>
          <ValueOfGoods>decimal</ValueOfGoods>
          <ValueOfGoodsCurrency>string</ValueOfGoodsCurrency>
          <ValueOfGoodsPaymentType>int</ValueOfGoodsPaymentType>
          <DeliveryByTally>int</DeliveryByTally>
          <ThirdPartyAccountNumber>string</ThirdPartyAccountNumber>
          <ThirdPartyExpenseCode>string</ThirdPartyExpenseCode>
          <PackageDimensions>
            <DimensionInfo xsi:nil="true" />
            <DimensionInfo xsi:nil="true" />
          </PackageDimensions>
        </ShipmentInfo>
      </OnDemandPickupRequestInfo>
    </OnDemandPickupRequest_Type1>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <OnDemandPickupRequest_Type1Response xmlns="https://ws.ups.com.tr/wsCreateShipment">
      <OnDemandPickupRequest_Type1Result>
        <ShipmentNo>string</ShipmentNo>
        <ErrorCode>int</ErrorCode>
        <ErrorDefinition>string</ErrorDefinition>
        <ShipmentInfo>
          <ShipperAccountNumber>string</ShipperAccountNumber>
          <ShipperName>string</ShipperName>
          <ShipperContactName>string</ShipperContactName>
          <ShipperAddress>string</ShipperAddress>
          <ShipperCityCode>int</ShipperCityCode>
          <ShipperAreaCode>int</ShipperAreaCode>
          <ShipperPostalCode>string</ShipperPostalCode>
          <ShipperPhoneNumber>string</ShipperPhoneNumber>
          <ShipperPhoneExtension>string</ShipperPhoneExtension>
          <ShipperMobilePhoneNumber>string</ShipperMobilePhoneNumber>
          <ShipperEMail>string</ShipperEMail>
          <ShipperExpenseCode>string</ShipperExpenseCode>
          <ConsigneeAccountNumber>string</ConsigneeAccountNumber>
          <ConsigneeName>string</ConsigneeName>
          <ConsigneeContactName>string</ConsigneeContactName>
          <ConsigneeAddress>string</ConsigneeAddress>
          <ConsigneeCityCode>int</ConsigneeCityCode>
          <ConsigneeAreaCode>int</ConsigneeAreaCode>
          <ConsigneePostalCode>string</ConsigneePostalCode>
          <ConsigneePhoneNumber>string</ConsigneePhoneNumber>
          <ConsigneePhoneExtension>string</ConsigneePhoneExtension>
          <ConsigneeMobilePhoneNumber>string</ConsigneeMobilePhoneNumber>
          <ConsigneeEMail>string</ConsigneeEMail>
          <ConsigneeExpenseCode>string</ConsigneeExpenseCode>
          <ServiceLevel>int</ServiceLevel>
          <PaymentType>int</PaymentType>
          <PackageType>string</PackageType>
          <NumberOfPackages>int</NumberOfPackages>
          <CustomerReference>string</CustomerReference>
          <CustomerInvoiceNumber>string</CustomerInvoiceNumber>
          <DescriptionOfGoods>string</DescriptionOfGoods>
          <DeliveryNotificationEmail>string</DeliveryNotificationEmail>
          <IdControlFlag>int</IdControlFlag>
          <PhonePrealertFlag>int</PhonePrealertFlag>
          <SmsToShipper>int</SmsToShipper>
          <SmsToConsignee>int</SmsToConsignee>
          <InsuranceValue>decimal</InsuranceValue>
          <InsuranceValueCurrency>string</InsuranceValueCurrency>
          <ValueOfGoods>decimal</ValueOfGoods>
          <ValueOfGoodsCurrency>string</ValueOfGoodsCurrency>
          <ValueOfGoodsPaymentType>int</ValueOfGoodsPaymentType>
          <DeliveryByTally>int</DeliveryByTally>
          <ThirdPartyAccountNumber>string</ThirdPartyAccountNumber>
          <ThirdPartyExpenseCode>string</ThirdPartyExpenseCode>
          <PackageDimensions>
            <DimensionInfo xsi:nil="true" />
            <DimensionInfo xsi:nil="true" />
          </PackageDimensions>
          <ShipperAccountId>int</ShipperAccountId>
          <ShipperCityName>string</ShipperCityName>
          <ShipperAreaName>string</ShipperAreaName>
          <ConsigneeAccountId>int</ConsigneeAccountId>
          <ConsigneeCityName>string</ConsigneeCityName>
          <ConsigneeAreaName>string</ConsigneeAreaName>
          <ThirdPartyAccountId>int</ThirdPartyAccountId>
        </ShipmentInfo>
        <MinistryofFinanceNumber>string</MinistryofFinanceNumber>
        <SlicCode>string</SlicCode>
        <WaybillList>
          <string>string</string>
          <string>string</string>
        </WaybillList>
        <BarkodArrayPng>
          <string>string</string>
          <string>string</string>
        </BarkodArrayPng>
      </OnDemandPickupRequest_Type1Result>
    </OnDemandPickupRequest_Type1Response>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /wsCreateShipment/wsCreateShipment.asmx HTTP/1.1
Host: ws.ups.com.tr
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <OnDemandPickupRequest_Type1 xmlns="https://ws.ups.com.tr/wsCreateShipment">
      <SessionID>string</SessionID>
      <OnDemandPickupRequestInfo>
        <LabelSource>int</LabelSource>
        <PickupRequestDay>dateTime</PickupRequestDay>
        <RequestedBoxList>
          <BoxType>
            <BoxTypeCode>int</BoxTypeCode>
            <BoxCount>int</BoxCount>
          </BoxType>
          <BoxType>
            <BoxTypeCode>int</BoxTypeCode>
            <BoxCount>int</BoxCount>
          </BoxType>
        </RequestedBoxList>
        <ShipmentInfo>
          <ShipperAccountNumber>string</ShipperAccountNumber>
          <ShipperName>string</ShipperName>
          <ShipperContactName>string</ShipperContactName>
          <ShipperAddress>string</ShipperAddress>
          <ShipperCityCode>int</ShipperCityCode>
          <ShipperAreaCode>int</ShipperAreaCode>
          <ShipperPostalCode>string</ShipperPostalCode>
          <ShipperPhoneNumber>string</ShipperPhoneNumber>
          <ShipperPhoneExtension>string</ShipperPhoneExtension>
          <ShipperMobilePhoneNumber>string</ShipperMobilePhoneNumber>
          <ShipperEMail>string</ShipperEMail>
          <ShipperExpenseCode>string</ShipperExpenseCode>
          <ConsigneeAccountNumber>string</ConsigneeAccountNumber>
          <ConsigneeName>string</ConsigneeName>
          <ConsigneeContactName>string</ConsigneeContactName>
          <ConsigneeAddress>string</ConsigneeAddress>
          <ConsigneeCityCode>int</ConsigneeCityCode>
          <ConsigneeAreaCode>int</ConsigneeAreaCode>
          <ConsigneePostalCode>string</ConsigneePostalCode>
          <ConsigneePhoneNumber>string</ConsigneePhoneNumber>
          <ConsigneePhoneExtension>string</ConsigneePhoneExtension>
          <ConsigneeMobilePhoneNumber>string</ConsigneeMobilePhoneNumber>
          <ConsigneeEMail>string</ConsigneeEMail>
          <ConsigneeExpenseCode>string</ConsigneeExpenseCode>
          <ServiceLevel>int</ServiceLevel>
          <PaymentType>int</PaymentType>
          <PackageType>string</PackageType>
          <NumberOfPackages>int</NumberOfPackages>
          <CustomerReferance>string</CustomerReferance>
          <CustomerInvoiceNumber>string</CustomerInvoiceNumber>
          <DeliveryNotificationEmail>string</DeliveryNotificationEmail>
          <IdControlFlag>int</IdControlFlag>
          <PhonePrealertFlag>int</PhonePrealertFlag>
          <SmsToShipper>int</SmsToShipper>
          <SmsToConsignee>int</SmsToConsignee>
          <InsuranceValue>decimal</InsuranceValue>
          <InsuranceValueCurrency>string</InsuranceValueCurrency>
          <ValueOfGoods>decimal</ValueOfGoods>
          <ValueOfGoodsCurrency>string</ValueOfGoodsCurrency>
          <ValueOfGoodsPaymentType>int</ValueOfGoodsPaymentType>
          <DeliveryByTally>int</DeliveryByTally>
          <ThirdPartyAccountNumber>string</ThirdPartyAccountNumber>
          <ThirdPartyExpenseCode>string</ThirdPartyExpenseCode>
          <PackageDimensions>
            <DimensionInfo xsi:nil="true" />
            <DimensionInfo xsi:nil="true" />
          </PackageDimensions>
        </ShipmentInfo>
      </OnDemandPickupRequestInfo>
    </OnDemandPickupRequest_Type1>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <OnDemandPickupRequest_Type1Response xmlns="https://ws.ups.com.tr/wsCreateShipment">
      <OnDemandPickupRequest_Type1Result>
        <ShipmentNo>string</ShipmentNo>
        <ErrorCode>int</ErrorCode>
        <ErrorDefinition>string</ErrorDefinition>
        <ShipmentInfo>
          <ShipperAccountNumber>string</ShipperAccountNumber>
          <ShipperName>string</ShipperName>
          <ShipperContactName>string</ShipperContactName>
          <ShipperAddress>string</ShipperAddress>
          <ShipperCityCode>int</ShipperCityCode>
          <ShipperAreaCode>int</ShipperAreaCode>
          <ShipperPostalCode>string</ShipperPostalCode>
          <ShipperPhoneNumber>string</ShipperPhoneNumber>
          <ShipperPhoneExtension>string</ShipperPhoneExtension>
          <ShipperMobilePhoneNumber>string</ShipperMobilePhoneNumber>
          <ShipperEMail>string</ShipperEMail>
          <ShipperExpenseCode>string</ShipperExpenseCode>
          <ConsigneeAccountNumber>string</ConsigneeAccountNumber>
          <ConsigneeName>string</ConsigneeName>
          <ConsigneeContactName>string</ConsigneeContactName>
          <ConsigneeAddress>string</ConsigneeAddress>
          <ConsigneeCityCode>int</ConsigneeCityCode>
          <ConsigneeAreaCode>int</ConsigneeAreaCode>
          <ConsigneePostalCode>string</ConsigneePostalCode>
          <ConsigneePhoneNumber>string</ConsigneePhoneNumber>
          <ConsigneePhoneExtension>string</ConsigneePhoneExtension>
          <ConsigneeMobilePhoneNumber>string</ConsigneeMobilePhoneNumber>
          <ConsigneeEMail>string</ConsigneeEMail>
          <ConsigneeExpenseCode>string</ConsigneeExpenseCode>
          <ServiceLevel>int</ServiceLevel>
          <PaymentType>int</PaymentType>
          <PackageType>string</PackageType>
          <NumberOfPackages>int</NumberOfPackages>
          <CustomerReference>string</CustomerReference>
          <CustomerInvoiceNumber>string</CustomerInvoiceNumber>
          <DescriptionOfGoods>string</DescriptionOfGoods>
          <DeliveryNotificationEmail>string</DeliveryNotificationEmail>
          <IdControlFlag>int</IdControlFlag>
          <PhonePrealertFlag>int</PhonePrealertFlag>
          <SmsToShipper>int</SmsToShipper>
          <SmsToConsignee>int</SmsToConsignee>
          <InsuranceValue>decimal</InsuranceValue>
          <InsuranceValueCurrency>string</InsuranceValueCurrency>
          <ValueOfGoods>decimal</ValueOfGoods>
          <ValueOfGoodsCurrency>string</ValueOfGoodsCurrency>
          <ValueOfGoodsPaymentType>int</ValueOfGoodsPaymentType>
          <DeliveryByTally>int</DeliveryByTally>
          <ThirdPartyAccountNumber>string</ThirdPartyAccountNumber>
          <ThirdPartyExpenseCode>string</ThirdPartyExpenseCode>
          <PackageDimensions>
            <DimensionInfo xsi:nil="true" />
            <DimensionInfo xsi:nil="true" />
          </PackageDimensions>
          <ShipperAccountId>int</ShipperAccountId>
          <ShipperCityName>string</ShipperCityName>
          <ShipperAreaName>string</ShipperAreaName>
          <ConsigneeAccountId>int</ConsigneeAccountId>
          <ConsigneeCityName>string</ConsigneeCityName>
          <ConsigneeAreaName>string</ConsigneeAreaName>
          <ThirdPartyAccountId>int</ThirdPartyAccountId>
        </ShipmentInfo>
        <MinistryofFinanceNumber>string</MinistryofFinanceNumber>
        <SlicCode>string</SlicCode>
        <WaybillList>
          <string>string</string>
          <string>string</string>
        </WaybillList>
        <BarkodArrayPng>
          <string>string</string>
          <string>string</string>
        </BarkodArrayPng>
      </OnDemandPickupRequest_Type1Result>
    </OnDemandPickupRequest_Type1Response>
  </soap12:Body>
</soap12:Envelope>