GetFormCN22 Method
Retrieves Customs Form CN 22 providing customs barcode number, regulations, prohibitions, observations, restrictions, and image files of the customs forms required to ship to the destination country.
Syntax
uspsshipintl.getFormCN22([callback])
Callback
The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).
The callback for this method is defined as:
function(err){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'err' has 2 properties which hold detailed information:
err.code err.message
Remarks
This method uses the following properties:
- SenderFirstName (required)
- SenderLastName (required)
- SenderCompany (optional)
- SenderAddress1 (required)
- SenderAddress2 (optional)
- SenderCity (required)
- SenderState (required)
- SenderZipCode (required)
- SenderPhone (required)
- CustomerId (optional)
- RecipientAddress1
- RecipientAddress2
- RecipientAddress3
- RecipientAddress4
- RecipientCountryCode (required)
- RecipientZipCode (optional)
- RecipientPhone (optional)
- RecipientFax (optional)
- RecipientEmail (optional)
- LabelImageType (required)
- CommodityDescription (required)
- CommodityQuantity (required)
- CommodityWeight (optional)
- CommodityUnitPrice (required)
- Contents (required)
- CountryOfOrigin (optional)
- HSTariffNumber (optional)
- PackageWeight (required)
This method fills the following properties: