Create a Shipment

POST /shipments

This endpoint is used for two purposes:

1. Generating standard Arta shipments

All standard shipments are actively facilitated by Arta. Working in tandem with our extensive logistics carrier network, Arta fulfills shipments with Premium, Select, and Parcel quote types from scheduling collection, to coordinating packing, through delivery. For shipments with the Self Ship quote type, Arta will generate labels on your behalf with commercial carriers such as FedEx, UPS, and DHL.

To book a standard Arta shipment, you must first create a shipping quote request. You can then use a quote_id returned by the quote request endpoint to create the shipment.

2. Generating Track shipments

Track shipments provide a similar customer tracking and notification experience as standard Arta shipments but for shipments you have booked with commercial carriers outside of the Arta platform.

To create a Track shipment, you provide the carrier and tracking_number purchased externally and the Arta platform provides status automation, tracking pages, and customer notifications. You may optionally provide additional supplementary information such as origin, destination, and package details for Track shipments.

Note that Track shipments are a beta feature. Please contact your account manager or hello@arta.io to request access for your organization.

Headers

  • Authorization string Required

    Authorize your API calls with an Arta API token

application/json

Body object

One of:

Responses

  • 200 application/json

    response

    Hide headers attributes Show headers attributes
    Hide response attributes Show response attributes object
    • A NaiveDatetime-formatted timestamp describing when the resource was created with microsecond precision

    • Hide destination attributes Show destination attributes object
    • eei_form_status string | null

      The status of an associated electronic export information document required for customs clearance. Returns null if the shipment does not have an associated EEI Form

      Values are null, pending, cleared, approved, rejected, or submitted.

    • eei_form_url string | null

      The URL for an associated electronic export information form required for customs clearance. Returns null if the shipment does not have an associated EEI Form

    • emissions string | null

      The amount of projected emissions for this shipment

    • emissions_unit string | null

      The unit of measurement for emissions for this shipment. Typically measured in "kg_co2e" or "kilograms of carbon dioxide equivalent"

    • exceptions array[object]

      Shipment exceptions provide context about holds, delays, and other circumstances that may interrupt a shipment's fulfillment

      Hide exceptions attributes Show exceptions attributes object
      • A NaiveDatetime-formatted timestamp describing when the exception was created with microsecond precision

      • An additional label providing context about the exception type (optional)

      • package_id integer | null

        The package associated with this exception (optional)

      • id string
      • resolution string | null

        A brief description of the method by which this exception was resolved

      • status string

        The current status for this exception

        Values are new, in_progress, or resolved.

      • type string

        The type of exception

      • A NaiveDatetime-formatted timestamp describing when the exception was last updated with microsecond precision

    • hosted_session_id integer | null

      The ID of the HostedSession through which this shipment was created

    • id string
    • insurance_policy object | null
      Hide insurance_policy attributes Show insurance_policy attributes object | null
      • amount string
      • The currency of the insurance amount. Formatted as ISO 4217 three-letter alphabetic currency code

        Minimum length is 3, maximum length is 3. Format should match the following pattern: ^[A-Z]{3}$. Default value is USD.

      • id string
      • The currency of the insurance amount. Formatted as ISO 4217 three-letter alphabetic currency code

        Minimum length is 3, maximum length is 3. Format should match the following pattern: ^[A-Z]{3}$. Default value is USD.

    • internal_reference string | null

      This field can be used to pass through any character data that you may want returned unaltered for your own later usage

      Maximum length is 255.

    • log_request_id string | null

      A string identifying the API request that created the shipment. This log_request_id may be used to find the Log associated with the source API request

    • The count of objects included in the shipment

    • origin object
      Hide origin attributes Show origin attributes object
    • The count of packages included in the shipment

    • packages array[object]
      Hide packages attributes Show packages attributes object
      • depth string
      • eta string | null

        The expected delivery date for this package in the MM/DD/YYYY format

      • height string
      • id integer

        The ID of the package

      • objects array[object]
        Hide objects attributes Show objects attributes object
        • current_packing array[string]

          A list of packing subtype IDs describing how the item is currently packed

        • depth string

          The depth of the object

        • details object
          Hide details attributes Show details attributes object
          • creation_date string | null

            The creation timing for the object

          • creator string

            The creator of the object

          • is_fragile boolean

            Set this flag to true is the item is fragile. This may effect packing and handling costs

            Default value is false.

          • is_cites boolean

            Set to true if the object is governed by the Convention on International Trade in Endangered Species of Wild Fauna and Flora

            Default value is false.

          • materials array[string]

            A list of ids the types of materials used

          • title string

            The object title

        • height string

          The height of the object

        • id integer

          The system-generated ID for this object

        • images array[string(uri)]

          A list image urls of the object

        • internal_reference string | null

          This field can be used to pass through any character data that you may want returned unaltered for your own later usage

          Maximum length is 255.

        • public_reference string | null

          A client defined name for the object. The value provided for public_reference may be presented in notification emails and on shipment detail pages

          Maximum length is 255.

        • subtype string

          The object sub-type id

          Format should match the following pattern: ^[0-9a-z_]{1,56}$.

        • type string

          The object type id

          Format should match the following pattern: ^[0-9a-z_]{1,56}$.

        • Values are in or cm.

        • value string

          Format should match the following pattern: ^(0|([1-9]+[0-9]*))(\.[0-9]{1,2})?$.

        • ISO 4217 three-letter alphabetic currency code. Options are defined in the Currencies metadata endpoint

          Minimum length is 3, maximum length is 3. Format should match the following pattern: ^[A-Z]{3}$. Default value is USD.

        • weight string | null

          The weight of the object

        • Values are lb or kg.

        • width string

          The width of the object

      • packing_materials array[string]

        The id of a material.

      • status string | null

        The current delivery status for this package

        Values are pending, transit, out_for_delivery, delivered, unknown, notfound, undelivered, exception, or expired.

      • weight string
      • width string
    • The primary method by which payment to Arta will be handled for this shipment

      Values are checkout or invoicing.

    • public_reference string | null

      A client defined name for the resource. The value provided for the public_reference field may appear in notification emails and public web pages

      Maximum length is 255.

    • The ID of the quote type associated with this shipment

      Values are parcel, premium, select, self_ship, or track.

    • schedule object
      Hide schedule attributes Show schedule attributes object
    • services array[object]
      Hide services attributes Show services attributes object
    • shipping_notes string | null

      Any additional unstructured notes to Arta about the shipment

    • A brief identifier for this shipment

    • status string

      The status for this shipment

      Maximum length is 255. Values are pending, confirmed, collected, in_transit, or completed.

    • total string

      Format should match the following pattern: ^(0|([1-9]+[0-9]*))(\.[0-9]{1,2})?$.

    • The currency of the total. Formatted as ISO 4217 three-letter alphabetic currency code

      Minimum length is 3, maximum length is 3. Format should match the following pattern: ^[A-Z]{3}$. Default value is USD.

    • tracking array[object]

      A list of tracking details for the packages in a shipment

      Hide tracking attributes Show tracking attributes object
      • The name of the carrier providing transport services for a specific package

      • label_url string | null

        A URL at which parcel package shipping labels may be downladed and printed

      • package_id integer

        The ID associated with the tracking detail's corresponding package

      • The carrier-providing tracking number for this package

      • url string

        A carrier-provided URL for fetching delivery events related to this package's transport

    • A NaiveDatetime-formatted timestamp describing when the resource was last updated with microsecond precision

    • url string(uri)

      The track URL for this shipment on the Arta web platform

  • 404 application/json

    Resource Not Found

    Hide headers attributes Show headers attributes
    Hide response attribute Show response attribute object
    • errors object
      Hide errors attribute Show errors attribute object
  • 422 application/json

    Unprocessable Entity (WebDAV)

POST /shipments
curl \
 -X POST https://api.arta.io/shipments \
 -H "Content-Type: application/json" \
 -H "Authorization: ARTA_APIKey s0e1t2e3c4a5s6t7r8o9n10o11m12y" \
 -d '{"shipment":{"quote_id":26234,"public_reference":"Order #22"}}'
{
  "shipment": {
    "quote_id": 26234,
    "public_reference": "Order #22"
  }
}
{
  "shipment": {
    "tracking": [
      {
        "url": "https://www.ups.com/track?trackNums=1ZE50d7272&loc=en_US&requester=ST/trackdetails",
        "carrier": "ups",
        "tracking_number": "1ZE50d7272"
      }
    ],
    "public_reference": "order 4279"
  }
}
{
  "shipment": {
    "origin": null,
    "packages": [
      {
        "objects": [
          {
            "depth": "4",
            "value": "2400.00",
            "width": "16",
            "value_currency": "USD",
            "unit_of_measurement": "in"
          }
        ]
      }
    ],
    "tracking": [
      {
        "url": "https://www.ups.com/track?trackNums=1ZE5002cda3&loc=en_US&requester=ST/trackdetails",
        "carrier": "ups",
        "tracking_number": "UPSTrackingNumber"
      }
    ],
    "destination": {
      "city": "Amherst",
      "region": "MA",
      "country": "US",
      "contacts": [
        {
          "name": "Ami Collector",
          "phone_number": "(212) 212-2121",
          "email_address": "destination@example.com"
        }
      ],
      "postal_code": "01002"
    },
    "public_reference": "Order #5428",
    "internal_reference": "C6231"
  }
}
Response examples (200)
{
  "id": "6b12c76a-5217-4cd6-82d8-7aa5265ebaad",
  "url": "https://app.arta.io/tracking/6b12c76a-5217-4cd6-82d8-7aa5265ebaad/5xTRnCvYkMFdcFFMWUZaCmXz",
  "total": "19.56",
  "origin": {
    "city": "Brooklyn",
    "title": "Gallery",
    "region": "NY",
    "country": "US",
    "contacts": [
      {
        "name": "Origin Name",
        "phone_number": "310 713 7333",
        "email_address": "docs@arta.io"
      }
    ],
    "postal_code": "11211",
    "address_line_1": "310 Bergen St",
    "address_line_2": "Suite 405",
    "address_line_3": null,
    "access_restrictions": []
  },
  "status": "pending",
  "packages": [
    {
      "id": 8320325,
      "eta": "05/09/2022",
      "depth": "5.0",
      "width": "5.0",
      "height": "5.0",
      "status": "pending",
      "weight": "1.0",
      "objects": [
        {
          "id": 1498,
          "type": "art",
          "depth": "4",
          "value": "2500",
          "width": "20",
          "height": "16",
          "images": [],
          "weight": "4",
          "details": {
            "title": "The whale",
            "creator": "Jasper Smith",
            "is_cites": false,
            "materials": [],
            "is_fragile": false,
            "creation_date": "October 2023"
          },
          "subtype": "work_on_paper_framed",
          "weight_unit": "lb",
          "value_currency": "USD",
          "current_packing": [],
          "public_reference": null,
          "internal_reference": null,
          "unit_of_measurement": "in"
        }
      ],
      "weight_unit": "lb",
      "handle_with_care": true,
      "packing_materials": [
        "strongbox"
      ],
      "unit_of_measurement": "in",
      "is_sufficiently_packed": true
    }
  ],
  "schedule": {
    "pickup_end": null,
    "delivery_end": null,
    "pickup_start": null,
    "delivery_start": null,
    "pickup_window_modifier": "",
    "delivery_window_modifier": ""
  },
  "services": [
    {
      "name": "Ground",
      "type": "transport",
      "amount": "19.56",
      "subtype": "parcel",
      "is_required": true,
      "sub_subtype": "ground",
      "is_requested": false,
      "amount_currency": "USD",
      "included_services": []
    },
    {
      "name": "Signature Required",
      "type": "location",
      "amount": "0.00",
      "subtype": "delivery",
      "is_required": true,
      "sub_subtype": "signature_delivery",
      "is_requested": false,
      "amount_currency": "USD",
      "included_services": []
    }
  ],
  "tracking": [
    {
      "url": "https://www.ups.com/track?loc=en_us&tracknum=1zw475770393992448&Requester=NS/",
      "label_url": null,
      "package_id": 8320325,
      "carrier_name": "UPS",
      "tracking_number": "1zw475770393992448"
    }
  ],
  "emissions": "0.03",
  "shortcode": "DEMO-572652",
  "created_at": "2021-01-21T21:00:58.403150",
  "exceptions": [],
  "quote_type": "self_ship",
  "updated_at": "2021-01-21T21:00:58.403150",
  "destination": {
    "city": "Brooklyn",
    "title": "Gallery",
    "region": "NY",
    "country": "US",
    "contacts": [
      {
        "name": "Contact Name",
        "phone_number": "917 818 0440",
        "email_address": "docs@arta.io"
      }
    ],
    "postal_code": "11211",
    "address_line_1": "87 Richardson St",
    "address_line_2": null,
    "address_line_3": null,
    "access_restrictions": []
  },
  "eei_form_url": null,
  "object_count": 1,
  "package_count": 1,
  "emissions_unit": "kg_co2e",
  "log_request_id": "Fv7_XBZcofxdL3kAqmIh",
  "shipping_notes": "Booked via webstore",
  "total_currency": "USD",
  "eei_form_status": null,
  "payment_process": "checkout",
  "insurance_policy": {
    "id": "arta_transit_insurance",
    "amount": "5.00",
    "insured_value": "1500.00",
    "amount_currency": "USD",
    "insured_value_currency": "USD"
  },
  "public_reference": "Order 554",
  "hosted_session_id": null,
  "internal_reference": "user #42"
}
Response examples (404)
# Headers
content-type: application/json
x-arta-request-id: FkBjuxbwLLTx4RoAARkx

# Payload
{
  "errors": {
    "detail": "string"
  }
}
Response examples (422)
{
  "errors": {
    "tracking/0": [
      "Required property carrier was not present."
    ]
  }
}
{
  "errors": {
    "quote/status": [
      "cannot be booked in the current status"
    ]
  }
}