Retrieves all mail categories defined in IPS.
Access to this method is authorized by the Get Reference Data operation.
Success
Bad Request
Unauthorized
Internal Server Error
{- "MailCategories": [
- {
- "MailCategoryCd": "A",
- "MailCategoryNm": "Air",
- "ValidInd": 1,
- "Translations": [
- {
- "LanguageCD": "FR",
- "Translation": "Aérien"
}
]
}
]
}
Retrieves all mail categories defined in IPS.
Access to this method is authorized by the Get Reference Data operation.
Success
Bad Request
Unauthorized
Internal Server Error
{- "MailClasses": [
- {
- "MailClassCd": "C",
- "MailClassNm": "PARCELS (CP)",
- "ValidInd": 1,
- "Translations": [
- {
- "LanguageCD": "FR",
- "Translation": "Aérien"
}
]
}
]
}
Retrieves the mail item categories defined in IPS.
Success
Bad Request
Unauthorized
Internal Server Error
{- "MailItemCategories": [
- {
- "MailItemCategoryCd": "IN",
- "MailItemCategoryNm": "Insured",
- "MailClasses": [
- {
- "mailClassCd": "U"
}
], - "ValidInd": 1,
- "Translations": [
- {
- "LanguageCD": "FR",
- "Translation": "Aérien"
}
]
}
]
}
Retrieves all mail categories defined in IPS.
Access to this method is authorized by the Get Reference Data operation.
Success
Bad Request
Unauthorized
Internal Server Error
{- "MailSubClasses": [
- {
- "MailSubclassCd": "UN",
- "MailClassNm": "LETTERS - LC/AO",
- "MailClassCd": "U",
- "ValidInd": 1,
- "Translations": [
- {
- "LanguageCD": "FR",
- "Translation": "Aérien"
}
]
}
]
}
Retrieves all conveyance types defined in IPS.
Access to this method is authorized by the Get Reference Data operation.
Success
Bad Request
Unauthorized
Internal Server Error
{- "ConveyanceTypes": [
- {
- "ConveyanceTypeCd": "P",
- "MailClassNm": "Priority mail",
- "ValidInd": 1,
- "Translations": [
- {
- "LanguageCD": "FR",
- "Translation": "Aérien"
}
]
}
]
}
Retrieves all product types defined in IPS.
Access to this method is authorized by the Get Reference Data operation.
Success
Bad Request
Unauthorized
Internal Server Error
{- "ProductTypes": [
- {
- "ProductTypeCd": "P",
- "MailClassCd": "C",
- "ProductTypeNm": "EPG",
- "ValidInd": 1,
- "Translations": [
- {
- "LanguageCD": "FR",
- "Translation": "Aérien"
}
]
}
]
}
Retrieves all product types defined in IPS.
Access to this method is authorized by the Get Reference Data operation.
Success
Bad Request
Unauthorized
Internal Server Error
{- "ReceptacleContentFormats": [
- {
- "ReceptacleContentFormatCd": "P",
- "ReceptacleContentFormatNm": "Small",
- "ValidInd": 1,
- "Translations": [
- {
- "LanguageCD": "FR",
- "Translation": "Aérien"
}
]
}
]
}
Retrieves the receptacle types defined in IPS.
Access to this method is authorized by the Get Reference Data operation.
Success
Bad Request
Unauthorized
Internal Server Error
{- "ReceptacleSubtypes": [
- {
- "ReceptacleSubtypeCd": "BG",
- "ReceptacleSubtypeNm": "Bag",
- "ReceptacleTypeMaxWeight": 12345.123,
- "ReceptacleSubTypeWeight": 12345.123,
- "ParentRecetacleTypeCd": "st",
- "ValidInd": 1,
- "SampleRateCd": "B1",
- "TareMinWeight": 12345.123,
- "TareMaxWeight": 12345.123,
- "ReceptacleCategoryCd": "BG",
- "Translations": [
- {
- "LanguageCD": "FR",
- "Translation": "Aérien"
}
]
}
]
}
Retrieves the conditions defined in IPS.
Access to this method is authorized by the Get Reference Data operation.
Success
Bad Request
Unauthorized
Internal Server Error
{- "Conditions": [
- {
- "ConditionCd": 20,
- "ConditionNm": "Received here in good condition",
- "MailUnitTypeCd": "MI",
- "ValidInd": 1,
- "Translations": [
- {
- "LanguageCD": "FR",
- "Translation": "Aérien"
}
]
}
]
}
Retrieves the conditions defined in IPS.
Access to this method is authorized by the Get Reference Data operation.
Success
Bad Request
Unauthorized
Internal Server Error
{- "PostalStatuses": [
- {
- "PostalStatusCd": 0,
- "PostalStatusNm": "Normal",
- "MailUnitTypeCd": "MI",
- "PostalStatusFCD": "MINL",
- "ValidInd": 1,
- "Translations": [
- {
- "LanguageCD": "FR",
- "Translation": "Aérien"
}
]
}
]
}
Retrieves the conditions defined in IPS.
Access to this method is authorized by the Get Reference Data operation.
Success
Bad Request
Unauthorized
Internal Server Error
{- "ServiceIndicators": [
- {
- "ServiceIndicatorMin": "RA",
- "ServiceIndicatorMax": "RZ",
- "MailClassCd": "U",
- "MailItemCategoryCd": "RG",
- "ConveyanceTypeCd": "P",
- "ProductTypeCd": "s",
- "MailitemContentCd": "BG",
- "CodIndicator": 0,
- "ExpressInd": 0
}
]
}
Retrieves the event types defined in IPS.
Access to this method is authorized by the Get Reference Data operation.
Success
Bad Request
Unauthorized
Internal Server Error
{- "EventTypes": [
- {
- "EventTypeCd": 1,
- "EventTypeNm": "Receive item from customer (Otb)",
- "MailUnitTypeCd": "MI",
- "InboundOutboundInd": "O",
- "ResultStateIndCd": 0,
- "ValidInd": 1,
- "AllowedInitialStates": [
- {
- "StateIndCd": 3
}
], - "Translations": [
- {
- "LanguageCD": "FR",
- "Translation": "Aérien"
}
]
}
]
}
Retrieves the state indicators defined in IPS. Access to this method is authorized by the Get Reference Data operation.
Success
Bad Request
Unauthorized
Internal Server Error
{- "State": [
- {
- "StateIndCd": 1,
- "StateIndNm": "Unassigned (not in a bag)",
- "MailUnitTypeCd": "MI",
- "ValidInd": 1,
- "Translations": [
- {
- "LanguageCD": "FR",
- "Translation": "Aérien"
}
]
}
]
}
Retrieves the currencies defined in IPS.
Access to this method is authorized by the Get Reference Data operation.
Success
Bad Request
Unauthorized
Internal Server Error
{- "Currencies": [
- {
- "CurrencyCd": "AED",
- "CurrencyNm": "UAE Dirham",
- "ValidInd": 1,
- "Translations": [
- {
- "LanguageCD": "FR",
- "Translation": "Aérien"
}
]
}
]
}
Retrieves the countries defined in IPS.
Access to this method is authorized by the Get Reference Data operation.
Success
Bad Request
Unauthorized
Internal Server Error
{- "Countries": [
- {
- "CountryCd": "AM",
- "CountryNm": "ARMENIA",
- "ValidInd": 1,
- "Latitude": -4000,
- "Longitude": 4500,
- "EuEntranceDt": "2019-08-24",
- "Translations": [
- {
- "LanguageCD": "FR",
- "Translation": "Aérien"
}
]
}
]
}
Retrieves the customs office types defined in IPS.
Success
Bad Request
Unauthorized
Internal Server Error
{- "CustomOfficeTypes": [
- {
- "CustomsOfficeTypeCd": "OE",
- "CustomsOfficeTypeNm": "At the office of exchange; default value",
- "Translations": [
- {
- "LanguageCD": "FR",
- "Translation": "Aérien"
}
]
}
]
}
Retrieves the custom release statuses defined in IPS.
Success
Bad Request
Unauthorized
Internal Server Error
{- "CustomsReleaseStatuses": [
- {
- "CustomsReleaseStatusCd": "EA",
- "CustomsReleaseStatusNm": "Export authorized",
- "Translations": [
- {
- "LanguageCD": "FR",
- "Translation": "Aérien"
}
]
}
]
}
Retrieves the sampling rules defined in IPS. Access to this method is authorized by the Get Reference Data operation.
Success
Bad Request
Unauthorized
Internal Server Error
{- "SamplingRules": [
- {
- "DateFrom": "2019-08-24",
- "DateTo": "2019-08-24",
- "OrigOperatorCd": "str",
- "OrigOfficePartCd": "FRCDGA",
- "DestOperatorCd": "str",
- "DestOfficePartCd": "FRCDGA",
- "MailCategoryCd": "A",
- "MailClassCd": "U",
- "MailSubClassFCd": "UN",
- "AdditionalBagCharac": 0,
- "DispatchNo": "string",
- "ReceptacleSerialNo": "string",
- "SamplingAction": "string",
- "RuleNationalInd": 0,
- "SamplingRate": 0,
- "ReceptacleSubTypeCd": "BG",
- "ReceptacleContentFormatCd": "E",
- "SelectRandomlyInd": 0,
- "UseForSampling": true,
- "ReceptacleCategoryCd": "BG",
- "LastModifiedGmt": "2022-01-30T08:06:58.1234567"
}
]
}
Retrieves the postal operators defined in IPS.
Access to this method is authorized by the Get Reference Data operation.
Success
Bad Request
Unauthorized
Internal Server Error
{- "Operators": [
- {
- "OperatorCd": "AMA",
- "OperatorLongNm": "Haypost AM",
- "OperatorShortNm": "ARMENIA",
- "ValidInd": 1,
- "PaymentMethodCd": "DR",
- "EmailAddress": "string",
- "PostalAddress": "string",
- "EtoeSeparateInd": "N",
- "NumberSamplingDays": "N",
- "CountriesList": [
- {
- "CountryCD": "AM"
}
]
}
]
}
Retrieves the airlines defined in IPS.
Access to this method is authorized by the Get Reference Data operation.
Success
Bad Request
Unauthorized
Internal Server Error
{- "Airlines": [
- {
- "AirlineCd": "LX",
- "AirlineNm": "SWISS International Air Lines Ltd",
- "ValidInd": 1
}
]
}
Retrieves the IMPCs defined in IPS.
Access to this method is authorized by the Get Reference Data operation.
Success
Bad Request
Unauthorized
Internal Server Error
{- "Impcs": [
- {
- "OfficeFcd": "CAYTOA",
- "OfficeLongNm": "TORONTO-A",
- "OfficeShortNm": "TORONTO-A",
- "CountryCd": "CA",
- "OperatorCd": "CAA",
- "ValidInd": 1,
- "EmailAddress": "string",
- "PostalAddress": "string",
- "Restrictions": "string",
- "ValidFrom": "2003-10-04",
- "ValidTo": "",
- "DispatchesRoutedVia": "string",
- "SpecialType": "",
- "BilateralAgreementRequired": 0,
- "MailFlows": [
- {
- "MailFlowCd": "I"
}
], - "MailCategoriesInbound": [
- {
- "MailCategoryCd": "A"
}
], - "MailClassesInbound": [
- {
- "MailClassCd": "U"
}
], - "MailCategoriesOutbound": [
- {
- "MailCategoryCd": "A"
}
], - "MailClassesOutbound": [
- {
- "MailClassCd": "U"
}
], - "OfficeTypes": [
- {
- "OfficeTypeCd": "OOE"
}
]
}
]
}
Retrieves the locations defined in IPS.
Access to this method is authorized by the Get Reference Data operation.
The addition of parameters for filtering ref data API results for Locations was released in package 6 of IPS 2024 SP1.
In addition to the standard error codes described in Response codes, the IPS API returns a 400 error code for specific error cases, with additional error information as listed in the table below.
Code | Description |
---|---|
1 | General error. |
2 | Mandatory value not provided. |
3 | A property value in the request contains an invalid value or is in the wrong format. |
4 | Invalid reference data |
Success
Bad Request
Unauthorized
Internal Server Error
{- "Locations": [
- {
- "LocationFcd": "CAYTO",
- "CountryCd": "CA",
- "LocationCd": "YTO",
- "LocationNm": "Metropolitan Area Apt/Toronto",
- "LocationStatusCd": "AI",
- "SuspendedInd": 0,
- "ValidInd": 1,
- "IataInd": 0,
- "Latitude": 0,
- "Longitude": 0,
- "CutoffAtOrigin": 0,
- "CutoffAtDestination": 0,
- "MinimumTransitTime": 0,
- "LocationTypes": [
- {
- "LocationTypeCd": "0"
}
]
}
]
}
Retrieves the location types defined in IPS.
Access to this method is authorized by the Get Reference Data operation.
Success
Bad Request
Unauthorized
Internal Server Error
{- "LocationTypes": [
- {
- "LocationTypeCd": "4",
- "LocationTypeNm": "Airport",
- "ValidInd": 1,
- "Translations": [
- {
- "LanguageCD": "FR",
- "Translation": "Aérien"
}
]
}
]
}
Retrieves the location statuses defined in IPS.
Access to this method is authorized by the Get Reference Data operation.
Success
Bad Request
Unauthorized
Internal Server Error
{- "LocationStatuses": [
- {
- "LocationStatusCd": "AA",
- "LocationStatusNm": "Approved by government",
- "ValidInd": 1,
- "Translations": [
- {
- "LanguageCD": "FR",
- "Translation": "Aérien"
}
]
}
]
}
Retrieves the own offices defined in IPS.
Access to this method is authorized by the Get Reference Data operation.
Success
Bad Request
Unauthorized
Internal Server Error
{- "OwnOffices": [
- {
- "OwnOfficeCd": 0,
- "OfficeFCD": "CAYTOA",
- "OfficeNm": "TORONTO-A",
- "DbServerNm": "string",
- "ValidInd": 1,
- "PhoneNo": "string",
- "Comments": "string",
- "HouseNumber": "string",
- "AddressLine1": "string",
- "AddressLine2": "string",
- "Postcode": "string",
- "City": "string",
- "CustomsOfficeCd": "string",
- "CustomsOfficeTypeCd": "OE",
- "Locations": [
- {
- "LocationFcd": "CAYTOA"
}
], - "MailSubclasses": [
- {
- "MailSubclassFcd": "UN"
}
], - "OfficeTypes": [
- {
- "OfficeTypeCd": "OOE"
}
], - "NextOffices": [
- {
- "NextOfficeFCd": "CAYTOA",
- "NextOfficeQualifier": "I"
}
]
}
]
}
Import own offices.
Access to this method is authorized by the Import Own Offices operation.
This functionality was released in package 7 of IPS 2024 SP1.
In addition to the standard error codes described in Response codes, the IPS API returns a 400 error code for specific error cases, with additional error information as listed in the table below.
Code | Description |
---|---|
1 | General error. |
2 | Mandatory value not provided. |
3 | A property value in the request contains an invalid value or is in the wrong format. |
4 | Invalid reference data |
Success
Bad Request
Unauthorized
Internal Server Error
{- "OfficeFCd": "CAYTOA",
- "OfficeNm": "TORONTO-A",
- "AddressLine1": "string",
- "AddressLine2": "string",
- "HouseNumber": "string",
- "Postcode": "string",
- "City": "string",
- "PhoneNo": "string",
- "Comments": "string",
- "DbServerNm": "string",
- "IsValid": true,
- "CustomsOfficeCd": "string",
- "CustomsOfficeTypeCd": "OE",
- "Locations": [
- {
- "LocationFCd": "CAYTOA"
}
], - "MailSubclasses": [
- {
- "MailSubclassFCd": "UN"
}
], - "OfficeTypes": [
- {
- "OfficeTypeCd": "OOE"
}
], - "NextOffices": [
- {
- "NextOfficeFCd": "CAYTOA",
- "NextOfficeQualifier": "I"
}
]
}
{- "Receptacle": {
- "OfficeFCd": "CAYTOA",
- "OfficeNm": "TORONTO-A",
- "AddressLine1": "string",
- "AddressLine2": "string",
- "HouseNumber": "string",
- "Postcode": "string",
- "City": "string",
- "PhoneNo": "string",
- "Comments": "string",
- "DbServerNm": "string",
- "IsValid": true,
- "CustomsOfficeCd": "string",
- "CustomsOfficeTypeCd": "OE",
- "Locations": [
- {
- "LocationFCd": "CAYTOA"
}
], - "MailSubclasses": [
- {
- "MailSubclassFCd": "UN"
}
], - "OfficeTypes": [
- {
- "OfficeTypeCd": "OOE"
}
], - "NextOffices": [
- {
- "NextOfficeFCd": "CAYTOA",
- "NextOfficeQualifier": "I"
}
]
}
}
Retrieves the retention reasons defined in IPS.
Access to this method is authorized by the Get Reference Data operation.
Success
Bad Request
Unauthorized
Internal Server Error
{- "RetentionReasons": [
- {
- "RetentionReasonCd": 19,
- "RetentionReasonNm": "Prohibited articles",
- "ValidInd": 1,
- "Translations": [
- {
- "LanguageCD": "FR",
- "Translation": "Aérien"
}
]
}
]
}
Retrieves the transport companies defined in IPS.
Access to this method is authorized by the Get Reference Data operation.
Success
Bad Request
Unauthorized
Internal Server Error
{- "TransportCompanies": [
- {
- "transportCompanyCd": "TC1",
- "transportCompanyNm": "Transport company 1",
- "transportTypeCd": "TK",
- "vatWithinEu": true,
- "validInd": 1
}
]
}
Retrieves the EDI addresses defined in IPS.
Access to this method is authorized by the Get Reference Data operation.
Success
Bad Request
Unauthorized
Internal Server Error
{- "ediaddresses": [
- {
- "MessageType": "CARDIT",
- "CountryCd": "IT",
- "CarrierCd": "LX",
- "OperatorCd": "FRA",
- "MailClassCd": "C",
- "MailCategoryCd": "A",
- "MessageVersion": 2.1,
- "EdiAddress": "GLG11",
- "CapeInd": 1,
- "ReportInd": 1,
- "validInd": 1,
- "ProductTypeCd": "P",
- "TransportTypeCd": "PL"
}
]
}