getPackageAttachment

This method is used to retrieve a package attachment.

Request Parameters

Parameter Type Requirement Description
username xsd:string mandatory – cannot be null or empty The username of the registered user who sent the package
password xsd:string mandatory – cannot be null or empty The password of the registered user who sent the package
encodedPassword xsd:boolean optional – can be null (indicates false) Indicates whether the password parameter is MD5 encoded
trackingNumber xsd:string mandatory – cannot be null or empty The tracking ID of the package to retrieve which must be in the same form as that returned by the <Id> element in the Response togetFolderContent.
attachmentNumber xsd:int mandatory – cannot be null or empty The number of the attachment to retrieve as returned in the <Name> element in the Response togetPackageContent .
compressAttachment xsd:boolean mandatory – cannot be null or empty Indicates whether the returned attachment content will be compressed.

Response

Type: AttachmentEx complex type (see below).

Complex Type: AttachmentEx (extends complex type Attachment with additional field)

Parameter Type Requirement Description
error xsd:string optional – can be null or empty This field will be set if an error occurs, otherwise the remaining fields will be set.