shipments

Restore shipments

Changed on

Restores one or more shipments that are on hold. Each restored shipment returns to the pending status and its hold_until_date is cleared. You can restore up to 500 shipments at once.

Shipments that cannot be restored — because they are not found or are not on hold — are reported in errors, and the remaining shipments are still restored. If only some of the shipments were restored, the response status is 207. If none of them could be restored, the response status is 404 when at least one shipment was not found, or 400 otherwise, and shipment_ids is empty.

To restore a single shipment, use Restore a shipment.

post/v1/shipments/restore

Request

  • Base URL: https://api.shipengine.com
  • URL: https://api.shipengine.com/v1/shipments/restore
  • Auth: API key in header API-Key

Request body

shipment_idsSeId[] required

Array of shipment IDs to restore

Example request

{
  "shipment_ids": [
    "se-202902255",
    "se-202902256"
  ]
}

Response

The request was a success.

shipment_idsSeId[]

Array of shipment IDs that were restored

request_idstring uuid

A UUID (a.k.a. GUID) that uniquely identifies a resource

Example response

{
  "shipment_ids": [
    "se-202902255",
    "se-202902256"
  ],
  "errors": [
    {
      "error_source": "shipengine",
      "error_type": "validation",
      "error_code": "invalid_field_value",
      "message": "Body of request cannot be null.",
      "carrier_id": "se-28529731",
      "carrier_code": "dhl_express",
      "field_name": "shipment.ship_to.phone_number"
    }
  ],
  "request_id": "aa3d8e8e-462b-4476-9618-72db7f7b7009"
}

Changes

    • ▲

      the / request property's minLength was increased from 0 to 1

    • ▲

      added the pattern ^se(-[a-z0-9]+)+$ to the request property /

    • ▲

      the / request property type changed from no type to string

    • ▲

      the / response's property type changed from no type to object for status

    • ▲

      the / response's property type changed from no type to object for status

    • ▲

      the / response's property type changed from no type to object for status

    • ▲

      the / response's property type changed from no type to object for status

    • ▲

      the / response's property type changed from no type to object for status

    • ▲

      the / response's property type changed from no type to string for status

    • ▲

      the / response's property type changed from no type to string for status

    • ●

      removed from the / request property allOf list

    • ●

      the / request property's maxLength was set to 25

    • ○

      added the optional property // to the response with the status

    • ○

      added the optional property // to the response with the status

    • ○

      added the optional property // to the response with the status

    • ○

      added the optional property // to the response with the status

    • ○

      added the optional property // to the response with the status

    • ○

      added the optional property // to the response with the status

    • ○

      added the optional property // to the response with the status

    • ○

      added the optional property // to the response with the status

    • ○

      added the optional property // to the response with the status

    • ○

      added the optional property // to the response with the status

    • ○

      added the optional property // to the response with the status

    • ○

      added the optional property // to the response with the status

    • ○

      added the optional property // to the response with the status

    • ○

      added the optional property // to the response with the status

    • ○

      added the optional property // to the response with the status

    • ○

      removed from the / response property allOf list for the response status

    • ○

      removed from the / response property allOf list for the response status

    • ○

      removed from the / response property allOf list for the response status

    • ○

      removed from the / response property allOf list for the response status

    • ○

      removed from the / response property allOf list for the response status

    • ○

      removed from the / response property allOf list for the response status

    • ○

      removed from the / response property allOf list for the response status

    • ○

      the / response's property pattern ^se(-[a-z0-9]+)+$ was added for the status

    • ○

      the / response's property pattern ^se(-[a-z0-9]+)+$ was added for the status

    • ○

      added the required property // to the response with the status

    • ○

      added the required property // to the response with the status

    • ○

      added the required property // to the response with the status

    • ○

      added the required property // to the response with the status

    • ○

      added the required property // to the response with the status

    • ○

      added the required property // to the response with the status

    • ○

      added the required property // to the response with the status

    • ○

      added the required property // to the response with the status

    • ○

      added the required property // to the response with the status

    • ○

      added the required property // to the response with the status

    • ○

      added the required property // to the response with the status

    • ○

      added the required property // to the response with the status

    • ○

      added the required property // to the response with the status

    • ○

      added the required property // to the response with the status

    • ○

      added the required property // to the response with the status

    • ○

      added the required property // to the response with the status

    • ○

      added the required property // to the response with the status

    • ○

      added the required property // to the response with the status

    • ○

      added the required property // to the response with the status

    • ○

      added the required property // to the response with the status

    • ○

      endpoint added