Import service

Imports mailitems

Import mail items

Imports new and existing mail items.

Access to this method is authorized by the Import mail items operation.

Securityips_token
Request
Request Body schema: application/json
AdditionalFeesCurrencyCd
string
AdditionalFeesValue
number
object (Addressee)
ClassCd
required
string
Content
string
CurrencyCd
string
CustomNo
string
object (CustomsTaxInformation)
DestCountryCd
string
DutiableInd
string
DutiableValue
number <float>
InnrbagId
string or null
required
Array of objects (ItemEvents)
ItemId
required
string
ItemWeight
number <float>
InsuredSDRValue
number <float> ^[0-9]{19}\.[0-9]{4}$

Insured value in XDR

object (Letter)
object (Parcel)
LocalId
string
Misc1
string
Misc2
string
Misc3
string
Misc4
string
MrsExpirationDate
string or null
MrsOriginalId
string or null
MrsStatus
string or null
NetworkEntryLocationTypeCd
string
OperatorCd
string
OrigCountryCd
required
string
PostagePaidCurrencyCd
string
PostagePaidValue
number
PostalStatusFcd
string
ProductTypeCd
string or null
RecptclId
string or null
object (Sender)
object (ServiceTypes)
Value
number
Responses
200

Success

400

Bad Request

401

Unauthorized

500

Internal Server Error

post/ImportService.svc/rest/Mailitem
Request samples
application/json

Request to import a letter

{
  • "ItemId": "LE22101702XPL",
  • "ClassCd": "U",
  • "OrigCountryCd": "PL",
  • "Letter": {
    },
  • "ItemEvents": [
    ]
}
Response samples
application/json
{
  • "Mailitem": {
    }
}