> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://api-docs.zippd.com/llms.txt.
> For full documentation content, see https://api-docs.zippd.com/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://api-docs.zippd.com/_mcp/server.

# Retrieve Package Labels

GET https://sandbox-api.deliveryapp.com/api/v1/orders/{orderId}/labels

Retrieve the labels for all items associated with this delivery job. This endpoint returns links that point to PDFs of the labels.

This endpoint will return an empty data set if the labels have not been generated with  `POST` request yet.

Reference: https://api-docs.zippd.com/orders/retrieve-package-labels

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /orders/{orderId}/labels:
    get:
      operationId: retrieve-package-labels
      summary: Retrieve Package Labels
      description: >-
        Retrieve the labels for all items associated with this delivery job.
        This endpoint returns links that point to PDFs of the labels.


        This endpoint will return an empty data set if the labels have not been
        generated with  `POST` request yet.
      tags:
        - subpackage_orders
      parameters:
        - name: orderId
          in: path
          description: The UUID of the order to generate labels for.
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: ''
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Orders_Retrieve Package
                  Labels_Response_200
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Get-orders-orderId-labelsRequestNotFoundError
servers:
  - url: https://sandbox-api.deliveryapp.com/api/v1
components:
  schemas:
    OrdersOrderIdLabelsGetResponsesContentApplicationJsonSchemaLabelsItems:
      type: object
      properties:
        barcode:
          type: string
        label_url:
          type: string
          format: uri
      required:
        - barcode
        - label_url
      title: OrdersOrderIdLabelsGetResponsesContentApplicationJsonSchemaLabelsItems
    Orders_Retrieve Package Labels_Response_200:
      type: object
      properties:
        order_id:
          type: string
        packages:
          type: integer
        labels:
          type: array
          items:
            $ref: >-
              #/components/schemas/OrdersOrderIdLabelsGetResponsesContentApplicationJsonSchemaLabelsItems
      required:
        - order_id
        - packages
        - labels
      title: Orders_Retrieve Package Labels_Response_200
    Get-orders-orderId-labelsRequestNotFoundError:
      type: object
      properties:
        message:
          type: string
      required:
        - message
      title: Get-orders-orderId-labelsRequestNotFoundError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: ''

```

## SDK Code Examples

```python Orders_Retrieve Package Labels_example
import requests

url = "https://sandbox-api.deliveryapp.com/api/v1/orders/ff9499df-b4df-433d-93c2-e68e50b71f71/labels"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Orders_Retrieve Package Labels_example
const url = 'https://sandbox-api.deliveryapp.com/api/v1/orders/ff9499df-b4df-433d-93c2-e68e50b71f71/labels';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Orders_Retrieve Package Labels_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://sandbox-api.deliveryapp.com/api/v1/orders/ff9499df-b4df-433d-93c2-e68e50b71f71/labels"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Orders_Retrieve Package Labels_example
require 'uri'
require 'net/http'

url = URI("https://sandbox-api.deliveryapp.com/api/v1/orders/ff9499df-b4df-433d-93c2-e68e50b71f71/labels")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Orders_Retrieve Package Labels_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://sandbox-api.deliveryapp.com/api/v1/orders/ff9499df-b4df-433d-93c2-e68e50b71f71/labels")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Orders_Retrieve Package Labels_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://sandbox-api.deliveryapp.com/api/v1/orders/ff9499df-b4df-433d-93c2-e68e50b71f71/labels', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Orders_Retrieve Package Labels_example
using RestSharp;

var client = new RestClient("https://sandbox-api.deliveryapp.com/api/v1/orders/ff9499df-b4df-433d-93c2-e68e50b71f71/labels");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Orders_Retrieve Package Labels_example
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://sandbox-api.deliveryapp.com/api/v1/orders/ff9499df-b4df-433d-93c2-e68e50b71f71/labels")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```