1 Business Brixx UPS Shipping
2 Business Brixx UPS Shipping -> CreateShipment
2.1 Incomming Information
2.2 Returning Information
2.3 Example Usages
3 CancelShipment
4 GetLabel
For accessing the UPS-Shipping brixxbox interface the UPS services need the following setup values (configuration -> settings).
UPSCustomerID Your customer number with UPS
UPSUsername A valid User for accessing the services
UPSPassword The corresponding password
UPSAccessLicenseNumber A license/access key provided by UPS on this page https://www.ups.com/upsdeveloperkit
If no settings are available, a sample label will be generated.
Creates a UPS shipping label
To create labels four groups of information are available:
1. Settings with the following fields (If the group/field is not present default values will be assumed)
ServiceCode: default value "11" UPS Standard. Valid values according to UPS service codes.
MetricMeasurements: "1" sets to true. This is the default. Measurements will be metric e.g. kg, cm or nonmetric for lbs, inch
Language: Language code according to UPS. e.g. deu, eng, spa. this field will be set to user language by default. If the user language is not available for UPS, "eng" will be used.
2. Shipper:
Name
Street
HouseNo
ZipCode
City
CountryCode
StateProvinceCode
AttentionName
Phone
FaxNumber
TaxIdentificationNumber
3. ShipAddress:
Name
Street
HouseNo
ZipCode
City
CountryCode
StateProvinceCode
AttentionName
Phone
FaxNumber
TaxIdentificationNumber
4. ParcelData:
Description
PackageType: Package type according to UPS. If no value is given, the default will be set to: "02" Customer Supplied Package
Weight
Height
Length
Width
In case of success (status 200) the following fields are returned
TrackingNumber: The UPS generated ID. This will be used for further references to this shipment.
LabelData: this is a blob response. It contains the actual label in GIF format and can directly be used for further processing. E.g. “brixxApi.printBlob(LabelData);”
In case of error (status 400) the following fields are returned:
error: a text showing the first error. E.g. “console.log(result.error);”
To cancel an existing shipment only the TrackingNumber is needed.
In case the label is needed again it can be retrieved with an existing TrackingNumber. The result will show LabelData (see CreateShipment results #Returning_Information for details)