Get labels - AfterShip Shipping API - AfterShip Docs

QUICKSTART

API Quick Start

OAuth

CHANGELOG

REFERENCE

Rates

Labels

Manifests

Couriers

Cancel Labels

Pickups

Cancel Pickups

Shipper Accounts

Specific Shipper Accounts

Address Validations (Beta)

Locations

MODEL

Envelope

Primitive

Resource

Carrier Guide

ENUM

Webhook

SDK

Open Source

Support

Get labels

GET /labels

Get labels. This array contains all labels data. Please refer to
label object for label object details.

Request

Security: API Key

Query Parameters

Headers

Responses

200

Get labels.

{
  "meta": {
    "code": 200,
    "type": "OK",
    "message": "Everything worked as expected."
  },
  "data": {
    "next_token": "string",
    "limit": 0,
    "created_at_min": "string",
    "created_at_max": "string",
    "labels": [
      {
        "id": "3318b97b-150f-4205-840d-a6d966b9e0ea",
        "status": "created",
        "tracking_numbers": [
          "3884930103"
        ],
        "files": {
          "label": {
            "paper_size": "4x8",
            "url": "https://sandbox-download.postmen.com/label/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
            "file_type": "pdf"
          },
          "invoice": null,
          "customs_declaration": null,
          "manifest": null
        },
        "rate": {
          "charge_weight": {
            "value": 3.307,
            "unit": "lb"
          },
          "total_charge": {
            "amount": 0,
            "currency": "USD"
          },
          "shipper_account": {
            "id": "00000000-0000-0000-0000-000000000000",
            "slug": "dhl",
            "description": "DHL Sandbox"
          },
          "service_type": "dhl_express_0900",
          "service_name": "DHL Express 0900",
          "pickup_deadline": null,
          "booking_cut_off": null,
          "delivery_date": null,
          "transit_time": null,
          "detailed_charges": [],
          "error_message": null,
          "info_message": null
        },
        "created_at": "2015-09-09T07:54:13.024Z",
        "updated_at": "2015-09-09T07:54:24.569Z",
        "ship_date": "2015-09-09"
      }
    ]
  }
}

Auth

as-api-key: Parameters