Download OpenAPI specification:Download
CDS API for Developers.
Universal Postal Union
International Bureau
Weltpoststrasse 4
3000 Bern 15
Switzerland
CDS API Service Interface
Authenticate the user and password and return a session token access.
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "securityToken": "63de3b10-521c-4dbb-8836-59da8dad803e",
- "userCd": "user_cd",
- "officeCd": "DEAAAA",
- "password": "xxxxxx"
}
{- "SecurityKey": "6d2fce81-5420-4f05-80ec-4894b3166c1e",
- "Office": "DEAAAA",
- "AllowedOffices": [
- "DEAAAA",
- "PTLISA"
]
}
Terminate the authentication session and removes the tempoarary token
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "securityToken": "63de3b10-521c-4dbb-8836-59da8dad803e",
- "userCd": "user_cd"
}
{ }
Anonymous Declarations are declarations done by end user, before mail acceptance, without being associated yet to a mail item ID.
Transforms an anonymous declaration into a real CDS declaration so that ITMATT can be sent to the destination post
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "securityToken": "63de3b10-521c-4dbb-8836-59da8dad803e",
- "anonymousDeclarationId": "9384748AU",
- "internationalItemId": "EE23050001XAU",
- "userCd": "depost",
- "officeCd": "DEAAAA"
}
{ }
Creates/updates an anonymous declaration
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "securityToken": "63de3b10-521c-4dbb-8836-59da8dad803e",
- "anonymousDeclaration": {
- "Data": {
- "CommercialTransactions": [
- {
- "ContentPiecesIndexes": [
- 1,
- 2,
- 4
], - "MarketPlaceId": "string",
- "MarketPlaceUrl": "string",
- "PurchaseOrderNumber": "string",
- "SalesOrderNumber": "string"
}
], - "ContentPieces": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "ImportRestrictions": "string",
- "ImportRestrictionsNotes": "string",
- "Index": 0,
- "NetWeight": 0,
- "Number": 0,
- "OrigCountryCd": "AU",
- "RevisedDescription": "string",
- "RevisedHS": "Revised HS code"
}
], - "CustomerChargingArrangementCd": "string",
- "NatureTransactionReference": "string",
- "Documents": [
- {
- "DocumentId": "string",
- "DocumentName": "string",
- "DocumentType": "string",
- "Url": "string"
}
], - "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "GrossWeight": 0,
- "HandlingClassCd": "N",
- "InsuredValue": 0,
- "InsuredValueCurrencyCd": "string",
- "MaxIndex": 0,
- "NatureTypeCd": "21",
- "NatureTypeDesc": "string",
- "NonDelivInstCd": "string",
- "Observations": "string",
- "OrigDutiesAmt": 0,
- "OrigDutiesCurrencyCd": "string",
- "OriginOfficeCd": "string",
- "OriginOfficeNm": "string",
- "OtherParties": [
- {
- "OtherPartyAddressLine1": "string",
- "OtherPartyAddressLine2": "string",
- "OtherPartyCity": "string",
- "OtherPartyCountryCd": "AU",
- "OtherPartyEmail": "user@example.com",
- "OtherPartyFax": "string",
- "OtherPartyIdRef": "string",
- "OtherPartyName": "string",
- "OtherPartyPostalCertificate": "string",
- "OtherPartyReferenceType": "string",
- "OtherPartyRole": "AG",
- "OtherPartyState": "string",
- "OtherPartyTelephone": "string",
- "OtherPartyTypeOfPerson": "string",
- "OtherPartyZIP": "string"
}
], - "PackageImageLocalPath": "string",
- "PackageImageSourceInfo": "string",
- "Postage": 0,
- "PostageCurrencyCd": "USD",
- "RecipientAddressLine1": "string",
- "RecipientAddressLine2": "string",
- "RecipientCity": "string",
- "RecipientCountryCd": "AU",
- "RecipientEmail": "user@example.com",
- "RecipientFax": "string",
- "RecipientFirstName": "string",
- "RecipientIdRef": "string",
- "RecipientLastName": "string",
- "RecipientName": "string",
- "RecipientPostalCertificate": "string",
- "RecipientReferenceType": "string",
- "RecipientState": "string",
- "RecipientTelephone": "string",
- "RecipientTypeOfPerson": "string",
- "RecipientZIP": "string",
- "SenderAddressLine1": "string",
- "SenderAddressLine2": "string",
- "SenderCity": "string",
- "SenderCountryCd": "AU",
- "SenderEmail": "user@example.com",
- "SenderFirstName": "string",
- "SenderIdRef": "string",
- "SenderLastName": "string",
- "SenderName": "string",
- "SenderPostalCertificate": "string",
- "SenderReferenceType": "string",
- "SenderState": "string",
- "SenderTelephone": "string",
- "SenderTypeOfPerson": "string",
- "SenderZIP": "string",
- "TransportDate": "/Date(1562748420000+0200)/",
- "TransportMode": "PL"
}, - "Id": "2233394CH",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostingDt": "/Date(1562748420000+0200)/"
}
}
{- "CreateOrUpdateAnonymousDeclarationResult": "string"
}
Return non-converted anonymous declarations based on a list of criteria passed as parameters
At least one of the non-required parameters has to be provided.
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "securityToken": "63de3b10-521c-4dbb-8836-59da8dad803e",
- "searchCriteria": {
- "AnonymousDeclarationId": "005461830JO",
- "Recipient": {
- "Name": "string",
- "Address": "string",
- "City": "string",
- "Country": "DE",
- "PostalCode": "string"
}, - "Sender": {
- "Name": "string",
- "Address": "string",
- "City": "string",
- "Country": "DE",
- "PostalCode": "string"
}
}
}
{- "GetAnonymousDeclarationResult": [
- {
- "SelfAsString": "string",
- "entityState": -1,
- "Data": {
- "CommercialTransactions": [
- {
- "ContentPiecesIndexes": [
- 1,
- 2,
- 4
], - "MarketPlaceId": "string",
- "MarketPlaceUrl": "string",
- "PurchaseOrderNumber": "string",
- "SalesOrderNumber": "string"
}
], - "ContentPieces": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "ImportRestrictions": "string",
- "ImportRestrictionsNotes": "string",
- "Index": 0,
- "NetWeight": 0,
- "Number": 0,
- "OrigCountryCd": "AU",
- "RevisedDescription": "string",
- "RevisedHS": "Revised HS code"
}
], - "CustomerChargingArrangementCd": "string",
- "NatureTransactionReference": "string",
- "Documents": [
- {
- "DocumentId": "string",
- "DocumentName": "string",
- "DocumentType": "string",
- "Url": "string"
}
], - "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "GrossWeight": 0,
- "HandlingClassCd": "N",
- "InsuredValue": 0,
- "InsuredValueCurrencyCd": "string",
- "MaxIndex": 0,
- "NatureTypeCd": "21",
- "NatureTypeDesc": "string",
- "NonDelivInstCd": "string",
- "Observations": "string",
- "OrigDutiesAmt": 0,
- "OrigDutiesCurrencyCd": "string",
- "OriginOfficeCd": "string",
- "OriginOfficeNm": "string",
- "OtherParties": [
- {
- "OtherPartyAddressLine1": "string",
- "OtherPartyAddressLine2": "string",
- "OtherPartyCity": "string",
- "OtherPartyCountryCd": "AU",
- "OtherPartyEmail": "user@example.com",
- "OtherPartyFax": "string",
- "OtherPartyIdRef": "string",
- "OtherPartyName": "string",
- "OtherPartyPostalCertificate": "string",
- "OtherPartyReferenceType": "string",
- "OtherPartyRole": "AG",
- "OtherPartyState": "string",
- "OtherPartyTelephone": "string",
- "OtherPartyTypeOfPerson": "string",
- "OtherPartyZIP": "string"
}
], - "PackageImageLocalPath": "string",
- "PackageImageSourceInfo": "string",
- "Postage": 0,
- "PostageCurrencyCd": "USD",
- "RecipientAddressLine1": "string",
- "RecipientAddressLine2": "string",
- "RecipientCity": "string",
- "RecipientCountryCd": "AU",
- "RecipientEmail": "user@example.com",
- "RecipientFax": "string",
- "RecipientFirstName": "string",
- "RecipientIdRef": "string",
- "RecipientLastName": "string",
- "RecipientName": "string",
- "RecipientPostalCertificate": "string",
- "RecipientReferenceType": "string",
- "RecipientState": "string",
- "RecipientTelephone": "string",
- "RecipientTypeOfPerson": "string",
- "RecipientZIP": "string",
- "SenderAddressLine1": "string",
- "SenderAddressLine2": "string",
- "SenderCity": "string",
- "SenderCountryCd": "AU",
- "SenderEmail": "user@example.com",
- "SenderFirstName": "string",
- "SenderIdRef": "string",
- "SenderLastName": "string",
- "SenderName": "string",
- "SenderPostalCertificate": "string",
- "SenderReferenceType": "string",
- "SenderState": "string",
- "SenderTelephone": "string",
- "SenderTypeOfPerson": "string",
- "SenderZIP": "string",
- "TransportDate": "/Date(1562748420000+0200)/",
- "TransportMode": "PL"
}, - "Id": "2233394CH",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostingDt": "/Date(1562748420000+0200)/",
- "XMLData": "string"
}
]
}
Searches for the final declaration Id from an anonymous declaration Id
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "securityToken": "63de3b10-521c-4dbb-8836-59da8dad803e",
- "anonymousDeclId": "9384748AU"
}
{- "GetFinalDeclarationIdFromAnonymousDeclarationIdResult": "string"
}
Return referral status from mail objects
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "securityToken": "63de3b10-521c-4dbb-8836-59da8dad803e",
- "Items": [
- {
- "ItemID": "EE23050001XAU",
- "OriginCountryCd": "IN",
- "DestinationCountryCd": "DE"
}
]
}
{- "CheckItemStatusResult": [
- {
- "MailObjectId": "EE23050001XAU",
- "EarliestEventDT": "/Date(1562748420000+0200)/",
- "OriginCountryCd": "IN",
- "DestinationCountryCd": "DE",
- "HasITMATT": true,
- "Referrals": {
- "Reference": "string",
- "Code": "string",
- "EventDT": "/Date(1562748420000+0200)/",
- "ResponsePending": true
}
}
]
}
Loads customs data view (status) for a specific item at post. If the customs response is not available and the forceCreateResponseIfNotAvailable param is true, the method forces creation of customs response based on the defined auto-response rules
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "token": "b5507016-7da2-4777-a161-1e8042a6a377",
- "postalOrgCd": "AUA",
- "id": "EE23050001XAU",
- "flow": "I",
- "forceCreateResponseIfNotAvailable": true,
- "userCd": "depost",
- "officeCd": "DEAAAA"
}
{- "GetCustomsStatusResult": {
- "SelfAsString": "string",
- "entityState": -1,
- "DCResponse": {
- "SelfAsString": "string",
- "entityState": -1,
- "CDSStateCd": 1,
- "CustOrganizationCd": "AU",
- "MailObjectPId": "1a9b53e6-46ba-4565-91d1-38bb364224ce",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostOrganizationCd": "AUA",
- "XMLData": "string",
- "Data": {
- "ClearanceDt": "/Date(1562748420000+0200)/",
- "DecisionCd": "string",
- "DecisionReasonCd": "string",
- "DecisionReasonNm": "string",
- "Dutiable": true,
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "Taxes": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "NetWeight": 0,
- "Number": 0,
- "Rate": 0,
- "Type": "VAT"
}
], - "TotalFee": 0,
- "TotalFeeCurrencyCd": "USD"
}
}, - "Declaration": {
- "SelfAsString": "string",
- "entityState": -1,
- "CDSStateCd": 1,
- "CustOrganizationCd": "AU",
- "MailObjectPId": "1a9b53e6-46ba-4565-91d1-38bb364224ce",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostOrganizationCd": "AUA",
- "XMLData": "string",
- "Data": {
- "CommercialTransactions": [
- {
- "ContentPiecesIndexes": [
- 1,
- 2,
- 4
], - "MarketPlaceId": "string",
- "MarketPlaceUrl": "string",
- "PurchaseOrderNumber": "string",
- "SalesOrderNumber": "string"
}
], - "ContentPieces": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "ImportRestrictions": "string",
- "ImportRestrictionsNotes": "string",
- "Index": 0,
- "NetWeight": 0,
- "Number": 0,
- "OrigCountryCd": "AU",
- "RevisedDescription": "string",
- "RevisedHS": "Revised HS code"
}
], - "CustomerChargingArrangementCd": "string",
- "NatureTransactionReference": "string",
- "Documents": [
- {
- "DocumentId": "string",
- "DocumentName": "string",
- "DocumentType": "string",
- "Url": "string"
}
], - "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "GrossWeight": 0,
- "HandlingClassCd": "N",
- "InsuredValue": 0,
- "InsuredValueCurrencyCd": "string",
- "MaxIndex": 0,
- "NatureTypeCd": "21",
- "NatureTypeDesc": "string",
- "NonDelivInstCd": "string",
- "Observations": "string",
- "OrigDutiesAmt": 0,
- "OrigDutiesCurrencyCd": "string",
- "OriginOfficeCd": "string",
- "OriginOfficeNm": "string",
- "OtherParties": [
- {
- "OtherPartyAddressLine1": "string",
- "OtherPartyAddressLine2": "string",
- "OtherPartyCity": "string",
- "OtherPartyCountryCd": "AU",
- "OtherPartyEmail": "user@example.com",
- "OtherPartyFax": "string",
- "OtherPartyIdRef": "string",
- "OtherPartyName": "string",
- "OtherPartyPostalCertificate": "string",
- "OtherPartyReferenceType": "string",
- "OtherPartyRole": "AG",
- "OtherPartyState": "string",
- "OtherPartyTelephone": "string",
- "OtherPartyTypeOfPerson": "string",
- "OtherPartyZIP": "string"
}
], - "PackageImageLocalPath": "string",
- "PackageImageSourceInfo": "string",
- "Postage": 0,
- "PostageCurrencyCd": "USD",
- "RecipientAddressLine1": "string",
- "RecipientAddressLine2": "string",
- "RecipientCity": "string",
- "RecipientCountryCd": "AU",
- "RecipientEmail": "user@example.com",
- "RecipientFax": "string",
- "RecipientFirstName": "string",
- "RecipientIdRef": "string",
- "RecipientLastName": "string",
- "RecipientName": "string",
- "RecipientPostalCertificate": "string",
- "RecipientReferenceType": "string",
- "RecipientState": "string",
- "RecipientTelephone": "string",
- "RecipientTypeOfPerson": "string",
- "RecipientZIP": "string",
- "SenderAddressLine1": "string",
- "SenderAddressLine2": "string",
- "SenderCity": "string",
- "SenderCountryCd": "AU",
- "SenderEmail": "user@example.com",
- "SenderFirstName": "string",
- "SenderIdRef": "string",
- "SenderLastName": "string",
- "SenderName": "string",
- "SenderPostalCertificate": "string",
- "SenderReferenceType": "string",
- "SenderState": "string",
- "SenderTelephone": "string",
- "SenderTypeOfPerson": "string",
- "SenderZIP": "string",
- "TransportDate": "/Date(1562748420000+0200)/",
- "TransportMode": "PL"
}
}, - "MailObject": {
- "SelfAsString": "string",
- "entityState": -1,
- "DestPostOrgCd": "CAA",
- "Id": "EE23050001XAU",
- "LocalId": "string",
- "LocalId2": "string",
- "MailCategoryCd": "A",
- "MailClassCd": "E",
- "MailFlowCd": "I",
- "MailStateCd": 1,
- "MailStateRemarks": "state = 2 (arrived in OOE)",
- "OrigPostOrgCd": "AUA",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostingDt": "/Date(1562748420000+0200)/",
- "TypeCd": "MI"
}, - "Response": {
- "SelfAsString": "string",
- "entityState": -1,
- "CDSStateCd": 1,
- "CustOrganizationCd": "AU",
- "MailObjectPId": "1a9b53e6-46ba-4565-91d1-38bb364224ce",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostOrganizationCd": "AUA",
- "XMLData": "string",
- "Data": {
- "ClearanceDt": "/Date(1562748420000+0200)/",
- "DecisionCd": "string",
- "DecisionReasonCd": "string",
- "DecisionReasonNm": "string",
- "Dutiable": true,
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "Taxes": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "NetWeight": 0,
- "Number": 0,
- "Rate": 0,
- "Type": "VAT"
}
], - "TotalFee": 0,
- "TotalFeeCurrencyCd": "USD"
}
}
}
}
Returns Referrals and Referral Responses associated with a declaration
securityToken required | string <uuid> (Token) The security token used to authorize the web method call. | ||||||||
postalOrgCd required | string The postal organization code (e.g. AUA - Australia Post) were the declarations and responses were created. | ||||||||
id | string The id of the mail object | ||||||||
flow required | string (MailFlow) Flow of the mail from the point of view of the postal organization
| ||||||||
partnerPostalOrgCd | string The postal organization code of the partner post, that is, the destination post for the outbound mail and the origin post for the inbound mail. | ||||||||
postingDtFrom | string <timestamp> (Epoch) \/Date\([0-9]+\+[0-9]{4}\)\/ The epoch (or Unix timestamp) is the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT), not counting leap seconds. | ||||||||
postingDtTo | string <timestamp> (Epoch) \/Date\([0-9]+\+[0-9]{4}\)\/ The epoch (or Unix timestamp) is the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT), not counting leap seconds. | ||||||||
eventDtFrom | string <timestamp> (Epoch) \/Date\([0-9]+\+[0-9]{4}\)\/ The epoch (or Unix timestamp) is the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT), not counting leap seconds. | ||||||||
eventDtTo | string <timestamp> (Epoch) \/Date\([0-9]+\+[0-9]{4}\)\/ The epoch (or Unix timestamp) is the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT), not counting leap seconds. | ||||||||
mailClassCd | string (MailClass) The mail class of the item
| ||||||||
officeCd | string The office code that will author the creation of the customs response (if applicable) | ||||||||
hasPendingReferral | boolean If true, the search includes declarations with pending referrals only and Referral responses. | ||||||||
referralType | string Comma separated list of referral codes | ||||||||
referralResponseType | string Comma separated list of referral response codes |
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "securityToken": "63de3b10-521c-4dbb-8836-59da8dad803e",
- "postalOrgCd": "AUA",
- "id": "EE23050001XDE",
- "flow": "I",
- "partnerPostalOrgCd": "DEA",
- "postingDtFrom": "/Date(1562748420000+0200)/",
- "postingDtTo": "/Date(1562748420000+0200)/",
- "eventDtFrom": "/Date(1562748420000+0200)/",
- "eventDtTo": "/Date(1562748420000+0200)/",
- "mailClassCd": "E",
- "officeCd": "DEAAAA",
- "hasPendingReferral": true,
- "referralType": "RFI, RFS",
- "referralResponseType": "R20, R30"
}
{- "GetReferralAndReferralResponseResult": [
- {
- "Declaration": {
- "SelfAsString": "string",
- "entityState": -1,
- "CDSStateCd": 1,
- "CustOrganizationCd": "AU",
- "MailObjectPId": "1a9b53e6-46ba-4565-91d1-38bb364224ce",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostOrganizationCd": "AUA",
- "XMLData": "string",
- "Data": {
- "CommercialTransactions": [
- {
- "ContentPiecesIndexes": [
- 1,
- 2,
- 4
], - "MarketPlaceId": "string",
- "MarketPlaceUrl": "string",
- "PurchaseOrderNumber": "string",
- "SalesOrderNumber": "string"
}
], - "ContentPieces": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "ImportRestrictions": "string",
- "ImportRestrictionsNotes": "string",
- "Index": 0,
- "NetWeight": 0,
- "Number": 0,
- "OrigCountryCd": "AU",
- "RevisedDescription": "string",
- "RevisedHS": "Revised HS code"
}
], - "CustomerChargingArrangementCd": "string",
- "NatureTransactionReference": "string",
- "Documents": [
- {
- "DocumentId": "string",
- "DocumentName": "string",
- "DocumentType": "string",
- "Url": "string"
}
], - "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "GrossWeight": 0,
- "HandlingClassCd": "N",
- "InsuredValue": 0,
- "InsuredValueCurrencyCd": "string",
- "MaxIndex": 0,
- "NatureTypeCd": "21",
- "NatureTypeDesc": "string",
- "NonDelivInstCd": "string",
- "Observations": "string",
- "OrigDutiesAmt": 0,
- "OrigDutiesCurrencyCd": "string",
- "OriginOfficeCd": "string",
- "OriginOfficeNm": "string",
- "OtherParties": [
- {
- "OtherPartyAddressLine1": "string",
- "OtherPartyAddressLine2": "string",
- "OtherPartyCity": "string",
- "OtherPartyCountryCd": "AU",
- "OtherPartyEmail": "user@example.com",
- "OtherPartyFax": "string",
- "OtherPartyIdRef": "string",
- "OtherPartyName": "string",
- "OtherPartyPostalCertificate": "string",
- "OtherPartyReferenceType": "string",
- "OtherPartyRole": "AG",
- "OtherPartyState": "string",
- "OtherPartyTelephone": "string",
- "OtherPartyTypeOfPerson": "string",
- "OtherPartyZIP": "string"
}
], - "PackageImageLocalPath": "string",
- "PackageImageSourceInfo": "string",
- "Postage": 0,
- "PostageCurrencyCd": "USD",
- "RecipientAddressLine1": "string",
- "RecipientAddressLine2": "string",
- "RecipientCity": "string",
- "RecipientCountryCd": "AU",
- "RecipientEmail": "user@example.com",
- "RecipientFax": "string",
- "RecipientFirstName": "string",
- "RecipientIdRef": "string",
- "RecipientLastName": "string",
- "RecipientName": "string",
- "RecipientPostalCertificate": "string",
- "RecipientReferenceType": "string",
- "RecipientState": "string",
- "RecipientTelephone": "string",
- "RecipientTypeOfPerson": "string",
- "RecipientZIP": "string",
- "SenderAddressLine1": "string",
- "SenderAddressLine2": "string",
- "SenderCity": "string",
- "SenderCountryCd": "AU",
- "SenderEmail": "user@example.com",
- "SenderFirstName": "string",
- "SenderIdRef": "string",
- "SenderLastName": "string",
- "SenderName": "string",
- "SenderPostalCertificate": "string",
- "SenderReferenceType": "string",
- "SenderState": "string",
- "SenderTelephone": "string",
- "SenderTypeOfPerson": "string",
- "SenderZIP": "string",
- "TransportDate": "/Date(1562748420000+0200)/",
- "TransportMode": "PL"
}
}, - "MailObject": {
- "SelfAsString": "string",
- "entityState": -1,
- "DestPostOrgCd": "CAA",
- "Id": "EE23050001XAU",
- "LocalId": "string",
- "LocalId2": "string",
- "MailCategoryCd": "A",
- "MailClassCd": "E",
- "MailFlowCd": "I",
- "MailStateCd": 1,
- "MailStateRemarks": "state = 2 (arrived in OOE)",
- "OrigPostOrgCd": "AUA",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostingDt": "/Date(1562748420000+0200)/",
- "TypeCd": "MI"
}, - "Referrals": [
- {
- "Data": {
- "Code": "RFI",
- "Date": "/Date(1562748420000+0200)/",
- "Reference": "string",
- "ReferralReasons": [
- {
- "Description": null,
- "ReasonCode": null
}
]
}, - "ResponsePending": true
}
], - "ReferralResponses": [
- {
- "Code": "R20",
- "Date": "/Date(1562748420000+0200)/",
- "Reference": "string",
- "ReferralReference": "string",
- "Responses": [
- {
- "ActionTakenCode": "A10",
- "ActionTakenText": "John Doe",
- "Authority": "string",
- "ReasonCode": "A10"
}
]
}
]
}
]
}
Loads customs data views (mail object + declaration + response) based on a list of criteria passed as parameters.
token required | string <uuid> (Token) The security token used to authorize the web method call. | ||||||||
postalOrgCd required | string The postal organization code (e.g. AUA - Australia Post) were the declarations and responses were created. | ||||||||
customsOrgCd required | string The customs organization code (e.g. AU - Australia Post Customs) were the declarations and responses were created | ||||||||
organizationTypeCd required | string The type of the organization making the request
| ||||||||
id | string The id of the mail object | ||||||||
flow required | string (MailFlow) Flow of the mail from the point of view of the postal organization
| ||||||||
partnerPostalOrgCd | string The postal organization code of the partner post, that is, the destination post for the outbound mail and the origin post for the inbound mail. | ||||||||
partCountryCd | string The ISO country code of the partner post, that is, the destination country for the outbound mail and the origin country for the inbound mail. | ||||||||
dtFrom | string <timestamp> (Epoch) \/Date\([0-9]+\+[0-9]{4}\)\/ The epoch (or Unix timestamp) is the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT), not counting leap seconds. | ||||||||
dtTo | string <timestamp> (Epoch) \/Date\([0-9]+\+[0-9]{4}\)\/ The epoch (or Unix timestamp) is the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT), not counting leap seconds. | ||||||||
zipFrom | string The lower limit of the ZIP code of the sender, in case of outbound mail, or recipient, in case of inbound mail. | ||||||||
zipTo | string The upper limit of the ZIP code of the sender, in case of outbound mail, or recipient, in case of inbound mail. | ||||||||
mailClassCd | string (MailClass) The mail class of the item
| ||||||||
onlyWithoutResponse required | boolean If true, the search includes only declarations for which a customs response hasn't been created yet, otherwise all declarations. | ||||||||
onlyWithDeclarationOrResponse required | boolean If true, the search includes only objects that have either a declaration or a response associated, otherwise all of them. | ||||||||
recordsLimit | integer <int32> When specified, the search count is limited to the specified value. |
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "token": "b5507016-7da2-4777-a161-1e8042a6a377",
- "postalOrgCd": "AUA",
- "customsOrgCd": "AU",
- "organizationTypeCd": "P",
- "id": "EE23050001XDE",
- "flow": "I",
- "partnerPostalOrgCd": "DEA",
- "partCountryCd": "DE",
- "dtFrom": "/Date(1562748420000+0200)/",
- "dtTo": "/Date(1562748420000+0200)/",
- "zipFrom": "10000",
- "zipTo": "10001",
- "mailClassCd": "E",
- "onlyWithoutResponse": true,
- "onlyWithDeclarationOrResponse": true,
- "recordsLimit": 100
}
{- "LoadResult": [
- {
- "SelfAsString": "string",
- "entityState": -1,
- "DCResponse": {
- "SelfAsString": "string",
- "entityState": -1,
- "CDSStateCd": 1,
- "CustOrganizationCd": "AU",
- "MailObjectPId": "1a9b53e6-46ba-4565-91d1-38bb364224ce",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostOrganizationCd": "AUA",
- "XMLData": "string",
- "Data": {
- "ClearanceDt": "/Date(1562748420000+0200)/",
- "DecisionCd": "string",
- "DecisionReasonCd": "string",
- "DecisionReasonNm": "string",
- "Dutiable": true,
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "Taxes": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "NetWeight": 0,
- "Number": 0,
- "Rate": 0,
- "Type": "VAT"
}
], - "TotalFee": 0,
- "TotalFeeCurrencyCd": "USD"
}
}, - "Declaration": {
- "SelfAsString": "string",
- "entityState": -1,
- "CDSStateCd": 1,
- "CustOrganizationCd": "AU",
- "MailObjectPId": "1a9b53e6-46ba-4565-91d1-38bb364224ce",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostOrganizationCd": "AUA",
- "XMLData": "string",
- "Data": {
- "CommercialTransactions": [
- {
- "ContentPiecesIndexes": [
- 1,
- 2,
- 4
], - "MarketPlaceId": "string",
- "MarketPlaceUrl": "string",
- "PurchaseOrderNumber": "string",
- "SalesOrderNumber": "string"
}
], - "ContentPieces": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "ImportRestrictions": "string",
- "ImportRestrictionsNotes": "string",
- "Index": 0,
- "NetWeight": 0,
- "Number": 0,
- "OrigCountryCd": "AU",
- "RevisedDescription": "string",
- "RevisedHS": "Revised HS code"
}
], - "CustomerChargingArrangementCd": "string",
- "NatureTransactionReference": "string",
- "Documents": [
- {
- "DocumentId": "string",
- "DocumentName": "string",
- "DocumentType": "string",
- "Url": "string"
}
], - "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "GrossWeight": 0,
- "HandlingClassCd": "N",
- "InsuredValue": 0,
- "InsuredValueCurrencyCd": "string",
- "MaxIndex": 0,
- "NatureTypeCd": "21",
- "NatureTypeDesc": "string",
- "NonDelivInstCd": "string",
- "Observations": "string",
- "OrigDutiesAmt": 0,
- "OrigDutiesCurrencyCd": "string",
- "OriginOfficeCd": "string",
- "OriginOfficeNm": "string",
- "OtherParties": [
- {
- "OtherPartyAddressLine1": "string",
- "OtherPartyAddressLine2": "string",
- "OtherPartyCity": "string",
- "OtherPartyCountryCd": "AU",
- "OtherPartyEmail": "user@example.com",
- "OtherPartyFax": "string",
- "OtherPartyIdRef": "string",
- "OtherPartyName": "string",
- "OtherPartyPostalCertificate": "string",
- "OtherPartyReferenceType": "string",
- "OtherPartyRole": "AG",
- "OtherPartyState": "string",
- "OtherPartyTelephone": "string",
- "OtherPartyTypeOfPerson": "string",
- "OtherPartyZIP": "string"
}
], - "PackageImageLocalPath": "string",
- "PackageImageSourceInfo": "string",
- "Postage": 0,
- "PostageCurrencyCd": "USD",
- "RecipientAddressLine1": "string",
- "RecipientAddressLine2": "string",
- "RecipientCity": "string",
- "RecipientCountryCd": "AU",
- "RecipientEmail": "user@example.com",
- "RecipientFax": "string",
- "RecipientFirstName": "string",
- "RecipientIdRef": "string",
- "RecipientLastName": "string",
- "RecipientName": "string",
- "RecipientPostalCertificate": "string",
- "RecipientReferenceType": "string",
- "RecipientState": "string",
- "RecipientTelephone": "string",
- "RecipientTypeOfPerson": "string",
- "RecipientZIP": "string",
- "SenderAddressLine1": "string",
- "SenderAddressLine2": "string",
- "SenderCity": "string",
- "SenderCountryCd": "AU",
- "SenderEmail": "user@example.com",
- "SenderFirstName": "string",
- "SenderIdRef": "string",
- "SenderLastName": "string",
- "SenderName": "string",
- "SenderPostalCertificate": "string",
- "SenderReferenceType": "string",
- "SenderState": "string",
- "SenderTelephone": "string",
- "SenderTypeOfPerson": "string",
- "SenderZIP": "string",
- "TransportDate": "/Date(1562748420000+0200)/",
- "TransportMode": "PL"
}
}, - "MailObject": {
- "SelfAsString": "string",
- "entityState": -1,
- "DestPostOrgCd": "CAA",
- "Id": "EE23050001XAU",
- "LocalId": "string",
- "LocalId2": "string",
- "MailCategoryCd": "A",
- "MailClassCd": "E",
- "MailFlowCd": "I",
- "MailStateCd": 1,
- "MailStateRemarks": "state = 2 (arrived in OOE)",
- "OrigPostOrgCd": "AUA",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostingDt": "/Date(1562748420000+0200)/",
- "TypeCd": "MI"
}, - "Response": {
- "SelfAsString": "string",
- "entityState": -1,
- "CDSStateCd": 1,
- "CustOrganizationCd": "AU",
- "MailObjectPId": "1a9b53e6-46ba-4565-91d1-38bb364224ce",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostOrganizationCd": "AUA",
- "XMLData": "string",
- "Data": {
- "ClearanceDt": "/Date(1562748420000+0200)/",
- "DecisionCd": "string",
- "DecisionReasonCd": "string",
- "DecisionReasonNm": "string",
- "Dutiable": true,
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "Taxes": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "NetWeight": 0,
- "Number": 0,
- "Rate": 0,
- "Type": "VAT"
}
], - "TotalFee": 0,
- "TotalFeeCurrencyCd": "USD"
}
}
}
]
}
Loads customs data views (mail object + declaration + response) based on a list of criteria passed as parameters including the mail state code
token required | string <uuid> (Token) The security token used to authorize the web method call. | ||||||||
postalOrgCd required | string The postal organization code (e.g. AUA - Australia Post) were the declarations and responses were created. | ||||||||
customsOrgCd required | string The customs organization code (e.g. AU - Australia Post Customs) were the declarations and responses were created. | ||||||||
organizationTypeCd required | string The type of the organization making the request
| ||||||||
flow required | string Flow of the mail from the point of view of the postal organization
| ||||||||
mailStateCd required | string Mail state code (i.e. 1 - received from customer). |
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "token": "b5507016-7da2-4777-a161-1e8042a6a377",
- "postalOrgCd": "AUA",
- "customsOrgCd": "AU",
- "organizationTypeCd": "P",
- "flow": "I",
- "mailStateCd": "1"
}
{- "LoadByMailStateResult": [
- {
- "SelfAsString": "string",
- "entityState": -1,
- "DCResponse": {
- "SelfAsString": "string",
- "entityState": -1,
- "CDSStateCd": 1,
- "CustOrganizationCd": "AU",
- "MailObjectPId": "1a9b53e6-46ba-4565-91d1-38bb364224ce",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostOrganizationCd": "AUA",
- "XMLData": "string",
- "Data": {
- "ClearanceDt": "/Date(1562748420000+0200)/",
- "DecisionCd": "string",
- "DecisionReasonCd": "string",
- "DecisionReasonNm": "string",
- "Dutiable": true,
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "Taxes": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "NetWeight": 0,
- "Number": 0,
- "Rate": 0,
- "Type": "VAT"
}
], - "TotalFee": 0,
- "TotalFeeCurrencyCd": "USD"
}
}, - "Declaration": {
- "SelfAsString": "string",
- "entityState": -1,
- "CDSStateCd": 1,
- "CustOrganizationCd": "AU",
- "MailObjectPId": "1a9b53e6-46ba-4565-91d1-38bb364224ce",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostOrganizationCd": "AUA",
- "XMLData": "string",
- "Data": {
- "CommercialTransactions": [
- {
- "ContentPiecesIndexes": [
- 1,
- 2,
- 4
], - "MarketPlaceId": "string",
- "MarketPlaceUrl": "string",
- "PurchaseOrderNumber": "string",
- "SalesOrderNumber": "string"
}
], - "ContentPieces": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "ImportRestrictions": "string",
- "ImportRestrictionsNotes": "string",
- "Index": 0,
- "NetWeight": 0,
- "Number": 0,
- "OrigCountryCd": "AU",
- "RevisedDescription": "string",
- "RevisedHS": "Revised HS code"
}
], - "CustomerChargingArrangementCd": "string",
- "NatureTransactionReference": "string",
- "Documents": [
- {
- "DocumentId": "string",
- "DocumentName": "string",
- "DocumentType": "string",
- "Url": "string"
}
], - "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "GrossWeight": 0,
- "HandlingClassCd": "N",
- "InsuredValue": 0,
- "InsuredValueCurrencyCd": "string",
- "MaxIndex": 0,
- "NatureTypeCd": "21",
- "NatureTypeDesc": "string",
- "NonDelivInstCd": "string",
- "Observations": "string",
- "OrigDutiesAmt": 0,
- "OrigDutiesCurrencyCd": "string",
- "OriginOfficeCd": "string",
- "OriginOfficeNm": "string",
- "OtherParties": [
- {
- "OtherPartyAddressLine1": "string",
- "OtherPartyAddressLine2": "string",
- "OtherPartyCity": "string",
- "OtherPartyCountryCd": "AU",
- "OtherPartyEmail": "user@example.com",
- "OtherPartyFax": "string",
- "OtherPartyIdRef": "string",
- "OtherPartyName": "string",
- "OtherPartyPostalCertificate": "string",
- "OtherPartyReferenceType": "string",
- "OtherPartyRole": "AG",
- "OtherPartyState": "string",
- "OtherPartyTelephone": "string",
- "OtherPartyTypeOfPerson": "string",
- "OtherPartyZIP": "string"
}
], - "PackageImageLocalPath": "string",
- "PackageImageSourceInfo": "string",
- "Postage": 0,
- "PostageCurrencyCd": "USD",
- "RecipientAddressLine1": "string",
- "RecipientAddressLine2": "string",
- "RecipientCity": "string",
- "RecipientCountryCd": "AU",
- "RecipientEmail": "user@example.com",
- "RecipientFax": "string",
- "RecipientFirstName": "string",
- "RecipientIdRef": "string",
- "RecipientLastName": "string",
- "RecipientName": "string",
- "RecipientPostalCertificate": "string",
- "RecipientReferenceType": "string",
- "RecipientState": "string",
- "RecipientTelephone": "string",
- "RecipientTypeOfPerson": "string",
- "RecipientZIP": "string",
- "SenderAddressLine1": "string",
- "SenderAddressLine2": "string",
- "SenderCity": "string",
- "SenderCountryCd": "AU",
- "SenderEmail": "user@example.com",
- "SenderFirstName": "string",
- "SenderIdRef": "string",
- "SenderLastName": "string",
- "SenderName": "string",
- "SenderPostalCertificate": "string",
- "SenderReferenceType": "string",
- "SenderState": "string",
- "SenderTelephone": "string",
- "SenderTypeOfPerson": "string",
- "SenderZIP": "string",
- "TransportDate": "/Date(1562748420000+0200)/",
- "TransportMode": "PL"
}
}, - "MailObject": {
- "SelfAsString": "string",
- "entityState": -1,
- "DestPostOrgCd": "CAA",
- "Id": "EE23050001XAU",
- "LocalId": "string",
- "LocalId2": "string",
- "MailCategoryCd": "A",
- "MailClassCd": "E",
- "MailFlowCd": "I",
- "MailStateCd": 1,
- "MailStateRemarks": "state = 2 (arrived in OOE)",
- "OrigPostOrgCd": "AUA",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostingDt": "/Date(1562748420000+0200)/",
- "TypeCd": "MI"
}, - "Response": {
- "SelfAsString": "string",
- "entityState": -1,
- "CDSStateCd": 1,
- "CustOrganizationCd": "AU",
- "MailObjectPId": "1a9b53e6-46ba-4565-91d1-38bb364224ce",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostOrganizationCd": "AUA",
- "XMLData": "string",
- "Data": {
- "ClearanceDt": "/Date(1562748420000+0200)/",
- "DecisionCd": "string",
- "DecisionReasonCd": "string",
- "DecisionReasonNm": "string",
- "Dutiable": true,
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "Taxes": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "NetWeight": 0,
- "Number": 0,
- "Rate": 0,
- "Type": "VAT"
}
], - "TotalFee": 0,
- "TotalFeeCurrencyCd": "USD"
}
}
}
]
}
Creates/updates a list of declarations passed as customs data views
securityToken required | string <uuid> (Token) The security token used to authorize the web method call. |
Array of objects (CDSView) The list of CDS views. Each CDS view aggregates the mail object details (e.g. item id, origin, destination, etc) and the declaration details (e.g. sender, recipient, content pieces, etc) | |
userCd required | string The user code that will author the creation of the customs response (if applicable). If the user code does not exist in CDS, it will be automatically created and linked to the organization that issued the security token. |
officeCd | string The office code that will author the creation of the customs response (if applicable) |
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "securityToken": "63de3b10-521c-4dbb-8836-59da8dad803e",
- "cdsViews": [
- {
- "DCResponse": {
- "CDSStateCd": 1,
- "CustOrganizationCd": "AU",
- "MailObjectPId": "1a9b53e6-46ba-4565-91d1-38bb364224ce",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostOrganizationCd": "AUA",
- "Data": {
- "ClearanceDt": "/Date(1562748420000+0200)/",
- "DecisionCd": "string",
- "DecisionReasonCd": "string",
- "DecisionReasonNm": "string",
- "Dutiable": true,
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "Taxes": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "NetWeight": 0,
- "Number": 0,
- "Rate": 0,
- "Type": "VAT"
}
], - "TotalFee": 0,
- "TotalFeeCurrencyCd": "USD"
}
}, - "Declaration": {
- "CDSStateCd": 1,
- "CustOrganizationCd": "AU",
- "MailObjectPId": "1a9b53e6-46ba-4565-91d1-38bb364224ce",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostOrganizationCd": "AUA",
- "Data": {
- "CommercialTransactions": [
- {
- "ContentPiecesIndexes": [
- 1,
- 2,
- 4
], - "MarketPlaceId": "string",
- "MarketPlaceUrl": "string",
- "PurchaseOrderNumber": "string",
- "SalesOrderNumber": "string"
}
], - "ContentPieces": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "ImportRestrictions": "string",
- "ImportRestrictionsNotes": "string",
- "Index": 0,
- "NetWeight": 0,
- "Number": 0,
- "OrigCountryCd": "AU",
- "RevisedDescription": "string",
- "RevisedHS": "Revised HS code"
}
], - "CustomerChargingArrangementCd": "string",
- "NatureTransactionReference": "string",
- "Documents": [
- {
- "DocumentId": "string",
- "DocumentName": "string",
- "DocumentType": "string",
- "Url": "string"
}
], - "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "GrossWeight": 0,
- "HandlingClassCd": "N",
- "InsuredValue": 0,
- "InsuredValueCurrencyCd": "string",
- "MaxIndex": 0,
- "NatureTypeCd": "21",
- "NatureTypeDesc": "string",
- "NonDelivInstCd": "string",
- "Observations": "string",
- "OrigDutiesAmt": 0,
- "OrigDutiesCurrencyCd": "string",
- "OriginOfficeCd": "string",
- "OriginOfficeNm": "string",
- "OtherParties": [
- {
- "OtherPartyAddressLine1": "string",
- "OtherPartyAddressLine2": "string",
- "OtherPartyCity": "string",
- "OtherPartyCountryCd": "AU",
- "OtherPartyEmail": "user@example.com",
- "OtherPartyFax": "string",
- "OtherPartyIdRef": "string",
- "OtherPartyName": "string",
- "OtherPartyPostalCertificate": "string",
- "OtherPartyReferenceType": "string",
- "OtherPartyRole": "AG",
- "OtherPartyState": "string",
- "OtherPartyTelephone": "string",
- "OtherPartyTypeOfPerson": "string",
- "OtherPartyZIP": "string"
}
], - "PackageImageLocalPath": "string",
- "PackageImageSourceInfo": "string",
- "Postage": 0,
- "PostageCurrencyCd": "USD",
- "RecipientAddressLine1": "string",
- "RecipientAddressLine2": "string",
- "RecipientCity": "string",
- "RecipientCountryCd": "AU",
- "RecipientEmail": "user@example.com",
- "RecipientFax": "string",
- "RecipientFirstName": "string",
- "RecipientIdRef": "string",
- "RecipientLastName": "string",
- "RecipientName": "string",
- "RecipientPostalCertificate": "string",
- "RecipientReferenceType": "string",
- "RecipientState": "string",
- "RecipientTelephone": "string",
- "RecipientTypeOfPerson": "string",
- "RecipientZIP": "string",
- "SenderAddressLine1": "string",
- "SenderAddressLine2": "string",
- "SenderCity": "string",
- "SenderCountryCd": "AU",
- "SenderEmail": "user@example.com",
- "SenderFirstName": "string",
- "SenderIdRef": "string",
- "SenderLastName": "string",
- "SenderName": "string",
- "SenderPostalCertificate": "string",
- "SenderReferenceType": "string",
- "SenderState": "string",
- "SenderTelephone": "string",
- "SenderTypeOfPerson": "string",
- "SenderZIP": "string",
- "TransportDate": "/Date(1562748420000+0200)/",
- "TransportMode": "PL"
}
}, - "MailObject": {
- "DestPostOrgCd": "CAA",
- "Id": "EE23050001XAU",
- "LocalId": "string",
- "LocalId2": "string",
- "MailCategoryCd": "A",
- "MailClassCd": "E",
- "MailFlowCd": "I",
- "MailStateCd": 1,
- "MailStateRemarks": "state = 2 (arrived in OOE)",
- "OrigPostOrgCd": "AUA",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostingDt": "/Date(1562748420000+0200)/",
- "TypeCd": "MI"
}, - "Response": {
- "CDSStateCd": 1,
- "CustOrganizationCd": "AU",
- "MailObjectPId": "1a9b53e6-46ba-4565-91d1-38bb364224ce",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostOrganizationCd": "AUA",
- "Data": {
- "ClearanceDt": "/Date(1562748420000+0200)/",
- "DecisionCd": "string",
- "DecisionReasonCd": "string",
- "DecisionReasonNm": "string",
- "Dutiable": true,
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "Taxes": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "NetWeight": 0,
- "Number": 0,
- "Rate": 0,
- "Type": "VAT"
}
], - "TotalFee": 0,
- "TotalFeeCurrencyCd": "USD"
}
}
}
], - "userCd": "depost",
- "officeCd": "DEAAAA"
}
{ }
Creates/updates a list of responses passed as customs data views
securityToken required | string <uuid> (Token) The security token used to authorize the web method call. |
Array of objects (CDSView) The list of CDS views. Each CDS view aggregates the mail object details (e.g. item id, origin, destination, etc) and the response details (e.g. sender, recipient, content pieces, etc) | |
userCd required | string The user code that will author the creation of the customs response (if applicable). If the user code does not exist in CDS, it will be automatically created and linked to the organization that issued the security token. |
officeCd | string The office code that will author the creation of the customs response (if applicable) |
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "securityToken": "63de3b10-521c-4dbb-8836-59da8dad803e",
- "cdsViews": [
- {
- "DCResponse": {
- "CDSStateCd": 1,
- "CustOrganizationCd": "AU",
- "MailObjectPId": "1a9b53e6-46ba-4565-91d1-38bb364224ce",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostOrganizationCd": "AUA",
- "Data": {
- "ClearanceDt": "/Date(1562748420000+0200)/",
- "DecisionCd": "string",
- "DecisionReasonCd": "string",
- "DecisionReasonNm": "string",
- "Dutiable": true,
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "Taxes": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "NetWeight": 0,
- "Number": 0,
- "Rate": 0,
- "Type": "VAT"
}
], - "TotalFee": 0,
- "TotalFeeCurrencyCd": "USD"
}
}, - "Declaration": {
- "CDSStateCd": 1,
- "CustOrganizationCd": "AU",
- "MailObjectPId": "1a9b53e6-46ba-4565-91d1-38bb364224ce",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostOrganizationCd": "AUA",
- "Data": {
- "CommercialTransactions": [
- {
- "ContentPiecesIndexes": [
- 1,
- 2,
- 4
], - "MarketPlaceId": "string",
- "MarketPlaceUrl": "string",
- "PurchaseOrderNumber": "string",
- "SalesOrderNumber": "string"
}
], - "ContentPieces": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "ImportRestrictions": "string",
- "ImportRestrictionsNotes": "string",
- "Index": 0,
- "NetWeight": 0,
- "Number": 0,
- "OrigCountryCd": "AU",
- "RevisedDescription": "string",
- "RevisedHS": "Revised HS code"
}
], - "CustomerChargingArrangementCd": "string",
- "NatureTransactionReference": "string",
- "Documents": [
- {
- "DocumentId": "string",
- "DocumentName": "string",
- "DocumentType": "string",
- "Url": "string"
}
], - "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "GrossWeight": 0,
- "HandlingClassCd": "N",
- "InsuredValue": 0,
- "InsuredValueCurrencyCd": "string",
- "MaxIndex": 0,
- "NatureTypeCd": "21",
- "NatureTypeDesc": "string",
- "NonDelivInstCd": "string",
- "Observations": "string",
- "OrigDutiesAmt": 0,
- "OrigDutiesCurrencyCd": "string",
- "OriginOfficeCd": "string",
- "OriginOfficeNm": "string",
- "OtherParties": [
- {
- "OtherPartyAddressLine1": "string",
- "OtherPartyAddressLine2": "string",
- "OtherPartyCity": "string",
- "OtherPartyCountryCd": "AU",
- "OtherPartyEmail": "user@example.com",
- "OtherPartyFax": "string",
- "OtherPartyIdRef": "string",
- "OtherPartyName": "string",
- "OtherPartyPostalCertificate": "string",
- "OtherPartyReferenceType": "string",
- "OtherPartyRole": "AG",
- "OtherPartyState": "string",
- "OtherPartyTelephone": "string",
- "OtherPartyTypeOfPerson": "string",
- "OtherPartyZIP": "string"
}
], - "PackageImageLocalPath": "string",
- "PackageImageSourceInfo": "string",
- "Postage": 0,
- "PostageCurrencyCd": "USD",
- "RecipientAddressLine1": "string",
- "RecipientAddressLine2": "string",
- "RecipientCity": "string",
- "RecipientCountryCd": "AU",
- "RecipientEmail": "user@example.com",
- "RecipientFax": "string",
- "RecipientFirstName": "string",
- "RecipientIdRef": "string",
- "RecipientLastName": "string",
- "RecipientName": "string",
- "RecipientPostalCertificate": "string",
- "RecipientReferenceType": "string",
- "RecipientState": "string",
- "RecipientTelephone": "string",
- "RecipientTypeOfPerson": "string",
- "RecipientZIP": "string",
- "SenderAddressLine1": "string",
- "SenderAddressLine2": "string",
- "SenderCity": "string",
- "SenderCountryCd": "AU",
- "SenderEmail": "user@example.com",
- "SenderFirstName": "string",
- "SenderIdRef": "string",
- "SenderLastName": "string",
- "SenderName": "string",
- "SenderPostalCertificate": "string",
- "SenderReferenceType": "string",
- "SenderState": "string",
- "SenderTelephone": "string",
- "SenderTypeOfPerson": "string",
- "SenderZIP": "string",
- "TransportDate": "/Date(1562748420000+0200)/",
- "TransportMode": "PL"
}
}, - "MailObject": {
- "DestPostOrgCd": "CAA",
- "Id": "EE23050001XAU",
- "LocalId": "string",
- "LocalId2": "string",
- "MailCategoryCd": "A",
- "MailClassCd": "E",
- "MailFlowCd": "I",
- "MailStateCd": 1,
- "MailStateRemarks": "state = 2 (arrived in OOE)",
- "OrigPostOrgCd": "AUA",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostingDt": "/Date(1562748420000+0200)/",
- "TypeCd": "MI"
}, - "Response": {
- "CDSStateCd": 1,
- "CustOrganizationCd": "AU",
- "MailObjectPId": "1a9b53e6-46ba-4565-91d1-38bb364224ce",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostOrganizationCd": "AUA",
- "Data": {
- "ClearanceDt": "/Date(1562748420000+0200)/",
- "DecisionCd": "string",
- "DecisionReasonCd": "string",
- "DecisionReasonNm": "string",
- "Dutiable": true,
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "Taxes": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "NetWeight": 0,
- "Number": 0,
- "Rate": 0,
- "Type": "VAT"
}
], - "TotalFee": 0,
- "TotalFeeCurrencyCd": "USD"
}
}
}
], - "userCd": "depost",
- "officeCd": "DEFRAA"
}
{ }
Creates a referral for a declaration (for inbound items)
securityToken required | string <uuid> (Token) The security token used to authorize the web method call. |
id required | string The id of the mail object |
postOrgCd required | string The postal organization code of the post (e.g. AUA - Australia Post). |
partnerPostOrgCd required | string The postal organization code of the partner post (e.g. DEA - Deutsche Post). |
required | object (Referral) |
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "securityToken": "63de3b10-521c-4dbb-8836-59da8dad803e",
- "id": "EE23050001XAU",
- "postOrgCd": "AUA",
- "partnerPostOrgCd": "DEA",
- "referral": {
- "Code": "RFI",
- "Date": "/Date(1562748420000+0200)/",
- "Reference": "string",
- "ReferralReasons": [
- {
- "Description": "Sender name is missing",
- "ReasonCode": "A10"
}
]
}
}
{ }
Creates a response to a referral (for outbound items)
securityToken required | string <uuid> (Token) The security token used to authorize the web method call. |
id required | string The id of the mail object |
postOrgCd required | string The postal organization code of the post (e.g. AUA - Australia Post). |
partnerPostOrgCd required | string The postal organization code of the partner post (e.g. DEA - Deutsche Post). |
required | object (ReferralResponse) |
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "securityToken": "63de3b10-521c-4dbb-8836-59da8dad803e",
- "id": "EE23050001XAU",
- "postOrgCd": "AUA",
- "partnerPostOrgCd": "DEA",
- "referralResponse": {
- "Code": "R20",
- "Date": "/Date(1562748420000+0200)/",
- "Reference": "string",
- "ReferralReference": "string",
- "Responses": [
- {
- "ActionTakenCode": "A10",
- "ActionTakenText": "John Doe",
- "Authority": "string",
- "ReasonCode": "A10"
}
]
}
}
{ }
Stores a declaration to CDS database
token required | string <uuid> (Token) The security token used to authorize the web method call. | ||||||||||
required | object (MailObject) Mail object details (e.g. item ID, origin, destination, posting date) | ||||||||||
required | object (Declaration) Declaration details | ||||||||||
evtCd required | integer <int32> The event code against which the declaration is stored
| ||||||||||
userCd required | string The user code that will author the creation of the customs response (if applicable). If the user code does not exist in CDS, it will be automatically created and linked to the organization that issued the security token. | ||||||||||
officeCd | string The office code that will author the creation of the customs response (if applicable) |
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "token": "b5507016-7da2-4777-a161-1e8042a6a377",
- "mailObject": {
- "DestPostOrgCd": "CAA",
- "Id": "EE23050001XAU",
- "LocalId": "string",
- "LocalId2": "string",
- "MailCategoryCd": "A",
- "MailClassCd": "E",
- "MailFlowCd": "I",
- "MailStateCd": 1,
- "MailStateRemarks": "state = 2 (arrived in OOE)",
- "OrigPostOrgCd": "AUA",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostingDt": "/Date(1562748420000+0200)/",
- "TypeCd": "MI"
}, - "decl": {
- "CDSStateCd": 1,
- "CustOrganizationCd": "AU",
- "MailObjectPId": "1a9b53e6-46ba-4565-91d1-38bb364224ce",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostOrganizationCd": "AUA",
- "Data": {
- "CommercialTransactions": [
- {
- "ContentPiecesIndexes": [
- 1,
- 2,
- 4
], - "MarketPlaceId": "string",
- "MarketPlaceUrl": "string",
- "PurchaseOrderNumber": "string",
- "SalesOrderNumber": "string"
}
], - "ContentPieces": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "ImportRestrictions": "string",
- "ImportRestrictionsNotes": "string",
- "Index": 0,
- "NetWeight": 0,
- "Number": 0,
- "OrigCountryCd": "AU",
- "RevisedDescription": "string",
- "RevisedHS": "Revised HS code"
}
], - "CustomerChargingArrangementCd": "string",
- "NatureTransactionReference": "string",
- "Documents": [
- {
- "DocumentId": "string",
- "DocumentName": "string",
- "DocumentType": "string",
- "Url": "string"
}
], - "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "GrossWeight": 0,
- "HandlingClassCd": "N",
- "InsuredValue": 0,
- "InsuredValueCurrencyCd": "string",
- "MaxIndex": 0,
- "NatureTypeCd": "21",
- "NatureTypeDesc": "string",
- "NonDelivInstCd": "string",
- "Observations": "string",
- "OrigDutiesAmt": 0,
- "OrigDutiesCurrencyCd": "string",
- "OriginOfficeCd": "string",
- "OriginOfficeNm": "string",
- "OtherParties": [
- {
- "OtherPartyAddressLine1": "string",
- "OtherPartyAddressLine2": "string",
- "OtherPartyCity": "string",
- "OtherPartyCountryCd": "AU",
- "OtherPartyEmail": "user@example.com",
- "OtherPartyFax": "string",
- "OtherPartyIdRef": "string",
- "OtherPartyName": "string",
- "OtherPartyPostalCertificate": "string",
- "OtherPartyReferenceType": "string",
- "OtherPartyRole": "AG",
- "OtherPartyState": "string",
- "OtherPartyTelephone": "string",
- "OtherPartyTypeOfPerson": "string",
- "OtherPartyZIP": "string"
}
], - "PackageImageLocalPath": "string",
- "PackageImageSourceInfo": "string",
- "Postage": 0,
- "PostageCurrencyCd": "USD",
- "RecipientAddressLine1": "string",
- "RecipientAddressLine2": "string",
- "RecipientCity": "string",
- "RecipientCountryCd": "AU",
- "RecipientEmail": "user@example.com",
- "RecipientFax": "string",
- "RecipientFirstName": "string",
- "RecipientIdRef": "string",
- "RecipientLastName": "string",
- "RecipientName": "string",
- "RecipientPostalCertificate": "string",
- "RecipientReferenceType": "string",
- "RecipientState": "string",
- "RecipientTelephone": "string",
- "RecipientTypeOfPerson": "string",
- "RecipientZIP": "string",
- "SenderAddressLine1": "string",
- "SenderAddressLine2": "string",
- "SenderCity": "string",
- "SenderCountryCd": "AU",
- "SenderEmail": "user@example.com",
- "SenderFirstName": "string",
- "SenderIdRef": "string",
- "SenderLastName": "string",
- "SenderName": "string",
- "SenderPostalCertificate": "string",
- "SenderReferenceType": "string",
- "SenderState": "string",
- "SenderTelephone": "string",
- "SenderTypeOfPerson": "string",
- "SenderZIP": "string",
- "TransportDate": "/Date(1562748420000+0200)/",
- "TransportMode": "PL"
}
}, - "evtCd": 1,
- "userCd": "depost",
- "officeCd": "DEAAAA"
}
{ }
Stores a response to CDS database
token required | string <uuid> (Token) The security token used to authorize the web method call. | ||||||||||
required | object (MailObject) Mail object details (e.g. item ID, origin, destination, posting date) | ||||||||||
required | object (Response) Response details from the destination customs (applicable for outbound mail only) | ||||||||||
evtCd required | integer <int32> The event code against which the declaration is stored
| ||||||||||
userCd required | string The user code that will author the creation of the customs response (if applicable). If the user code does not exist in CDS, it will be automatically created and linked to the organization that issued the security token. | ||||||||||
officeCd | string The office code that will author the creation of the customs response (if applicable) |
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "token": "b5507016-7da2-4777-a161-1e8042a6a377",
- "mailObject": {
- "DestPostOrgCd": "CAA",
- "Id": "EE23050001XAU",
- "LocalId": "string",
- "LocalId2": "string",
- "MailCategoryCd": "A",
- "MailClassCd": "E",
- "MailFlowCd": "I",
- "MailStateCd": 1,
- "MailStateRemarks": "state = 2 (arrived in OOE)",
- "OrigPostOrgCd": "AUA",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostingDt": "/Date(1562748420000+0200)/",
- "TypeCd": "MI"
}, - "resp": {
- "CDSStateCd": 1,
- "CustOrganizationCd": "AU",
- "MailObjectPId": "1a9b53e6-46ba-4565-91d1-38bb364224ce",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostOrganizationCd": "AUA",
- "Data": {
- "ClearanceDt": "/Date(1562748420000+0200)/",
- "DecisionCd": "string",
- "DecisionReasonCd": "string",
- "DecisionReasonNm": "string",
- "Dutiable": true,
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "Taxes": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "NetWeight": 0,
- "Number": 0,
- "Rate": 0,
- "Type": "VAT"
}
], - "TotalFee": 0,
- "TotalFeeCurrencyCd": "USD"
}
}, - "evtCd": 1,
- "userCd": "depost",
- "officeCd": "DEAAAA"
}
{ }
Updates the mail state of the mail object
securityToken required | string <uuid> (Token) The security token used to authorize the web method call. | ||||||||||||
id required | string The id of the mail object | ||||||||||||
postalOrgCd required | string The postal organization code (e.g. AUA - Australia Post) were the declarations and responses were created. | ||||||||||||
partnerPostalOrgCd required | string The partner postal organization code | ||||||||||||
flow required | string Flow of the mail from the point of view of the postal organization
| ||||||||||||
mailState | integer <int32> The state of the mail item
| ||||||||||||
userCd required | string The user code that will author the creation of the customs response (if applicable). If the user code does not exist in CDS, it will be automatically created and linked to the organization that issued the security token. | ||||||||||||
officeCd | string Office code |
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "securityToken": "63de3b10-521c-4dbb-8836-59da8dad803e",
- "id": "EE23050001XAU",
- "postalOrgCd": "AUA",
- "partnerPostalOrgCd": "FRA",
- "flow": "I",
- "mailState": 1,
- "userCd": "depost",
- "officeCd": "PTLISA"
}
{ }
Updates the mail state of the mail object
securityToken required | string <uuid> (Token) The security token used to authorize the web method call. | ||||||||||||
id required | string The id of the mail object | ||||||||||||
postalOrgCd required | string The postal organization code (e.g. AUA - Australia Post) were the declarations and responses were created. | ||||||||||||
partnerPostalOrgCd required | string The partner postal organization code | ||||||||||||
flow required | string Flow of the mail from the point of view of the postal organization
| ||||||||||||
mailState | integer <int32> The state of the mail item
| ||||||||||||
itemDestPostalOrgCd | string The item destination postal organization code. Mandatory when flow is T (transit). | ||||||||||||
userCd required | string The user code that will author the creation of the customs response (if applicable). If the user code does not exist in CDS, it will be automatically created and linked to the organization that issued the security token. | ||||||||||||
officeCd | string Office code |
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "securityToken": "63de3b10-521c-4dbb-8836-59da8dad803e",
- "id": "EE23050001XAU",
- "postalOrgCd": "AUA",
- "partnerPostalOrgCd": "FRA",
- "flow": "I",
- "mailState": 1,
- "itemDestPostalOrgCd": "DEA",
- "userCd": "depost",
- "officeCd": "PTLISA"
}
{ }
Updates the mail state of the mail object and loads customs data view (status) for a specific item at post (Operational method)
securityToken required | string <uuid> (Token) The security token used to authorize the web method call. | ||||||||||||
id required | string The id of the mail object | ||||||||||||
postalOrgCd required | string The postal organization code (e.g. AUA - Australia Post) were the declarations and responses were created. | ||||||||||||
partnerPostalOrgCd required | string The partner postal organization code | ||||||||||||
flow required | string Flow of the mail from the point of view of the postal organization
| ||||||||||||
mailState | integer <int32> The state of the mail item
| ||||||||||||
forceCreateResponseIfNotAvailable required | boolean When true and the appropriate customs response is not available, CDS will attempt to create a customs response based on the auto-response rules defined in CDS. Mandatory parameter | ||||||||||||
itemDestPostalOrgCd | string The item destination postal organization code. Mandatory when flow is T (transit) | ||||||||||||
userCd required | string The user code that will author the creation of the customs response (if applicable). If the user code does not exist in CDS, it will be automatically created and linked to the organization that issued the security token. | ||||||||||||
officeCd | string The office code that will author the creation of the customs response (if applicable) |
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "securityToken": "63de3b10-521c-4dbb-8836-59da8dad803e",
- "id": "EE23050001XAU",
- "postalOrgCd": "AUA",
- "partnerPostalOrgCd": "FRA",
- "flow": "I",
- "mailState": 1,
- "forceCreateResponseIfNotAvailable": true,
- "itemDestPostalOrgCd": "DEA",
- "userCd": "depost",
- "officeCd": "PTLISA"
}
{- "UpdateMailStateAndGetCustomsStatusResult": {
- "SelfAsString": "string",
- "entityState": -1,
- "DCResponse": {
- "SelfAsString": "string",
- "entityState": -1,
- "CDSStateCd": 1,
- "CustOrganizationCd": "AU",
- "MailObjectPId": "1a9b53e6-46ba-4565-91d1-38bb364224ce",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostOrganizationCd": "AUA",
- "XMLData": "string",
- "Data": {
- "ClearanceDt": "/Date(1562748420000+0200)/",
- "DecisionCd": "string",
- "DecisionReasonCd": "string",
- "DecisionReasonNm": "string",
- "Dutiable": true,
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "Taxes": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "NetWeight": 0,
- "Number": 0,
- "Rate": 0,
- "Type": "VAT"
}
], - "TotalFee": 0,
- "TotalFeeCurrencyCd": "USD"
}
}, - "Declaration": {
- "SelfAsString": "string",
- "entityState": -1,
- "CDSStateCd": 1,
- "CustOrganizationCd": "AU",
- "MailObjectPId": "1a9b53e6-46ba-4565-91d1-38bb364224ce",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostOrganizationCd": "AUA",
- "XMLData": "string",
- "Data": {
- "CommercialTransactions": [
- {
- "ContentPiecesIndexes": [
- 1,
- 2,
- 4
], - "MarketPlaceId": "string",
- "MarketPlaceUrl": "string",
- "PurchaseOrderNumber": "string",
- "SalesOrderNumber": "string"
}
], - "ContentPieces": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "ImportRestrictions": "string",
- "ImportRestrictionsNotes": "string",
- "Index": 0,
- "NetWeight": 0,
- "Number": 0,
- "OrigCountryCd": "AU",
- "RevisedDescription": "string",
- "RevisedHS": "Revised HS code"
}
], - "CustomerChargingArrangementCd": "string",
- "NatureTransactionReference": "string",
- "Documents": [
- {
- "DocumentId": "string",
- "DocumentName": "string",
- "DocumentType": "string",
- "Url": "string"
}
], - "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "GrossWeight": 0,
- "HandlingClassCd": "N",
- "InsuredValue": 0,
- "InsuredValueCurrencyCd": "string",
- "MaxIndex": 0,
- "NatureTypeCd": "21",
- "NatureTypeDesc": "string",
- "NonDelivInstCd": "string",
- "Observations": "string",
- "OrigDutiesAmt": 0,
- "OrigDutiesCurrencyCd": "string",
- "OriginOfficeCd": "string",
- "OriginOfficeNm": "string",
- "OtherParties": [
- {
- "OtherPartyAddressLine1": "string",
- "OtherPartyAddressLine2": "string",
- "OtherPartyCity": "string",
- "OtherPartyCountryCd": "AU",
- "OtherPartyEmail": "user@example.com",
- "OtherPartyFax": "string",
- "OtherPartyIdRef": "string",
- "OtherPartyName": "string",
- "OtherPartyPostalCertificate": "string",
- "OtherPartyReferenceType": "string",
- "OtherPartyRole": "AG",
- "OtherPartyState": "string",
- "OtherPartyTelephone": "string",
- "OtherPartyTypeOfPerson": "string",
- "OtherPartyZIP": "string"
}
], - "PackageImageLocalPath": "string",
- "PackageImageSourceInfo": "string",
- "Postage": 0,
- "PostageCurrencyCd": "USD",
- "RecipientAddressLine1": "string",
- "RecipientAddressLine2": "string",
- "RecipientCity": "string",
- "RecipientCountryCd": "AU",
- "RecipientEmail": "user@example.com",
- "RecipientFax": "string",
- "RecipientFirstName": "string",
- "RecipientIdRef": "string",
- "RecipientLastName": "string",
- "RecipientName": "string",
- "RecipientPostalCertificate": "string",
- "RecipientReferenceType": "string",
- "RecipientState": "string",
- "RecipientTelephone": "string",
- "RecipientTypeOfPerson": "string",
- "RecipientZIP": "string",
- "SenderAddressLine1": "string",
- "SenderAddressLine2": "string",
- "SenderCity": "string",
- "SenderCountryCd": "AU",
- "SenderEmail": "user@example.com",
- "SenderFirstName": "string",
- "SenderIdRef": "string",
- "SenderLastName": "string",
- "SenderName": "string",
- "SenderPostalCertificate": "string",
- "SenderReferenceType": "string",
- "SenderState": "string",
- "SenderTelephone": "string",
- "SenderTypeOfPerson": "string",
- "SenderZIP": "string",
- "TransportDate": "/Date(1562748420000+0200)/",
- "TransportMode": "PL"
}
}, - "MailObject": {
- "SelfAsString": "string",
- "entityState": -1,
- "DestPostOrgCd": "CAA",
- "Id": "EE23050001XAU",
- "LocalId": "string",
- "LocalId2": "string",
- "MailCategoryCd": "A",
- "MailClassCd": "E",
- "MailFlowCd": "I",
- "MailStateCd": 1,
- "MailStateRemarks": "state = 2 (arrived in OOE)",
- "OrigPostOrgCd": "AUA",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostingDt": "/Date(1562748420000+0200)/",
- "TypeCd": "MI"
}, - "Response": {
- "SelfAsString": "string",
- "entityState": -1,
- "CDSStateCd": 1,
- "CustOrganizationCd": "AU",
- "MailObjectPId": "1a9b53e6-46ba-4565-91d1-38bb364224ce",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostOrganizationCd": "AUA",
- "XMLData": "string",
- "Data": {
- "ClearanceDt": "/Date(1562748420000+0200)/",
- "DecisionCd": "string",
- "DecisionReasonCd": "string",
- "DecisionReasonNm": "string",
- "Dutiable": true,
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "Taxes": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "NetWeight": 0,
- "Number": 0,
- "Rate": 0,
- "Type": "VAT"
}
], - "TotalFee": 0,
- "TotalFeeCurrencyCd": "USD"
}
}
}
}
Converts an amount from a currency type to another
token required | string <uuid> (Token) The security token used to authorize the web method call. |
organizationCd | string The organization code (e.g. AUA - Australia Post) whose defined exchange rates are used for conversion |
fromCurrencyCd | string Source ISO currency code (e.g. USD) |
toCurrencyCd | string Target ISO currency code (e.g. CAD) |
amount | number <double> Amount to be converted |
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "token": "b5507016-7da2-4777-a161-1e8042a6a377",
- "organizationCd": "AUA",
- "fromCurrencyCd": "USD",
- "toCurrencyCd": "CAD",
- "amount": 3.2
}
{- "ConvertCurrencyResult": 2.1239673903
}
Creates a new blank declaration without storing in the CDS database
token required | string <uuid> (Token) The security token used to authorize the web method call. | ||||||||
postalOrgCd required | string The postal organization code (e.g. AUA - Australia Post) were the declarations and responses were created. | ||||||||
customsOrgCd required | string The customs organization code (e.g. AU - Australia Post Customs) were the declarations and responses were created. | ||||||||
itemId required | string The id of the mail object | ||||||||
mailFlow required | string Flow of the mail from the point of view of the postal organization
|
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "token": "b5507016-7da2-4777-a161-1e8042a6a377",
- "postalOrgCd": "AUA",
- "customsOrgCd": "AU",
- "itemId": "EE23050001XAU",
- "mailFlow": "I"
}
{- "CreateNewDeclarationResult": {
- "SelfAsString": "string",
- "entityState": -1,
- "CDSStateCd": 1,
- "CustOrganizationCd": "AU",
- "MailObjectPId": "1a9b53e6-46ba-4565-91d1-38bb364224ce",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostOrganizationCd": "AUA",
- "XMLData": "string",
- "Data": {
- "CommercialTransactions": [
- {
- "ContentPiecesIndexes": [
- 1,
- 2,
- 4
], - "MarketPlaceId": "string",
- "MarketPlaceUrl": "string",
- "PurchaseOrderNumber": "string",
- "SalesOrderNumber": "string"
}
], - "ContentPieces": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "ImportRestrictions": "string",
- "ImportRestrictionsNotes": "string",
- "Index": 0,
- "NetWeight": 0,
- "Number": 0,
- "OrigCountryCd": "AU",
- "RevisedDescription": "string",
- "RevisedHS": "Revised HS code"
}
], - "CustomerChargingArrangementCd": "string",
- "NatureTransactionReference": "string",
- "Documents": [
- {
- "DocumentId": "string",
- "DocumentName": "string",
- "DocumentType": "string",
- "Url": "string"
}
], - "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "GrossWeight": 0,
- "HandlingClassCd": "N",
- "InsuredValue": 0,
- "InsuredValueCurrencyCd": "string",
- "MaxIndex": 0,
- "NatureTypeCd": "21",
- "NatureTypeDesc": "string",
- "NonDelivInstCd": "string",
- "Observations": "string",
- "OrigDutiesAmt": 0,
- "OrigDutiesCurrencyCd": "string",
- "OriginOfficeCd": "string",
- "OriginOfficeNm": "string",
- "OtherParties": [
- {
- "OtherPartyAddressLine1": "string",
- "OtherPartyAddressLine2": "string",
- "OtherPartyCity": "string",
- "OtherPartyCountryCd": "AU",
- "OtherPartyEmail": "user@example.com",
- "OtherPartyFax": "string",
- "OtherPartyIdRef": "string",
- "OtherPartyName": "string",
- "OtherPartyPostalCertificate": "string",
- "OtherPartyReferenceType": "string",
- "OtherPartyRole": "AG",
- "OtherPartyState": "string",
- "OtherPartyTelephone": "string",
- "OtherPartyTypeOfPerson": "string",
- "OtherPartyZIP": "string"
}
], - "PackageImageLocalPath": "string",
- "PackageImageSourceInfo": "string",
- "Postage": 0,
- "PostageCurrencyCd": "USD",
- "RecipientAddressLine1": "string",
- "RecipientAddressLine2": "string",
- "RecipientCity": "string",
- "RecipientCountryCd": "AU",
- "RecipientEmail": "user@example.com",
- "RecipientFax": "string",
- "RecipientFirstName": "string",
- "RecipientIdRef": "string",
- "RecipientLastName": "string",
- "RecipientName": "string",
- "RecipientPostalCertificate": "string",
- "RecipientReferenceType": "string",
- "RecipientState": "string",
- "RecipientTelephone": "string",
- "RecipientTypeOfPerson": "string",
- "RecipientZIP": "string",
- "SenderAddressLine1": "string",
- "SenderAddressLine2": "string",
- "SenderCity": "string",
- "SenderCountryCd": "AU",
- "SenderEmail": "user@example.com",
- "SenderFirstName": "string",
- "SenderIdRef": "string",
- "SenderLastName": "string",
- "SenderName": "string",
- "SenderPostalCertificate": "string",
- "SenderReferenceType": "string",
- "SenderState": "string",
- "SenderTelephone": "string",
- "SenderTypeOfPerson": "string",
- "SenderZIP": "string",
- "TransportDate": "/Date(1562748420000+0200)/",
- "TransportMode": "PL"
}
}
}
Creates a new response without storing in the CDS database
token required | string <uuid> (Token) The security token used to authorize the web method call. |
postalOrgCd required | string The postal organization code (e.g. AUA - Australia Post) were the declarations and responses were created. |
customsOrgCd required | string The customs organization code (e.g. AU - Australia Post Customs) were the declarations and responses were created. |
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "token": "b5507016-7da2-4777-a161-1e8042a6a377",
- "postalOrgCd": "AUA",
- "customsOrgCd": "AU"
}
{- "CreateNewResponseResult": {
- "SelfAsString": "string",
- "entityState": -1,
- "CDSStateCd": 1,
- "CustOrganizationCd": "AU",
- "MailObjectPId": "1a9b53e6-46ba-4565-91d1-38bb364224ce",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostOrganizationCd": "AUA",
- "XMLData": "string",
- "Data": {
- "ClearanceDt": "/Date(1562748420000+0200)/",
- "DecisionCd": "string",
- "DecisionReasonCd": "string",
- "DecisionReasonNm": "string",
- "Dutiable": true,
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "Taxes": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "NetWeight": 0,
- "Number": 0,
- "Rate": 0,
- "Type": "VAT"
}
], - "TotalFee": 0,
- "TotalFeeCurrencyCd": "USD"
}
}
}
Determines the customs decision name (e.g. item must be presented, item is cleared) and category (e.g. Hold, clearance, prohibition) from a decision code
token required | string <uuid> (Token) The security token used to authorize the web method call. |
decisionCode | string The decision code from customs as contained in the Response object (e.g. 1 - item must be presented, 2 - item is cleared, etc) |
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "token": "b5507016-7da2-4777-a161-1e8042a6a377",
- "decisionCode": "1"
}
{- "GetDecisionNameAndCategoryFromCodeResult": [
- "Item is not allowed in country",
- "R"
]
}
Returns an heartbeat object with the last time of each CDS component was used
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "securityToken": "63de3b10-521c-4dbb-8836-59da8dad803e",
- "userCd": "depost"
}
{- "GetHeartbeatResult": {
- "API": "/Date(1562748420000+0200)/",
- "Service": "/Date(1562748420000+0200)/",
- "Web": "/Date(1562748420000+0200)/"
}
}
Returns a SimpleRefDataCocktail for the language passed as parameter
securityToken required | string <uuid> (Token) The security token used to authorize the web method call. |
languageCd | string Default: "EN" 'Language code to get the reference data. Ex: PT (for Portuguese), FR (for French), ES (for Spanish). If null or not provided, EN (English) will be used.' |
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "securityToken": "63de3b10-521c-4dbb-8836-59da8dad803e",
- "languageCd": "PT"
}
{- "LoadRefDataCocktailResult": {
- "Countries": [
- {
- "Code": "US",
- "Name": "UNITED STATES OF AMERICA"
}
], - "Currencies": [
- {
- "Code": "USD",
- "Name": "US Dollar",
- "Countries": [
- "BQ",
- "EC",
- "US"
], - "DecimalPlaces": 2
}
], - "DocumentTypes": [
- {
- "Code": "CRT",
- "Name": "certificate"
}
], - "NatureTypes": [
- {
- "Code": 11,
- "Name": "Sale of goods"
}
]
}
}
Returns restrictions or prohibition for a certain good
securityToken required | string <uuid> (Token) The security token used to authorize the web method call. |
destinationPostalOrgCd required | string The postal destination of the good |
sendingCountryCd required | string ISO country code of the country where the good is originating from |
goodDescription required | string Full or partial description of good in English (use short words, i.e. tobacco) |
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "securityToken": "63de3b10-521c-4dbb-8836-59da8dad803e",
- "destinationPostalOrgCd": "FRA",
- "sendingCountryCd": "FR",
- "goodDescription": "tobacco"
}
{- "GetRestrictionProhibitionByDescriptionResult": [
- {
- "SelfAsString": "string",
- "entityState": -1,
- "AdditionalDocFileName": "string",
- "Description": "string",
- "FromHSCode": "string",
- "HSCodeList": "string",
- "LanguageCd": "string",
- "OrganizationCd": "str",
- "PCategory": "P",
- "RestrictedCountries": "string",
- "RestrictionNote": "string",
- "ToHSCode": "string",
- "Valid": "string",
- "WebsiteInfo": "string"
}
]
}
Returns restrictions or prohibition for a certain good
securityToken required | string <uuid> (Token) The security token used to authorize the web method call. |
destinationCountryCd required | string ISO country code of the destination country of the good |
sendingCountryCd required | string ISO country code of the country where the good is originating from |
goodDescription required | string Description of good (preferable in English. French or Spanish may be used with lower search efficiency, other languages may be supported on demand) |
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "securityToken": "63de3b10-521c-4dbb-8836-59da8dad803e",
- "destinationCountryCd": "FR",
- "sendingCountryCd": "FR",
- "goodDescription": "tobacco"
}
{- "GetRestrictionProhibitionByDescriptionByCountryResult": [
- {
- "SelfAsString": "string",
- "entityState": -1,
- "AdditionalDocFileName": "string",
- "Description": "string",
- "FromHSCode": "string",
- "HSCodeList": "string",
- "LanguageCd": "string",
- "OrganizationCd": "str",
- "PCategory": "P",
- "RestrictedCountries": "string",
- "RestrictionNote": "string",
- "ToHSCode": "string",
- "Valid": "string",
- "WebsiteInfo": "string"
}
]
}
Returns restrictions or prohibition for a given list of descriptions
securityToken required | string <uuid> (Token) The security token used to authorize the web method call. |
destinationPostalOrgCd required | string The postal destination of the good |
sendingCountryCd required | string ISO country code of the country where the good is originating from |
goodDescriptions required | Array of strings List of full or partial description of good in English (use short words, i.e. tobacco) |
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "securityToken": "63de3b10-521c-4dbb-8836-59da8dad803e",
- "destinationPostalOrgCd": "FRA",
- "sendingCountryCd": "FR",
- "goodDescriptions": [
- [
- "tobacco",
- "shirt"
]
]
}
{- "GetRestrictionProhibitionsByDescriptionsResult": [
- {
- "SelfAsString": "string",
- "entityState": -1,
- "AdditionalDocFileName": "string",
- "Description": "string",
- "FromHSCode": "string",
- "HSCodeList": "string",
- "LanguageCd": "string",
- "OrganizationCd": "str",
- "PCategory": "P",
- "RestrictedCountries": "string",
- "RestrictionNote": "string",
- "ToHSCode": "string",
- "Valid": "string",
- "WebsiteInfo": "string"
}
]
}
Returns restrictions or prohibition for a given list of descriptions
securityToken required | string <uuid> (Token) The security token used to authorize the web method call. |
destinationCountryCd required | string ISO country code of the destination country of the good |
sendingCountryCd required | string ISO country code of the country where the good is originating from |
goodDescriptions required | Array of strings List of full or partial description of good in English (use short words, i.e. tobacco) |
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "securityToken": "63de3b10-521c-4dbb-8836-59da8dad803e",
- "destinationCountryCd": "FR",
- "sendingCountryCd": "FR",
- "goodDescriptions": [
- [
- "tobacco",
- "shirt"
]
]
}
{- "GetRestrictionProhibitionsByDescriptionsByCountryResult": [
- {
- "SelfAsString": "string",
- "entityState": -1,
- "AdditionalDocFileName": "string",
- "Description": "string",
- "FromHSCode": "string",
- "HSCodeList": "string",
- "LanguageCd": "string",
- "OrganizationCd": "str",
- "PCategory": "P",
- "RestrictedCountries": "string",
- "RestrictionNote": "string",
- "ToHSCode": "string",
- "Valid": "string",
- "WebsiteInfo": "string"
}
]
}
Returns restrictions or prohibition for a certain good
securityToken required | string <uuid> (Token) The security token used to authorize the web method call. |
destinationPostalOrgCd required | string The postal destination of the good |
sendingCountryCd required | string ISO country code of the country where the good is originating from |
goodHSCode required | string HS code of the good |
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "securityToken": "63de3b10-521c-4dbb-8836-59da8dad803e",
- "destinationPostalOrgCd": "FRA",
- "sendingCountryCd": "FR",
- "goodHSCode": "240210"
}
{- "GetRestrictionProhibitionByHSResult": [
- {
- "SelfAsString": "string",
- "entityState": -1,
- "AdditionalDocFileName": "string",
- "Description": "string",
- "FromHSCode": "string",
- "HSCodeList": "string",
- "LanguageCd": "string",
- "OrganizationCd": "str",
- "PCategory": "P",
- "RestrictedCountries": "string",
- "RestrictionNote": "string",
- "ToHSCode": "string",
- "Valid": "string",
- "WebsiteInfo": "string"
}
]
}
Returns restrictions or prohibition for a certain good
securityToken required | string <uuid> (Token) The security token used to authorize the web method call. |
destinationCountryCd required | string ISO country code of the destination country of the good |
sendingCountryCd required | string ISO country code of the country where the good is originating from |
goodHSCode required | string HS code of the good |
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "securityToken": "63de3b10-521c-4dbb-8836-59da8dad803e",
- "destinationCountryCd": "FR",
- "sendingCountryCd": "FR",
- "goodHSCode": "240210"
}
{- "GetRestrictionProhibitionByHSByCountryResult": [
- {
- "SelfAsString": "string",
- "entityState": -1,
- "AdditionalDocFileName": "string",
- "Description": "string",
- "FromHSCode": "string",
- "HSCodeList": "string",
- "LanguageCd": "string",
- "OrganizationCd": "str",
- "PCategory": "P",
- "RestrictedCountries": "string",
- "RestrictionNote": "string",
- "ToHSCode": "string",
- "Valid": "string",
- "WebsiteInfo": "string"
}
]
}
Checks if a mail item is prohibited/restricted
securityToken required | string <uuid> (Token) The security token used to authorize the web method call. |
mailItemID required | string The mail item ID to which we want to check if it restricted/prohibited |
returnRestrictionsProhibitions | boolean To determine if the list of restriction/prohibitions found should be returned. True to return the list. False not to return the list. |
originCountryCd | string ISO country code of the country where the good is originating from (i.e. FR). |
destinationCountryCd | string ISO country code of the country where the good is destined to (i.e. FR). |
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "securityToken": "63de3b10-521c-4dbb-8836-59da8dad803e",
- "mailItemID": "EE23050001XAU",
- "returnRestrictionsProhibitions": true,
- "originCountryCd": "FR",
- "destinationCountryCd": "FR"
}
{- "IsItemRestrictedProhibitedResult": true,
- "restrictionsProhibitions": [
- {
- "SelfAsString": "string",
- "entityState": -1,
- "AdditionalDocFileName": "string",
- "Description": "string",
- "FromHSCode": "string",
- "HSCodeList": "string",
- "LanguageCd": "string",
- "OrganizationCd": "str",
- "PCategory": "P",
- "RestrictedCountries": "string",
- "RestrictionNote": "string",
- "ToHSCode": "string",
- "Valid": "string",
- "WebsiteInfo": "string"
}
]
}
Returns the current watchdog information for a given item. If more than one item with the same itemId is found, the function returns the most recent item.
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "securityToken": "63de3b10-521c-4dbb-8836-59da8dad803e",
- "itemId": "EE23050001XAU"
}
{- "GetWatchdogItemInfoResult": {
- "Operation": 2,
- "Remarks": "string"
}
}
Sets the current watchdog information for a new or existing item together with item's destination, mail class and posting date. If more than one item with the same itemId is found, an error is thrown.
securityToken required | string <uuid> (Token) The security token used to authorize the web method call. |
itemId required | string The id of the mail object |
destinationPostalOrgCd | string The postal destination of the good (i.e. AUA, FRA, etc.). If this parameter is null and the item does not yet exist in CDS, a ZZZ value is assumed. |
mailClassCd | string The mail class (e.g. E - EMS, U - Letters, C - Parcels). If this parameter is null and the item does not yet exist in CDS, the mail class will be determined from the itemId. |
postingDate | string <timestamp> (Epoch) \/Date\([0-9]+\+[0-9]{4}\)\/ The epoch (or Unix timestamp) is the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT), not counting leap seconds. |
object (WatchdogInfo) |
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "securityToken": "63de3b10-521c-4dbb-8836-59da8dad803e",
- "itemId": "EE23050001XAU",
- "destinationPostalOrgCd": "AUA",
- "mailClassCd": "E",
- "postingDate": "/Date(1562748420000+0200)/",
- "watchdogInfo": {
- "Operation": 2,
- "Remarks": "string"
}
}
{ }
Loads a list of marketed goods. Either seller or buyer organization must be provided.
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "token": "b5507016-7da2-4777-a161-1e8042a6a377",
- "sellerOrganizationCd": "AUA",
- "buyerOrganizationCd": "FRA"
}
{- "LoadMarketedGoodResult": [
- {
- "SelfAsString": "string",
- "entityState": -1,
- "Description": "string",
- "Details": {
- "BuyerOrganizations": [
- "string"
], - "FreeOfChargeReturn": true,
- "GoodDetails": "string",
- "HSCode": "string",
- "HeightCm": 0,
- "LengthCm": 0,
- "Picture": "string",
- "Price": {
- "Amount": 0,
- "Currency": "string"
}, - "SellerAddress": "string",
- "SellerCity": "string",
- "SellerCountry": "string",
- "SellerName": "string",
- "SellerPhone": "string",
- "SellerRefId": "string",
- "SellerZip": "string",
- "ServiceDescription": "string",
- "Stock": 0,
- "WeightKg": 0,
- "WidthCm": 0
}, - "ReferenceId": 0,
- "SellerOrganizationCd": "string",
- "ValidFrom": "/Date(1562748420000+0200)/",
- "ValidTo": "/Date(1562748420000+0200)/",
- "XmlDetails": "string"
}
]
}
Stores a marketed good
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "token": "b5507016-7da2-4777-a161-1e8042a6a377",
- "marketedGood": {
- "Description": "string",
- "Details": {
- "BuyerOrganizations": [
- "string"
], - "FreeOfChargeReturn": true,
- "GoodDetails": "string",
- "HSCode": "string",
- "HeightCm": 0,
- "LengthCm": 0,
- "Picture": "string",
- "Price": {
- "Amount": 0,
- "Currency": "string"
}, - "SellerAddress": "string",
- "SellerCity": "string",
- "SellerCountry": "string",
- "SellerName": "string",
- "SellerPhone": "string",
- "SellerRefId": "string",
- "SellerZip": "string",
- "ServiceDescription": "string",
- "Stock": 0,
- "WeightKg": 0,
- "WidthCm": 0
}, - "ReferenceId": 0,
- "SellerOrganizationCd": "string",
- "ValidFrom": "/Date(1562748420000+0200)/",
- "ValidTo": "/Date(1562748420000+0200)/",
- "XmlDetails": "string"
}
}
{ }
Loads a list of postal services provided by an origin postal organization to a destination postal organization
token required | string <uuid> (Token) The security token used to authorize the web method call. |
origOrganizationCd required | string The origin postal destination of the service |
destOrganizationCd required | string The destination postal destination of the service |
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "token": "b5507016-7da2-4777-a161-1e8042a6a377",
- "origOrganizationCd": "AUA",
- "destOrganizationCd": "FRA"
}
{- "LoadPostalServicesResult": [
- {
- "SelfAsString": "string",
- "entityState": -1,
- "DestOrganizationCd": "string",
- "Details": {
- "DestCountry": "string",
- "DestZoneNumber": "string",
- "MailSubclasses": [
- "string"
], - "Options": {
- "CODFlag": true,
- "DelivConfirmation": true,
- "HandlingClass": "string",
- "HoldForPickup": true,
- "OnDemandPickup": true,
- "OnTimeDelivGuarantee": true,
- "SignatureRequired": true,
- "Tracking": true
}, - "OrigCountry": "string",
- "OrigZoneNumber": "string",
- "PhysicalLimits": {
- "MaxHeight": 0,
- "MaxLenght": 0,
- "MaxWeight": 0,
- "MaxWidth": 0,
- "MinHeight": 0,
- "MinLenght": 0,
- "MinWeight": 0,
- "MinWidth": 0
}, - "Rates": [
- {
- "ItemMaxWeight": 0,
- "RateCode": "string",
- "RatePeKg": {
- "Amount": 0,
- "Currency": "string"
}
}
], - "Standards": [
- {
- "CutoffHour": 0,
- "CutoffMin": 0,
- "MaxDays": 0,
- "MinDays": 0
}
]
}, - "MailCategoryCd": "A",
- "MailClassCd": "E",
- "OrigOrganizationCd": "string",
- "ServiceId": "2fef0766-3da4-440d-b7a0-49613f7dbea7",
- "ServiceNm": "string",
- "ValidFrom": "/Date(1562748420000+0200)/",
- "ValidTo": "/Date(1562748420000+0200)/",
- "XmlDetails": "string"
}
]
}
Stores a postal service
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "token": "b5507016-7da2-4777-a161-1e8042a6a377",
- "postalService": {
- "DestOrganizationCd": "string",
- "Details": {
- "DestCountry": "string",
- "DestZoneNumber": "string",
- "MailSubclasses": [
- "string"
], - "Options": {
- "CODFlag": true,
- "DelivConfirmation": true,
- "HandlingClass": "string",
- "HoldForPickup": true,
- "OnDemandPickup": true,
- "OnTimeDelivGuarantee": true,
- "SignatureRequired": true,
- "Tracking": true
}, - "OrigCountry": "string",
- "OrigZoneNumber": "string",
- "PhysicalLimits": {
- "MaxHeight": 0,
- "MaxLenght": 0,
- "MaxWeight": 0,
- "MaxWidth": 0,
- "MinHeight": 0,
- "MinLenght": 0,
- "MinWeight": 0,
- "MinWidth": 0
}, - "Rates": [
- {
- "ItemMaxWeight": 0,
- "RateCode": "string",
- "RatePeKg": {
- "Amount": 0,
- "Currency": "string"
}
}
], - "Standards": [
- {
- "CutoffHour": 0,
- "CutoffMin": 0,
- "MaxDays": 0,
- "MinDays": 0
}
]
}, - "MailCategoryCd": "A",
- "MailClassCd": "E",
- "OrigOrganizationCd": "string",
- "ServiceId": "2fef0766-3da4-440d-b7a0-49613f7dbea7",
- "ServiceNm": "string",
- "ValidFrom": "/Date(1562748420000+0200)/",
- "ValidTo": "/Date(1562748420000+0200)/",
- "XmlDetails": "string"
}
}
{ }
Prints CN22 associated with the mail item ID passed as parameter
token required | string <uuid> (Token) The security token used to authorize the web method call. |
mailItemId required | string The mail item ID to which CN22 is to be printed |
userCd required | string The user code that authors the document printing |
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "token": "b5507016-7da2-4777-a161-1e8042a6a377",
- "mailItemId": "EE23050001XAU",
- "userCd": "depost"
}
{- "PrintCustomsDeclarationResult": "string"
}
Prints document associated to customs declaration
token required | string <uuid> (Token) The security token used to authorize the web method call. |
required | object (CDSView) CDS data facade. Aggregates mail object, declaration, response from customs, response from destination customs (applicable for outbound mail only) |
userCd required | string The user code that will author the creation of the customs response (if applicable). If the user code does not exist in CDS, it will be automatically created and linked to the organization that issued the security token. |
officeCd | string The office code that will author the creation of the customs response (if applicable) |
Successfully retrieved the response
ValidationException response
Unauthorized response
{- "token": "b5507016-7da2-4777-a161-1e8042a6a377",
- "cdsView": {
- "DCResponse": {
- "CDSStateCd": 1,
- "CustOrganizationCd": "AU",
- "MailObjectPId": "1a9b53e6-46ba-4565-91d1-38bb364224ce",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostOrganizationCd": "AUA",
- "Data": {
- "ClearanceDt": "/Date(1562748420000+0200)/",
- "DecisionCd": "string",
- "DecisionReasonCd": "string",
- "DecisionReasonNm": "string",
- "Dutiable": true,
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "Taxes": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "NetWeight": 0,
- "Number": 0,
- "Rate": 0,
- "Type": "VAT"
}
], - "TotalFee": 0,
- "TotalFeeCurrencyCd": "USD"
}
}, - "Declaration": {
- "CDSStateCd": 1,
- "CustOrganizationCd": "AU",
- "MailObjectPId": "1a9b53e6-46ba-4565-91d1-38bb364224ce",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostOrganizationCd": "AUA",
- "Data": {
- "CommercialTransactions": [
- {
- "ContentPiecesIndexes": [
- 1,
- 2,
- 4
], - "MarketPlaceId": "string",
- "MarketPlaceUrl": "string",
- "PurchaseOrderNumber": "string",
- "SalesOrderNumber": "string"
}
], - "ContentPieces": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "ImportRestrictions": "string",
- "ImportRestrictionsNotes": "string",
- "Index": 0,
- "NetWeight": 0,
- "Number": 0,
- "OrigCountryCd": "AU",
- "RevisedDescription": "string",
- "RevisedHS": "Revised HS code"
}
], - "CustomerChargingArrangementCd": "string",
- "NatureTransactionReference": "string",
- "Documents": [
- {
- "DocumentId": "string",
- "DocumentName": "string",
- "DocumentType": "string",
- "Url": "string"
}
], - "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "GrossWeight": 0,
- "HandlingClassCd": "N",
- "InsuredValue": 0,
- "InsuredValueCurrencyCd": "string",
- "MaxIndex": 0,
- "NatureTypeCd": "21",
- "NatureTypeDesc": "string",
- "NonDelivInstCd": "string",
- "Observations": "string",
- "OrigDutiesAmt": 0,
- "OrigDutiesCurrencyCd": "string",
- "OriginOfficeCd": "string",
- "OriginOfficeNm": "string",
- "OtherParties": [
- {
- "OtherPartyAddressLine1": "string",
- "OtherPartyAddressLine2": "string",
- "OtherPartyCity": "string",
- "OtherPartyCountryCd": "AU",
- "OtherPartyEmail": "user@example.com",
- "OtherPartyFax": "string",
- "OtherPartyIdRef": "string",
- "OtherPartyName": "string",
- "OtherPartyPostalCertificate": "string",
- "OtherPartyReferenceType": "string",
- "OtherPartyRole": "AG",
- "OtherPartyState": "string",
- "OtherPartyTelephone": "string",
- "OtherPartyTypeOfPerson": "string",
- "OtherPartyZIP": "string"
}
], - "PackageImageLocalPath": "string",
- "PackageImageSourceInfo": "string",
- "Postage": 0,
- "PostageCurrencyCd": "USD",
- "RecipientAddressLine1": "string",
- "RecipientAddressLine2": "string",
- "RecipientCity": "string",
- "RecipientCountryCd": "AU",
- "RecipientEmail": "user@example.com",
- "RecipientFax": "string",
- "RecipientFirstName": "string",
- "RecipientIdRef": "string",
- "RecipientLastName": "string",
- "RecipientName": "string",
- "RecipientPostalCertificate": "string",
- "RecipientReferenceType": "string",
- "RecipientState": "string",
- "RecipientTelephone": "string",
- "RecipientTypeOfPerson": "string",
- "RecipientZIP": "string",
- "SenderAddressLine1": "string",
- "SenderAddressLine2": "string",
- "SenderCity": "string",
- "SenderCountryCd": "AU",
- "SenderEmail": "user@example.com",
- "SenderFirstName": "string",
- "SenderIdRef": "string",
- "SenderLastName": "string",
- "SenderName": "string",
- "SenderPostalCertificate": "string",
- "SenderReferenceType": "string",
- "SenderState": "string",
- "SenderTelephone": "string",
- "SenderTypeOfPerson": "string",
- "SenderZIP": "string",
- "TransportDate": "/Date(1562748420000+0200)/",
- "TransportMode": "PL"
}
}, - "MailObject": {
- "DestPostOrgCd": "CAA",
- "Id": "EE23050001XAU",
- "LocalId": "string",
- "LocalId2": "string",
- "MailCategoryCd": "A",
- "MailClassCd": "E",
- "MailFlowCd": "I",
- "MailStateCd": 1,
- "MailStateRemarks": "state = 2 (arrived in OOE)",
- "OrigPostOrgCd": "AUA",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostingDt": "/Date(1562748420000+0200)/",
- "TypeCd": "MI"
}, - "Response": {
- "CDSStateCd": 1,
- "CustOrganizationCd": "AU",
- "MailObjectPId": "1a9b53e6-46ba-4565-91d1-38bb364224ce",
- "PId": "17ea71fd-453e-4b97-9990-d253cbb12822",
- "PostOrganizationCd": "AUA",
- "Data": {
- "ClearanceDt": "/Date(1562748420000+0200)/",
- "DecisionCd": "string",
- "DecisionReasonCd": "string",
- "DecisionReasonNm": "string",
- "Dutiable": true,
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "Taxes": [
- {
- "Amount": 0,
- "CurrencyCd": "USD",
- "Description": "string",
- "ExtraFieldNames": [
- "NameField1",
- "NameField2",
- "NameField3",
- "...",
- "NameFieldN"
], - "ExtraFieldValues": [
- "ValueField1",
- "ValueField2",
- "ValueField3",
- "...",
- "ValueFieldN"
], - "HS": "string",
- "NetWeight": 0,
- "Number": 0,
- "Rate": 0,
- "Type": "VAT"
}
], - "TotalFee": 0,
- "TotalFeeCurrencyCd": "USD"
}
}
}, - "userCd": "depost",
- "officeCd": "DEAAAA"
}
{- "PrintDocResult": "string"
}