Shipping Integrator V5 - Online Help
Shipping Integrator V5
Questions / Feedback?

NotifyDetail Type

Represents a single recipient to be notified via email.

Remarks

This type contains specific information about a recipient to be notified via email on shipment, exception and/or delivery status.

In FedEx, this type is also used to specify recipients of Signature Proof of Delivery (SPOD) via fax.

The fields contained by this type are listed below.

Fields

Aggregate
String

This can be used to set the entire aggregate xml for the recipient to be notified. This is only valid for ship requests only when the EmailNotification=0x00000004 is present in the ShipmentSpecialServices.

FedEx

For FedEx, this aggregate should contain descriptive data required for FedEx to provide e-mail notification to the customer regarding the shipment.

The format of this aggregate should be as follows:

<EMailNotificationDetail>
  <PersonalMessage>personal_message</PersonalMessage>
  <Recipients> (this aggregate can be entered up to six times)
    <EMailNotificationRecipientType>recipient_type</EMailNotificationRecipientType>
    <EMailAddress>recipient_email</EMailAddress>
    <NotifyOnShipment>true_or_false</NotifyOnShipment>
    <NotifyOnException>true_or_false</NotifyOnException>
    <NotifyOnDelivery>true_or_false</NotifyOnDelivery>
    <Format>format_type</Format>
    <Localization>
      <LanguageCode>language_code</LanguageCode>
    </Localization>
  </Recipients>
</EMailNotificationDetail>

In this aggregate, you can specify:

  • a message text to be sent in the email notification (via the PersonalMessage element). This is optional.
  • the type of the recipient: SHIPPER, RECIPIENT, BROKER, OTHER (via the EMailNotificationRecipientType element). This is optional.
  • the recipient's email address (via the EMailAddress element). This is required.
  • whether the recipient is to be notified on shipment, exception or delivery (via the NotifyOnShipment, NotifyOnException, NotifyOnDelivery elements). These are required.
  • the format of the message: HTML, TEXT, WIRELESS (via the Format element). This is required.
  • the language code you want the message to be sent to (via the LanguageCode element). This is optional. If not present, it will default to English (EN).
The specified shipment notification can be sent up to six (6) email addresses to receive (i.e., the Recipients aggregate can be entered up to 6 times.

This setting is optional. If Aggregate is not set it will be automatically created by the component.

UPS

For UPS, the following format is valid:

<Notification> (this aggregate can be entered up to three times)
  <NotificationCode>notification_code</NotificationCode>
  <EMailMessage>
    <EMailAddress>recipient_email</EMailAddress>  (this aggregate can be entered up to five times)
    <UndeliverableEMailAddress>undeliverable_email</UndeliverableEMailAddress>
    <FromEMailAddress>sender_email</FromEMailAddress>
    <FromName>sender_name</FromName>
    <Memo>message</Memo>
    <Subject>subject</Subject>
    <SubjectCode>subject_code</SubjectCode>
  </EMailMessage>
</Notification>

In this aggregate, you can specify:

  • a notification code which describes the notification requested: "6" (Ship Notification), "7" (Exception Notification), "8" (Delivery Notification), or "2" (Return Notification). This is required.
  • the recipient's email address (via the EMailAddress element). This is required.
  • the undeliverable email address if to specify where an undeliverable email should be sent. This is optional.
  • the email address for the reply-to address. The From field of the email will contain pkginfo@ups.com. This should be specified by the FromEMailAddress element.
  • an optional from name.
  • a message text to be sent in the email notification (via the Memo element). This is optional.
  • the email's subject. This is optional
  • an optional subject code which specifies one of the following notification codes that will appear in the subject: "01" (Shipment Reference Number 1), "02" (Shipment Reference Number 2), "03" (package Reference Number 1), "04" (package Reference Number 2), and "08" (Subject Text) for Return Notification only.

Note that this field does not apply for USPS and CanadaPost.

Email
String

Email address of the recipient to be notified. This is required to be provided for each recipient.

Fax
String

Fax number of the recipient that is going to receive the Signature Proof of Delivery via fax. When the FaxProofOfDelivery method is called, the Fax is required. In this case, the Name should be provided as well.

Note this is only used by FedEx.

Message
String

User defined text that will be included in the email to be sent to Email. This is optional.

For FedEx, when multiple recipients exist, the message for the first recipient is the only message that will be included in the request. FedEx only allows one message for all of the recipients of the notification email.

This field is not used by USPS or Canada Post.

Name
String

The name associated with the notification.

For FedEx, this is the name of the recipient that is going to receive the Signature Proof of Delivery via fax. When the FaxProofOfDelivery method is called, the Name is required. In this case, the Fax should be provided as well.

For USPS, this name will appear in the text of the Signature Confirmation e-mail message.

This field is not applicable to UPS or Canada Post.

NotificationFlags
Integer

Identifies the type of notification requested. Valid values are:

Value Meaning
0x00000001 (On Shipment) An email notification is requested to be sent to the Email when the package is shipped.
0x00000002 (On Exception) An email notification should be sent to the Email when an exception occurs during package movement from origin to destination.
0x00000004 (On Delivery) An email notification is requested to be sent to the Email when the package is delivered.
0x00000008 (On Tender) An email notification is requested to be sent to the Email when the package is tendered.
0x00000010 (On Return) An email notification is requested to be sent to the Email when the package is returned.
0x00000020 (HTML) The email should be sent in HTML format.
0x00000040 (Text) The email should be sent in Text format.
0x00000080 (Wireless) The email should be sent in Wireless format.

For FedEx notifications, the On Return flag does not apply.

For UPS notifications, the formats (HTML, Text, and Wireless) do not apply.

For CanadaPost notifications, only the On Shipment, On Exception, and On Delivery apply.

This field is not used by USPS.

RecipientType
TRecipientTypes

Identifies the set of valid email notification recipient types. Valid values are:

rtUnspecified (0)
rtRecipient (1)
rtShipper (2)
rtBroker (3)
rtOther (4)
rtThirdParty (5)

For FedEx, when rtShipper, rtRecipient or rtBroker are set, the email address associated with their definitions will be used and the Email specified for these types will be ignored.

For USPS, only the rtShipper and rtRecipient are valid.

This field does not apply to UPS or Canada Post notifications.

Constructors

[VB.NET]
Public NotifyDetail()

[C#]
public NotifyDetail();



[VB.NET]
Public NotifyDetail(ByVal NotificationFlags As Integer, ByVal Email As String, ByVal Message As String)

[C#]
public NotifyDetail(int notificationFlags, string email, string message);



[VB.NET]
Public NotifyDetail(ByVal NotificationFlags As Integer, ByVal Email As String)

[C#]
public NotifyDetail(int notificationFlags, string email);



[VB.NET]
Public NotifyDetail(ByVal NotificationFlags As Integer, ByVal RecipientType As Integer, ByVal Email As String)

[C#]
public NotifyDetail(int notificationFlags, int recipientType, string email);



[VB.NET]
Public NotifyDetail(ByVal Name As String, ByVal Fax As String)

[C#]
public NotifyDetail(string name, string fax);



 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 5.0.6240.0