Skip to main content

About Job

Learn more about the job

For sending Print2Mail you need to create a job first, the final stage of creating Print2Mail is known as a job. Sending Print2Mail can't be done without this section.

You will require to make some required data available before calling job API. For example, Address ID, recipient ID, etc.

Job Attributes

An object job could have the following attributes.

KeyTypeLengthDescription
UniqueJobIdString150An Unique Id for every Job
CreatedDateDatetime150Date and time of creation
LastModifiedDatetime150Date and time of modification
ShipperHashString150Shipper Hash, to map with a particular shipper
TopicHashString150Unique Topic Hash ID, topic is a very interesting feature of DPS, to know more about this please check here
DocumentHashListArray150Array of string, containing the hashes of every document
NotarizedDocumentHashString150NotarizedDocumentHash is required if you want to mail a document and it should be notarized
ExtraInfoString150Optional, if you want to provide extra information for a particular Print2Mail
DoubleSidedBooleanfalseSet true if Print2Mail is double sided
FromNameString150Name of sender
FromCompanyString150Sender's Company name
FromAddressLine1String150Sender's first line address
FromAddressLine2String150Sender's second line address
FromCityString150Sender's city name
FromStateString2Sender's state code only two character
FromZipString6Zip code of sender
FromCountryString150Country name of sender.
Note: currently supported United state only.
FromPhoneNumber10Sender's phone number
Note: Do not add any prefix like std or ISD or country code etc just use your 10 digit phone number
PostageTypeString150Type of your postage for this job, Choices can be 'FC', 'FCSig', 'ERR', 'ERRSig', 'PMAIL', 'PRIL'
DispatchStatusString150Your Print2Mail dispatch status initially set to draft
WeightFloat0.00Two floating point value
Note: all weights are considered ounces(oz) unit
UnitString2Valid Unit for weight is Lb and Oz (Lb stands for pounds and Oz stands for ounces)
PageCountNumber5Total number of pages that exist in a particular Print2Mail.
ModeString150Mode of Print2Mail , initially Draft.
IsDocumentVerifiedBooleanfalseReturn the value in form or boolean, return true if the document is verified.
ColorBooleanfalseReturn whether it is a black and white or color Print2Mail , return false if black & white else return true if colored.
COMTypeString150This would be the type of selected certificate of mailing.
COMCodeString150This is the certificate of mailing short code and valid codes are only COM.
IsComBooleanConfirmation of whether is a COM included or not.
StorageClassString150Type of storage class are 1Year, 2Year and 5Year, default set to "1Year"
ReturnEnvelopeBooleanfalse/trueThis would be boolean and true if you requested to attach a return envelope otherwise it would be false.
ApiServiceString150Type of API service,
Note: only Print2Mail is supported
JobHashString150Hash id of that particular job, autogenerated

List of Postage and their valid containers

NoPostage TypeDescriptionContainers
1PMAILPriority MailFLAT RATE ENVELOPE.
LEGAL FLAT RATE ENVELOPE.
PADDED FLAT RATE ENVELOPE.
SM FLAT RATE ENVELOPE.
SM FLAT RATE BOX
MD FLAT RATE BOX.
LG FLAT RATE BOX.
REGIONALRATEBOXA.
REGIONALRATEBOXB.
VARIABLE.
2PRILPriority ExpressFLAT RATE ENVELOPE.
LEGAL FLAT RATE ENVELOPE.
PADDED FLAT RATE ENVELOPE.
VARIABLE.
3FCFirst Class PackageVARIABLE
4FCSigFirst Class Package with SignatureVARIABLE
5ERRFirst Class Certified Mail with return ReceiptVARIABLE
6ERRSigFirst Class Certified Mail with Return SignatureVARIABLE
7Parcel SelectParcel SelectVARIABLE
note

An object Checkout could have the following attributes

KeyTypeLengthDescription
JobHashString150Your newly created JobHash and it is required for checkout.
ModeString150Mode of checkout, It could be either Preview or Live
ShipDateString150This would be estimated ShipDate and format should be 'mm/dd/yyyy'
ContainerString150Pass valid container string, for more check here
WidthString150Width will be required, if container is not VARIABLE
LengthString150Length will be required, if container is not VARIABLE
HeightString150Height will be required, if container is not VARIABLE