• Docs
  • Guides
  • API Status

Migrating from v3 to v3.1


Update BaseURL

  • Base URL has been modified from https://packagehub-api.visiblescm.com/v3/ to https://packagehub-api.visiblescm.com/v3.1/

Impacted Objects

  1. CustomsItem
  2. Packages

CustomsItem

  • packageNumber parameter has been added in body of CustomsItem object. For detailed description, click here.
  • v3
  • v3.1
{
    "weightUnit": "oz",
    "customsInfoId": "string",
    "description": "string",
    "quantity": 0,
    "weight": 0,
    "value": 0,
    "hsTariffNumber": "string",
    "originCountry": "string",
    "itemCode": "string",
    "createdDate": "2020-10-08T19:32:18.764Z"
}
{
    "weightUnit": "oz",
    "customsInfoId": "string",
    "description": "string",
    "quantity": 0,
    "weight": 0,
    "value": 0,
    "hsTariffNumber": "string",
    "originCountry": "string",
    "itemCode": "string",
    "packageNumber": 1,
    "createdDate": "2020-10-08T19:32:18.764Z"
}

Packages

  • package object in v3 has been modified to packages array of object in v3.1. For detailed description, click here.
  • v3
  • v3.1
{
  "packageType": "Parcel",
  "isRectangle": true,
  "length": 0,
  "width": 0,
  "height": 0,
  "dimensionUnit": "cm",
  "weight": 0,
  "weightUnit": "oz"
}
[
    {
      "packageNumber": 1,
      "packageType": "Parcel",
      "isRectangle": true,
      "length": 0,
      "width": 0,
      "height": 0,
      "dimensionUnit": "cm",
      "weight": 0,
      "weightUnit": "oz"
    }
]

Impacted Endpoints

  1. ShipmentRate
  2. Shipment
  3. Manifest

ShipmentRate

  • Request in v3
  • Request in v3.1
  • Response in v3
  • Response in v3.1
{
  "fromAddress": {
    "id": "string"
  },
  "toAddress": {
    "name": "string",
    "company": "string",
    "street1": "string",
    "street2": "string",
    "street3": "string",
    "city": "string",
    "state": "string",
    "zip": "string",
    "country": "string",
    "phone": "string",
    "email": "string",
    "save": true,
    "verify": true,
    "isResidential": true,
    "referenceType": "TaxCode",
    "referenceValue": "string",
  },
  "package": {
    "id": "string",
    "packageType": "Parcel",
    "isRectangle": true,
    "length": 0,
    "width": 0,
    "height": 0,
    "dimensionUnit": "cm",
    "weight": 0,
    "weightUnit": "oz"
  },
  "service": "ALL",
  "carrierAccountId": "string",
  "specialService": [
    "RestrictedDelivery"
  ],
  "customsInfo": {
    "customsItem": [
      {
        "weightUnit": "oz",
        "customsInfoId": "string",
        "description": "string",
        "quantity": 0,
        "weight": 0,
        "value": 0,
        "hsTariffNumber": "string",
        "originCountry": "string",
        "itemCode": "string"
      }
    ],
    "contentType": "DOCUMENTS",
    "contentsExplanation": "string",
    "customsCertify": true,
    "customsSigner": "string",
    "currency": "string",
    "nonDeliveryOption": "RETURN",
    "restrictionType": "Quarantine",
    "restrictionComments": "string",
    "eelpfc": "NOEEI3037a",
    "aesitn": "string"
  },
  "specialServiceParam": {
    "hazmatDescription": "string",
    "hazmatPhone": "string",
    "codAmount": 0,
    "registeredMailAmount": 0,
    "insuranceAmount": 0,
    "liveAnimalsType": "Bees"
  }
}
{
  "fromAddress": {
    "id": "string"
  },
  "toAddress": {
    "name": "string",
    "company": "string",
    "street1": "string",
    "street2": "string",
    "street3": "string",
    "city": "string",
    "state": "string",
    "zip": "string",
    "country": "string",
    "phone": "string",
    "email": "string",
    "save": true,
    "verify": true,
    "isResidential": true,
    "referenceType": "TaxCode",
    "referenceValue": "string",
  },
  "packages": [
    {
        "packageNumber": 0,
        "packageType": "Parcel",
        "isRectangle": true,
        "length": 0,
        "width": 0,
        "height": 0,
        "dimensionUnit": "cm",
        "weight": 0,
        "weightUnit": "oz"
    }
  ],
  "service": "ALL",
  "carrierAccountId": "string",
  "specialService": [
    "RestrictedDelivery"
  ],
  "customsInfo": {
    "customsItem": [
      {
        "id": "string",
        "packageNumber": 0,
        "weightUnit": "oz",
        "customsInfoId": "string",
        "description": "string",
        "quantity": 0,
        "weight": 0,
        "value": 0,
        "hsTariffNumber": "string",
        "originCountry": "string",
        "itemCode": "string"
      }
    ],
    "contentType": "DOCUMENTS",
    "contentsExplanation": "string",
    "customsCertify": true,
    "customsSigner": "string",
    "currency": "string",
    "nonDeliveryOption": "RETURN",
    "restrictionType": "Quarantine",
    "restrictionComments": "string",
    "eelpfc": "NOEEI3037a",
    "aesitn": "string"
  },
  "specialServiceParam": {
    "hazmatDescription": "string",
    "hazmatPhone": "string",
    "codAmount": 0,
    "registeredMailAmount": 0,
    "insuranceAmount": 0,
    "liveAnimalsType": "Bees",
    "dryIceWeight": 0,
    "regulationSet": "CFR"
  }
}
{
  "rates": [
    {
      "finalWeightUnit": "oz",
      "finalDimensionUnit": "cm",
      "oversized": true,
      "carrierAccountName": "USPS",
      "carrierCode": "USPS-eVS",
      "carrierAccountId": "string",
      "finalService": "ALL",
      "finalPackageType": "Parcel",
      "finalWeight": 0,
      "cubicTier": 0,
      "finalVolume": 0,
      "type": "Weight",
      "totalFee": 0,
      "fees": [
        {
          "type": "string",
          "fee": 0
        }
      ],
      "currency": "USD",
      "deliveryDays": 0,
      "deliveryDate": "2020-05-04T13:33:37.235Z",
      "deliveryDateGuaranteed": true,
      "deliveryDateActual": "2020-05-04T13:33:37.235Z",
      "zone": "string",
      "createdDate": "2020-05-04T13:33:37.235Z"
    }
  ],
  "errors": [
    {
      "code": "string",
      "message": "string",
      "type": "RateError",
      "carrierCode": "USPS-eVS",
      "carrierAccountId": "string"
    }
  ]
}
{
  "rates": [
    {
      "carrierAccountName": "string",
      "carrierCode": "USPS-eVS",
      "carrierAccountId": "string",
      "finalService": "ALL",
      "totalFee": 0,
      "fees": [
        {
          "packageNumber": 0,
          "type": "string",
          "fee": 0,
          "cubicTier": 0,
          "ratingType": "Weight"
        }
      ],
      "currency": "USD",
      "deliveryDays": 0,
      "deliveryDate": "2021-03-19T21:09:05.318Z",
      "deliveryDateGuaranteed": true,
      "deliveryDateActual": "2021-03-19T21:09:05.318Z",
      "zone": "string",
      "id": "string",
      "createdDate": "2021-03-19T21:09:05.318Z"
    }
  ],
  "errors": [
    {
      "source": "PHv3",
      "carrierCode": "USPS-eVS",
      "carrierAccountId": "string",
      "carrierAccountName": "string",
      "code": "string",
      "message": "string",
      "additionalInfo": {
        "code": "string",
        "message": "string"
      }
    }
  ]
}

Shipment

  • Request in v3
  • Request in v3.1
  • Response in v3
  • Response in v3.1
{
  "fromAddress": {
    "id": "string"
  },
  "toAddress": {
    "name": "string",
    "company": "string",
    "street1": "string",
    "street2": "string",
    "street3": "string",
    "city": "string",
    "state": "string",
    "zip": "string",
    "country": "string",
    "phone": "string",
    "email": "string",
    "save": true,
    "verify": true,
    "isResidential": true,
    "referenceType": "TaxCode",
    "referenceValue": "string"
  },
  "altReturnAddress": {
    "name": "string",
    "company": "string",
    "street1": "string",
    "street2": "string",
    "street3": "string",
    "city": "string",
    "state": "string",
    "zip": "string",
    "country": "string",
    "phone": "string",
    "email": "string",
    "save": true,
    "verify": true,
    "isResidential": true,
    "referenceType": "TaxCode",
    "referenceValue": "string"
  },
  "package": {
    "packageType": "Parcel",
    "length": 0,
    "width": 0,
    "height": 0,
    "weight": 0
  },
  "postageLabel": {
    "labelType": "Base64",
    "labelFileType": "PDF",
    "customText1": "Custom Text 1",
    "customText2": "Custom Text 2"
  },
  "carrierAccountId": "string",
  "service": "PriorityMail",
  "customsInfo": {
    "customsItem": [
      {
        "weightUnit": "oz",
        "customsInfoId": "string",
        "description": "string",
        "quantity": 0,
        "weight": 0,
        "value": 0,
        "hsTariffNumber": "string",
        "originCountry": "string",
        "itemCode": "string"
      }
    ],
    "contentType": "Documents",
    "contentsExplanation": "string",
    "customsCertify": true,
    "customsSigner": "string",
    "currency": "string",
    "nonDeliveryOption": "Return",
    "restrictionType": "Quarantine",
    "restrictionComments": "string",
    "eelpfc": "NOEEI3037a",
    "aesitn": "string"
  }
}
{
  "fromAddress": {
    "id": "string"
  },
  "toAddress": {
    "name": "string",
    "company": "string",
    "street1": "string",
    "street2": "string",
    "street3": "string",
    "city": "string",
    "state": "string",
    "zip": "string",
    "country": "string",
    "phone": "string",
    "email": "string",
    "save": true,
    "verify": true,
    "isResidential": true,
    "referenceType": "TaxCode",
    "referenceValue": "string"
  },
  "altReturnAddress": {
    "name": "string",
    "company": "string",
    "street1": "string",
    "street2": "string",
    "street3": "string",
    "city": "string",
    "state": "string",
    "zip": "string",
    "country": "string",
    "phone": "string",
    "email": "string",
    "save": true,
    "verify": true,
    "isResidential": true,
    "referenceType": "TaxCode",
    "referenceValue": "string"
  },
  "packages": [
    {
      "packageNumber": 1,
      "packageType": "Parcel",
      "isRectangle": true,
      "length": 0,
      "width": 0,
      "height": 0,
      "dimensionUnit": "cm",
      "weight": 0,
      "weightUnit": "oz"
    }
  ],
  "customsInfo": {
    "customsItem": [
      {
        "id": "string",
        "packageNumber": 0,
        "weightUnit": "oz",
        "customsInfoId": "string",
        "itemCode": "string",
        "description": "string",
        "quantity": 0,
        "weight": 0,
        "value": 0,
        "hsTariffNumber": "string",
        "originCountry": "string"
      }
    ],
    "contentType": "Documents",
    "contentsExplanation": "string",
    "customsCertify": true,
    "customsSigner": "string",
    "currency": "string",
    "nonDeliveryOption": "Return",
    "restrictionType": "Quarantine",
    "restrictionComments": "string",
    "eelpfc": "NOEEI3037a",
    "aesitn": "string"
  },
  "postageLabel": {
    "labelFileType": "PDF",
    "labelSize": "4x6",
    "labelOrientation": "Portrait",
    "labelType": "Base64",
    "customText1": "string",
    "customText2": "string",
    "customText3": "string"
  },
  "specialService": [
    "RestrictedDelivery"
  ],
  "specialServiceParam": {
    "hazmatDescription": "string",
    "hazmatPhone": "string",
    "codAmount": 0,
    "registeredMailAmount": 0,
    "insuranceAmount": 0,
    "liveAnimalsType": "Bees",
    "dryIceWeight": 0,
    "regulationSet": "CFR"
  },
  "carrierAccountId": "string",
  "service": "ALL",
  "shipDate": "2021-03-19T21:41:54.866Z"
}
{
  "id": "string",
  "accountId": "string",
  "appId": "string",
  "shipDate": "2019-10-18T12:37:35.552Z",
  "toAddress": {
    "errors": [
      "string"
    ],
    "name": "string",
    "company": "string",
    "street1": "string",
    "street2": "string",
    "street3": "string",
    "city": "string",
    "state": "string",
    "zip": "string",
    "country": "string",
    "phone": "string",
    "email": "string",
    "save": true,
    "verify": true,
    "source": "Shipment",
    "verificationStatus": "Success",
    "isResidential": true,
    "referenceType": "TaxCode",
    "referenceValue": "string",
    "id": "string",
    "createdDate": "2019-10-18T12:31:47.457Z"
  },
  "fromAddress": {
    "errors": [
      "string"
    ],
    "name": "string",
    "company": "string",
    "street1": "string",
    "street2": "string",
    "street3": "string",
    "city": "string",
    "state": "string",
    "zip": "string",
    "country": "string",
    "phone": "string",
    "email": "string",
    "save": true,
    "verify": true,
    "source": "Shipment",
    "verificationStatus": "Success",
    "isResidential": true,
    "referenceType": "TaxCode",
    "referenceValue": "string",
    "id": "string",
    "createdDate": "2019-10-18T12:31:47.457Z"
  },
  "altReturnAddress": {
    "errors": [
      "string"
    ],
    "name": "string",
    "company": "string",
    "street1": "string",
    "street2": "string",
    "street3": "string",
    "city": "string",
    "state": "string",
    "zip": "string",
    "country": "string",
    "phone": "string",
    "email": "string",
    "save": true,
    "verify": true,
    "source": "Shipment",
    "verificationStatus": "Success",
    "referenceType": "TaxCode",
    "referenceValue": "string",
    "isResidential": true,
    "id": "string",
    "createdDate": "2019-10-18T12:31:47.457Z"
  },
  "package": {
    "id": "string",
    "packageType": "Parcel",
    "isRectangle": true,
    "length": 0,
    "width": 0,
    "height": 0,
    "dimensionUnit": "cm",
    "weight": 0,
    "weightUnit": "oz"
  },
  "rates": [
    {
      "finalWeightUnit": "oz",
      "finalDimensionUnit": "cm",
      "oversized": true,
      "carrierAccountName": "USPS",
      "carrierAccountId": "string",
      "carrierCode": "USPS-eVS",
      "finalService": "ALL",
      "finalPackageType": "Parcel",
      "finalWeight": 0,
      "cubicTier": 0,
      "finalVolume": 0,
      "type": "Weight",
      "totalFee": 0,
      "fees": [
         {
            "type": "string",
            "fee": 0
         }
      ],
      "currency": "USD",
      "deliveryDays": 0,
      "deliveryDate": "2019-10-18T12:31:47.457Z",
      "deliveryDateGuaranteed": true,
      "deliveryDateActual": "2019-10-18T12:31:47.457Z",
      "zone": "string",
      "id": "string",
      "createdDate": "2019-10-18T12:31:47.457Z"
    }
  ],
  "postageLabel": {
    "labelFileType": "PDF",
    "labelType": "Base64",
    "labelSize": "4x6",
    "labelOrientation": "Portrait",
    "labels": [
      "string"
    ],
    "customText1": "string",
    "customText2": "string"
  },  
  "forms": [
    {
      "form": "string",
      "formType": "Receipt",
      "formFileType": "Text",
      "submittedElectronically": true
    }
  ],
  "tracking": {
    "trackingBarcodeNumber": "string",
    "trackingNumber": "string",
    "status": "PreTransit",
    "subStatus": "LabelGenerated",
    "trackingUrl": "string",
    "trackingDetails": [
      {
        "message": "string",
        "dateTime": "2019-10-18T12:31:47.458Z",
        "city": "string",
        "state": "string",
        "country": "string",
        "zip": "string"
      }
    ]
  },
  "refundStatus": "string",
  "returnLabelUrl": "string",
  "carrierAccountName": "USPS",
  "carrierCode": "USPS-eVS",
  "carrierAccountId": "string",	
  "service": "ALL",
  "specialService": [
    "RestrictedDelivery"
  ],
  "specialServiceParam": {
    "hazmatDescription": "string",
    "hazmatPhone": "string",
    "codAmount": 0,
    "registeredMailAmount": 0,
    "insuranceAmount": 0,
    "liveAnimalsType": "Bees"
  },
  "customsInfo": {
    "customsItem": [
      {
        "weightUnit": "oz",
        "customsInfoId": "string",
        "description": "string",
        "quantity": 0,
        "weight": 0,
        "value": 0,
        "hsTariffNumber": "string",
        "originCountry": "string",
        "itemCode": "string",
        "id": "string",
        "createdDate": "2019-10-18T12:31:47.458Z"
      }
    ],
    "id": "string",
    "contentType": "DOCUMENTS",
    "contentsExplanation": "string",
    "customsCertify": true,
    "customsSigner": "string",
    "currency": "string",
    "nonDeliveryOption": "RETURN",
    "restrictionType": "Quarantine",
    "restrictionComments": "string",
    "eelpfc": "NOEEI3037a",
    "aesitn": "string"
  },
  "errors": [
    "string"
  ],
  "createdDate": "2019-10-18T12:31:47.458Z",
  "transactionId": "string"
}
{
  "id": "string",
  "relatedShipmentId": "string",
  "accountId": "string",
  "appId": "string",
  "fromAddress": {
    "name": "string",
    "company": "string",
    "street1": "string",
    "street2": "string",
    "street3": "string",
    "city": "string",
    "state": "string",
    "zip": "string",
    "country": "string",
    "phone": "string",
    "email": "string",
    "save": true,
    "verify": true,
    "source": "Shipment",
    "verificationStatus": "Success",
    "isResidential": true,
    "referenceType": "TaxCode",
    "referenceValue": "string",
    "id": "string"
  },
  "toAddress": {
    "name": "string",
    "company": "string",
    "street1": "string",
    "street2": "string",
    "street3": "string",
    "city": "string",
    "state": "string",
    "zip": "string",
    "country": "string",
    "phone": "string",
    "email": "string",
    "save": true,
    "verify": true,
    "source": "Shipment",
    "verificationStatus": "Success",
    "isResidential": true,
    "referenceType": "TaxCode",
    "referenceValue": "string",
    "id": "string"
  },
  "altReturnAddress": {
    "name": "string",
    "company": "string",
    "street1": "string",
    "street2": "string",
    "street3": "string",
    "city": "string",
    "state": "string",
    "zip": "string",
    "country": "string",
    "phone": "string",
    "email": "string",
    "save": true,
    "verify": true,
    "source": "Shipment",
    "verificationStatus": "Success",
    "isResidential": true,
    "referenceType": "TaxCode",
    "referenceValue": "string",
    "id": "string"
  },
  "packages": [
    {
      "id": "string",
      "packageNumber": 0,
      "isMaster": true,
      "packageType": "Parcel",
      "isRectangle": true,
      "length": 0,
      "width": 0,
      "height": 0,
      "dimensionUnit": "cm",
      "weight": 0,
      "weightUnit": "oz",
      "finalPackageType": "Parcel",
      "finalWeightUnit": "oz",
      "finalDimensionUnit": "cm",
      "finalWeight": 0,
      "finalVolume": 0,
      "oversized": true
    }
  ],
  "rates": [
    {
      "carrierAccountName": "string",
      "carrierCode": "USPS-eVS",
      "carrierAccountId": "string",
      "finalService": "ALL",
      "totalFee": 0,
      "fees": [
        {
          "packageNumber": 0,
          "type": "string",
          "fee": 0,
          "cubicTier": 0,
          "ratingType": "Weight"
        }
      ],
      "currency": "USD",
      "deliveryDays": 0,
      "deliveryDate": "2021-03-19T21:40:25.087Z",
      "deliveryDateGuaranteed": true,
      "deliveryDateActual": "2021-03-19T21:40:25.087Z",
      "zone": "string",
      "id": "string",
      "createdDate": "2021-03-19T21:40:25.087Z"
    }
  ],
  "customsInfo": {
    "customsItem": [
      {
        "id": "string",
        "packageNumber": 0,
        "weightUnit": "oz",
        "customsInfoId": "string",
        "itemCode": "string",
        "description": "string",
        "quantity": 0,
        "weight": 0,
        "value": 0,
        "hsTariffNumber": "string",
        "originCountry": "string"
      }
    ],
    "id": "string",
    "contentType": "Documents",
    "contentsExplanation": "string",
    "customsCertify": true,
    "customsSigner": "string",
    "currency": "string",
    "nonDeliveryOption": "Return",
    "restrictionType": "Quarantine",
    "restrictionComments": "string",
    "eelpfc": "NOEEI3037a",
    "aesitn": "string"
  },
  "manifestId": "string",
  "postageLabel": {
    "labels": [
      "string"
    ],
    "labelFileType": "PDF",
    "labelSize": "4x6",
    "labelOrientation": "Portrait",
    "labelType": "Base64",
    "customText1": "string",
    "customText2": "string",
    "customText3": "string"
  },
  "forms": [
    {
      "form": "string",
      "formType": "CommercialInvoice",
      "formFileType": "PDF",
      "submittedElectronically": true
    }
  ],
  "tracking": {
    "trackingBarcodeNumber": "string",
    "trackingNumber": "string",
    "status": "PreTransit",
    "subStatus": "LabelGenerated",
    "trackingUrl": "string",
    "trackingDetails": [
      {
        "message": "string",
        "dateTime": "2021-03-19T21:40:25.087Z",
        "city": "string",
        "state": "string",
        "country": "string",
        "zip": "string"
      }
    ]
  },
  "specialService": [
    "RestrictedDelivery"
  ],
  "specialServiceParam": {
    "hazmatDescription": "string",
    "hazmatPhone": "string",
    "codAmount": 0,
    "registeredMailAmount": 0,
    "insuranceAmount": 0,
    "liveAnimalsType": "Bees",
    "dryIceWeight": 0,
    "regulationSet": "CFR"
  },
  "refundStatus": "Rejected",
  "carrierAccountName": "string",
  "carrierCode": "USPS-eVS",
  "carrierAccountId": "string",
  "service": "ALL",
  "shipDate": "2021-03-19T21:40:25.088Z",
  "createdDate": "2021-03-19T21:40:25.088Z",
  "transactionId": "string",
  "errors": [
    "string"
  ]
}

Manifest

There is no change in request of Manifest request, however there are following changes in Manifest response:

  • Response in v3
  • Response in v3.1
{
  "id": "string",
  "appId": "string",
  "shipmentIds": [
   "string"
  ],
  "carrierAccountName": "USPS",
  "carrierCode": "USPS-eVS",
  "carrierAccountId": "string",
  "fromAddress": {
    "errors": [
      "string"
    ],
    "name": "string",
    "company": "string",
    "street1": "string",
    "street2": "string",
    "street3": "string",
    "city": "string",
    "state": "string",
    "zip": "string",
    "country": "string",
    "phone": "string",
    "email": "string",
    "save": true,
    "verify": true,
    "source": "Manifest",
    "verificationStatus": "Success",
    "referenceType": "TaxCode",
    "referenceValue": "string",
    "isResidential": true,
    "id": "string",
    "createdDate": "2019-10-18T11:27:10.379Z"
  },
  "formNumber": "string",
  "formUrl": "string",
  "transactionDate": "2019-10-18T11:27:10.379Z",
  "shipDate": "2019-10-18T11:27:10.379Z",
  "message": "string",
  "messageCode": "MANIFEST_GENERATED"
}
{
  "id": "string",
  "appId": "string",
  "shipmentIds": [
   "string"
  ],
  "carrierAccountName": "USPS",
  "carrierCode": "USPS-eVS",
  "carrierAccountId": "string",
  "fromAddress": {
    "name": "string",
    "company": "string",
    "street1": "string",
    "street2": "string",
    "street3": "string",
    "city": "string",
    "state": "string",
    "zip": "string",
    "country": "string",
    "phone": "string",
    "email": "string",
    "save": true,
    "verify": true,
    "source": "Manifest",
    "verificationStatus": "Success",
    "referenceType": "TaxCode",
    "referenceValue": "string",
    "isResidential": true,
    "id": "string"
  },
  "formNumber": "string",
  "formUrl": "string",
  "transactionDate": "2019-10-18T11:27:10.379Z",
  "shipDate": "2019-10-18T11:27:10.379Z",
  "message": "string",
  "messageCode": "MANIFEST_GENERATED"
}

Back to top © A.P. Moller - Maersk