Developer menu

REST API · v1.0.0

API reference

Book shipping labels to an address, print them on the shop's Print Agents and look up carrier pickup points, over HTTPS with JSON.

Max plan and up Base URL https://app.pakkeshopper.dk/v1 OpenAPI spec

Quickstart

  1. In the Pakkeshopper app in Shopify, go to Settings → API and click Create API key. Name the key after the system that uses it, for example "ERP". The key is shown only once: copy it into your secrets store now.
  2. Send the key in the Authorization header of every request:
curl https://app.pakkeshopper.dk/v1/carriers \
  -H "Authorization: Bearer $PAKKESHOPPER_API_KEY"

A booking to a pickup point then takes four calls:

  1. GET /carriers: the carriers the shop can book with, and the delivery types of each one.
  2. GET /pickup-points: the points nearest to the customer's address.
  3. POST /labels: book the label. Add print to send it to a label printer at once.
  4. GET /print-jobs/{id}: follow the print job until it is printed.

Authentication

Every request needs an API key in the Authorization header, with the Bearer scheme:

Authorization: Bearer psk_...
  • A key acts for one shop. A shop can have 10 keys.
  • The key is shown once, when you create it. After that the app shows only its name and its last four characters. If you lose a key, revoke it and create a new one.
  • When you revoke a key, everything that uses it stops at once.
  • Keep the key on your server. Anyone with the key can book labels for the shop, so never put it in a browser page or a mobile app.
  • The API needs the Max plan or higher. Below Max the keys are kept, and every call answers 403 plan_not_available.

A key that is missing, wrong or revoked, or a shop that has uninstalled the app, answers 401 unauthorized.

Requests

The base URL is https://app.pakkeshopper.dk/v1. Use HTTPS.

  • Send a request body as JSON in UTF-8, uncompressed, with Content-Type: application/json.
  • Percent-encode query values as UTF-8: N%C3%B8rregade for Nørregade. The HTTP server refuses a URL with a raw non-ASCII character with a 400 that has no error body.
  • Country codes have two letters (ISO 3166-1), for example DK. Weights are in kilograms. Times are ISO 8601, for example 2026-11-23T09:41:00Z.

Responses and errors

A success has its result under data:

{ "data": { "id": "6f1c2a9e-4b7d-4e2a-9c3f-1d8e5b7a2c40" } }

A failure has a 4xx or 5xx status and an error object:

{
  "error": {
    "code": "invalid_request",
    "message": "pickup_point_id is required for a pickup delivery",
    "fields": { "pickup_point_id": "required" }
  }
}
  • Branch on the status and the code, never on the message. The message is for people and can change.
  • fields names each field at fault and why: required, too_long, invalid or store_country. A nested field has a path, for example recipient.zip.
  • A carrier that refuses a booking gives 422 carrier_error. Its message is the carrier's own, and the error also has carrier and trace_id. Send the trace_id when you ask us about a booking.

These errors can come from more than one endpoint:

Status Code Meaning
400 invalid_request A parameter or a field is missing or not valid (see fields), or the body is not valid JSON.
401 unauthorized The key is missing, wrong or revoked, or the shop has uninstalled the app.
403 plan_not_available The shop is below the Max plan.
404 not_found The path does not exist. A missing resource has its own code, for example label_not_found.
413 payload_too_large The body is too large.
415 invalid_request The body is not application/json, is compressed (Content-Encoding) or is not UTF-8.
429 rate_limited Too many requests. See Rate limits.

Each endpoint lists all of its answers under Responses.

Rate limits

Each key has two limits per 10 minutes:

  • 300 requests to all endpoints together.
  • 100 booking attempts with POST /labels.

Every POST /labels is a booking attempt, also when the carrier refuses it, when a recipient field is at fault and when the carrier is not connected. A request that is refused before the booking does not count: a body that is not a JSON object, print or pickup_point_id at fault, an unknown printer, or an Idempotency-Key that is at fault, still in progress or replayed.

Over a limit, the API answers 429 rate_limited with a Retry-After header. Wait the number of seconds it gives, then try again. The replay of a booked label is answered even past both limits (see Idempotency).

An address that keeps sending keys that are not valid also gets 429.

Idempotency

A request to POST /labels can time out after the carrier booked the parcel. To retry without a second parcel, send an Idempotency-Key header with a value that is unique for the parcel, for example your order number and the parcel number:

Idempotency-Key: order-1001-parcel-1
  • The answer of a booking is kept under the key for 24 hours, per API key. A retry with the same key and the same body gets the first answer again and books nothing.
  • The same key with another body answers 422 idempotency_key_reused.
  • While the first request still runs, a retry answers 409 request_in_progress. Wait, then try again.
  • A refusal is not kept. When you have fixed the cause, you can send the same key again.
  • The key has 1 to 255 characters.

A 500 booking_not_stored means that the carrier booked the parcel, but the label could not be stored. Do not book it again. The error has the carrier, the tracking_number and the trace_id of the parcel. A retry with the same key gets the same answer. Any other 500 booked nothing, and so does a 503 (idempotency_unavailable or shop_address_unavailable): try again.

Pagination

GET /labels gives one page at a time, newest first. Set limit (1 to 50, default 25) and offset. The answer tells if there are more:

{ "data": [], "has_more": true, "offset": 0, "limit": 25 }

For the next page, add limit to offset.

Printing

The API prints through Print Agent, the free desktop app for Windows and Mac that sends labels to the shop's label printers.

  1. GET /printers lists the computers that run Print Agent. Each one has queues: the printers it reported.
  2. To print a new label, add print with a printer_id to POST /labels. To print a stored label, use POST /labels/{id}/print. Without a queue the printer's default queue is used.
  3. Follow the job with GET /print-jobs/{id}. Its status goes from pending to sent and printed, or ends as error or expired.

A computer that has not been seen for 5 minutes is offline. A job for an offline computer waits up to 12 hours.

An unknown printer_id on POST /labels answers 404 printer_not_found, and nothing is booked. When the label is booked but cannot be queued, the answer is 201 with print_error. You can print the label later.

Every label also has a pdf_url, which opens the PDF without a key for 24 hours. GET /labels/{id} gives a fresh one, and GET /labels/{id}/pdf gives the PDF itself.

Labels without an order

A label booked through the API has no Shopify order: nothing is captured or fulfilled, and Pakkeshopper does not follow its tracking number. The app lists it on the Create label page, with the labels made there.

Version 1 does not do these things:

  • Labels for Shopify orders. Print those from the order in Shopify or in the warehouse app.
  • Several parcels in one request.
  • Tracking and webhooks.
  • Changes to settings and shipping methods.

Endpoints

Carriers

The carriers the shop can book with, the delivery types of each one, and the vShip methods.

Carriers the shop can book labels with

GET /carriers

Response 200

  • data object
    Fields of data
    • carriers object[]
      Fields of carriers
      • carrier string
      • deliveries string[]
        One of: homepickupbusiness
      • return_label boolean
    • vship_methods object[]
      Fields of vship_methods
      • method_id integer
      • name string
      • carrier string nullable
      • delivery string
        One of: homepickup
    • pickup_point_carriers string[]

Responses

  • 200

    The carrier connections, the vShip-mapped methods and the carriers with a pickup-point lookup.

  • 401

    unauthorized: the key is missing, wrong or revoked, or the shop has uninstalled the app.

  • 403

    plan_not_available: the shop is below the Max plan.

  • 429

    rate_limited: see the Retry-After header. Also answered to an address that keeps sending keys that are not valid.

Request

curl https://app.pakkeshopper.dk/v1/carriers \
  -H "Authorization: Bearer $PAKKESHOPPER_API_KEY"

Response 200

{
  "data": {
    "carriers": [
      {
        "carrier": "gls",
        "deliveries": ["home", "pickup", "business"],
        "return_label": true
      },
      {
        "carrier": "postnord",
        "deliveries": ["home", "pickup", "business"],
        "return_label": true
      }
    ],
    "vship_methods": [
      {
        "method_id": 12,
        "name": "DAO Pakkeshop",
        "carrier": "dao",
        "delivery": "pickup"
      }
    ],
    "pickup_point_carriers": ["gls", "postnord", "dao", "bring"]
  }
}

Endpoints

Pickup points

The pickup points nearest to an address. Book a label to one with its id and delivery pickup.

Pickup points nearest to an address

GET /pickup-points

Query parameters

  • carrier string required

    Also accepts posti (Bring) and dpd (PostNord).

    One of: bringdaoglspostnordpostnlupsinstaboxbudbeehelthjemdhlhermesevriswisspost
  • country_code string required · Max 2 characters
  • zip string

    Required where the country has postal codes.

  • city string
  • address1 string

    Street and number. Without it the points are placed by the zip code alone.

  • limit integer · 1 to 30· Default: 10

Response 200

  • data object[]
    Fields of data
    • id string
    • carrier string
    • name string nullable
    • address1 string nullable
    • address2 string nullable
    • zip string nullable
    • city string nullable
    • country_code string nullable
    • latitude number nullable
    • longitude number nullable
    • distance_km number nullable

      Null when the address could not be placed, and on a single point.

    • staffed boolean nullable

      False for a parcel locker; null when the carrier does not say.

    • opening_hours object nullable

      By lowercase weekday: { "monday": { "open": "08:00", "close": "20:00" } }.

Responses

  • 200

    Nearest first. An empty list means that the carrier has no point there, or that the carrier did not answer the lookup: try again later before you tell a customer that no point exists.

  • 400

    invalid_request, with fields.

  • 401

    unauthorized: the key is missing, wrong or revoked, or the shop has uninstalled the app.

  • 403

    plan_not_available: the shop is below the Max plan.

  • 429

    rate_limited: see the Retry-After header. Also answered to an address that keeps sending keys that are not valid.

  • 502

    carrier_unavailable: the lookup failed on our side, try again.

Request

curl -G https://app.pakkeshopper.dk/v1/pickup-points \
  -H "Authorization: Bearer $PAKKESHOPPER_API_KEY" \
  --data-urlencode 'carrier=gls' \
  --data-urlencode 'country_code=DK' \
  --data-urlencode 'zip=9000' \
  --data-urlencode 'address1=Boulevarden 12' \
  --data-urlencode 'limit=3'

Response 200

{
  "data": [
    {
      "id": "95218",
      "carrier": "gls",
      "name": "Kiosk Nine",
      "address1": "Vej 9",
      "address2": null,
      "zip": "9000",
      "city": "Aalborg",
      "country_code": "DK",
      "latitude": 57.0481,
      "longitude": 9.9187,
      "distance_km": 0.4,
      "staffed": true,
      "opening_hours": {
        "monday": { "open": "08:00", "close": "20:00" },
        "tuesday": { "open": "08:00", "close": "20:00" },
        "wednesday": { "open": "08:00", "close": "20:00" },
        "thursday": { "open": "08:00", "close": "20:00" },
        "friday": { "open": "08:00", "close": "20:00" },
        "saturday": { "open": "09:00", "close": "16:00" },
        "sunday": null
      }
    }
  ]
}

One pickup point

GET /pickup-points/{carrier}/{id}

Path parameters

  • carrier string required

    The carrier of the point.

  • id string required

    The point's id from the list.

Response 200

  • data object
    Fields of data
    • id string
    • carrier string
    • name string nullable
    • address1 string nullable
    • address2 string nullable
    • zip string nullable
    • city string nullable
    • country_code string nullable
    • latitude number nullable
    • longitude number nullable
    • distance_km number nullable

      Null when the address could not be placed, and on a single point.

    • staffed boolean nullable

      False for a parcel locker; null when the carrier does not say.

    • opening_hours object nullable

      By lowercase weekday: { "monday": { "open": "08:00", "close": "20:00" } }.

Responses

  • 200

    The point.

  • 401

    unauthorized: the key is missing, wrong or revoked, or the shop has uninstalled the app.

  • 403

    plan_not_available: the shop is below the Max plan.

  • 404

    pickup_point_not_found

  • 429

    rate_limited: see the Retry-After header. Also answered to an address that keeps sending keys that are not valid.

Request

curl https://app.pakkeshopper.dk/v1/pickup-points/gls/95218 \
  -H "Authorization: Bearer $PAKKESHOPPER_API_KEY"

Response 200

{
  "data": {
    "id": "95218",
    "carrier": "gls",
    "name": "Kiosk Nine",
    "address1": "Vej 9",
    "address2": null,
    "zip": "9000",
    "city": "Aalborg",
    "country_code": "DK",
    "latitude": 57.0481,
    "longitude": 9.9187,
    "distance_km": 0.4,
    "staffed": true,
    "opening_hours": {
      "monday": { "open": "08:00", "close": "20:00" },
      "tuesday": { "open": "08:00", "close": "20:00" },
      "wednesday": { "open": "08:00", "close": "20:00" },
      "thursday": { "open": "08:00", "close": "20:00" },
      "friday": { "open": "08:00", "close": "20:00" },
      "saturday": { "open": "09:00", "close": "16:00" },
      "sunday": null
    }
  }
}

List labels

GET /labels

The shop's labels without an order, newest first: those booked here and those from the Create label page.

Query parameters

  • limit integer · 1 to 50· Default: 25
  • offset integer · Min 0· Default: 0

Response 200

  • data object[]
    Fields of data
    • id string · uuid
    • kind string
      One of: outboundreturn
    • carrier string
    • delivery string nullable
      One of: homepickupbusiness
    • tracking_number string nullable
    • tracking_url string nullable
    • reference string nullable
    • recipient object
      Fields of recipient
      • name string · Max 35 characters
      • company string · Max 35 characters
      • address1 string · Max 35 characters
      • address2 string · Max 35 characters
      • zip string · Max 10 characters
      • city string · Max 35 characters
      • country_code string · Max 2 characters
      • phone string · Max 20 characters
      • email string · Max 70 characters
    • pickup_point object nullable
      Fields of pickup_point
      • id string
      • name string nullable
      • address string nullable
    • weight_kg number nullable
    • created_at string · date-time
    • pdf_url string nullable

      Opens the PDF without a key for 24 hours.

  • has_more boolean
  • offset integer
  • limit integer

Responses

  • 200

    One page.

  • 401

    unauthorized: the key is missing, wrong or revoked, or the shop has uninstalled the app.

  • 403

    plan_not_available: the shop is below the Max plan.

  • 429

    rate_limited: see the Retry-After header. Also answered to an address that keeps sending keys that are not valid.

Request

curl -G https://app.pakkeshopper.dk/v1/labels \
  -H "Authorization: Bearer $PAKKESHOPPER_API_KEY" \
  --data-urlencode 'limit=25' \
  --data-urlencode 'offset=0'

Response 200

{
  "data": [
    {
      "id": "6f1c2a9e-4b7d-4e2a-9c3f-1d8e5b7a2c40",
      "kind": "outbound",
      "carrier": "gls",
      "delivery": "pickup",
      "tracking_number": "05418323404",
      "tracking_url": "https://gls-group.com/track/05418323404",
      "reference": "Order 1001",
      "recipient": {
        "name": "Mette Hansen",
        "address1": "Boulevarden 12",
        "zip": "9000",
        "city": "Aalborg",
        "country_code": "DK",
        "phone": "+4512345678",
        "email": "[email protected]"
      },
      "pickup_point": {
        "id": "95218",
        "name": "Kiosk Nine",
        "address": "Vej 9, 9000 Aalborg"
      },
      "weight_kg": 1.2,
      "created_at": "2026-11-23T09:41:00Z",
      "pdf_url": "https://app.pakkeshopper.dk/label/print/6f1c2a9e-4b7d-4e2a-9c3f-1d8e5b7a2c40.pdf?token=..."
    }
  ],
  "has_more": false,
  "offset": 0,
  "limit": 25
}

Book a label

POST /labels

Books one parcel at the carrier and stores its PDF. Send an Idempotency-Key header so a retry after a timeout answers the first booking instead of making a second. The answer of a request that booked is kept under the key; a refusal is not, so the same key can be sent again after the cause is fixed.

Headers

  • Idempotency-Key string · Max 255 characters

    The answer of a booking is kept for 24 hours per API key.

Request body

  • kind string · Default: outbound

    A return label is addressed from recipient to the sender.

    One of: outboundreturn
  • carrier string required

    A carrier from GET /carriers, or vship with method_id.

  • method_id integer

    With carrier vship: a method from vship_methods.

  • delivery string

    Required for an outbound label.

    One of: homepickupbusiness
  • pickup_point_id string

    Required with delivery pickup: an id from GET /pickup-points.

  • recipient object required
    Fields of recipient
    • name string required · Max 35 characters
    • company string · Max 35 characters
    • address1 string required · Max 35 characters
    • address2 string · Max 35 characters
    • zip string required · Max 10 characters
    • city string required · Max 35 characters
    • country_code string required · Max 2 characters
    • phone string · Max 20 characters
    • email string · Max 70 characters
  • sender object

    Printed on this label only. Must be in the store's country. Without it the shop's saved sender or store address is used. Not used by vShip.

    Fields of sender
    • name string required · Max 35 characters
    • address1 string required · Max 35 characters
    • address2 string · Max 35 characters
    • zip string required · Max 10 characters
    • city string required · Max 35 characters
    • country_code string required · Max 2 characters
    • phone string · Max 20 characters
    • email string · Max 70 characters
  • weight_kg number · 0.01 to 50

    Without it the parcel is booked at 0.5 kg.

  • reference string · Max 35 characters

    Your own reference, printed where the carrier prints one.

  • print object
    Fields of print
    • printer_id string required

      An id from GET /printers.

    • queue string

      One of the printer's queues. Without it the printer's default queue.

Response 201

  • data object
    Fields of data
    • label object
      Fields of label
      • id string · uuid
      • kind string
        One of: outboundreturn
      • carrier string
      • delivery string nullable
        One of: homepickupbusiness
      • tracking_number string nullable
      • tracking_url string nullable
      • reference string nullable
      • recipient object
        Fields of recipient
        • name string · Max 35 characters
        • company string · Max 35 characters
        • address1 string · Max 35 characters
        • address2 string · Max 35 characters
        • zip string · Max 10 characters
        • city string · Max 35 characters
        • country_code string · Max 2 characters
        • phone string · Max 20 characters
        • email string · Max 70 characters
      • pickup_point object nullable
        Fields of pickup_point
        • id string
        • name string nullable
        • address string nullable
      • weight_kg number nullable
      • created_at string · date-time
      • pdf_url string nullable

        Opens the PDF without a key for 24 hours.

    • print_job object nullable
      Fields of print_job
      • id string · uuid
      • printer_id string · uuid
      • status string
        One of: pending
    • print_error string
      One of: printer_not_foundqueue_failed

Responses

  • 201

    Booked. print_error (printer_not_found or queue_failed) is set when the label was booked and could not be queued.

  • 400

    invalid_request, with fields (recipient.<field>, sender.<field>, ...). Without fields for a body that is not a JSON object and for an Idempotency-Key that is empty or over 255 characters.

  • 401

    unauthorized: the key is missing, wrong or revoked, or the shop has uninstalled the app.

  • 403

    plan_not_available: the shop is below the Max plan.

  • 404

    printer_not_found: nothing was booked.

  • 409

    missing_credentials, unsupported_carrier, return_unsupported, missing_vship_profile, missing_shop_address, invalid_sender_address or request_in_progress.

  • 413

    payload_too_large: the body is too large.

  • 415

    invalid_request: the body is not application/json, is compressed (Content-Encoding) or is not in UTF-8.

  • 422

    carrier_error: the carrier refused the booking; message is its own, with carrier and trace_id. Or idempotency_key_reused.

  • 429

    rate_limited: the key sent too many requests or too many booking attempts (see the limits above), or the address keeps sending keys that are not valid. This request booked nothing. A retry with the same Idempotency-Key after the Retry-After header is safe: a key whose label was booked gets its first answer even past the limits.

  • 500

    booking_not_stored: the carrier booked the parcel and the label could not be stored. Do not book it again; the error carries carrier, tracking_number and trace_id. A retry with the same Idempotency-Key gets this answer again. Any other 500 booked nothing.

  • 503

    idempotency_unavailable or shop_address_unavailable: nothing was booked, try again.

Request

curl https://app.pakkeshopper.dk/v1/labels \
  -H "Authorization: Bearer $PAKKESHOPPER_API_KEY" \
  -H 'Idempotency-Key: order-1001-parcel-1' \
  -H "Content-Type: application/json" \
  -d '{
  "carrier": "gls",
  "delivery": "pickup",
  "pickup_point_id": "95218",
  "recipient": {
    "name": "Mette Hansen",
    "address1": "Boulevarden 12",
    "zip": "9000",
    "city": "Aalborg",
    "country_code": "DK",
    "phone": "+4512345678",
    "email": "[email protected]"
  },
  "weight_kg": 1.2,
  "reference": "Order 1001",
  "print": {
    "printer_id": "2b9d7e14-8a3c-4f61-b5e2-7c0a9d3f6e18"
  }
}'

Response 201

{
  "data": {
    "label": {
      "id": "6f1c2a9e-4b7d-4e2a-9c3f-1d8e5b7a2c40",
      "kind": "outbound",
      "carrier": "gls",
      "delivery": "pickup",
      "tracking_number": "05418323404",
      "tracking_url": "https://gls-group.com/track/05418323404",
      "reference": "Order 1001",
      "recipient": {
        "name": "Mette Hansen",
        "address1": "Boulevarden 12",
        "zip": "9000",
        "city": "Aalborg",
        "country_code": "DK",
        "phone": "+4512345678",
        "email": "[email protected]"
      },
      "pickup_point": {
        "id": "95218",
        "name": "Kiosk Nine",
        "address": "Vej 9, 9000 Aalborg"
      },
      "weight_kg": 1.2,
      "created_at": "2026-11-23T09:41:00Z",
      "pdf_url": "https://app.pakkeshopper.dk/label/print/6f1c2a9e-4b7d-4e2a-9c3f-1d8e5b7a2c40.pdf?token=..."
    },
    "print_job": {
      "id": "c4e81f3a-2d6b-49a7-8e15-3b7f0c9d2a64",
      "printer_id": "2b9d7e14-8a3c-4f61-b5e2-7c0a9d3f6e18",
      "status": "pending"
    }
  }
}

One label

GET /labels/{id}

Path parameters

  • id string required

    The label id.

Response 200

  • data object
    Fields of data
    • id string · uuid
    • kind string
      One of: outboundreturn
    • carrier string
    • delivery string nullable
      One of: homepickupbusiness
    • tracking_number string nullable
    • tracking_url string nullable
    • reference string nullable
    • recipient object
      Fields of recipient
      • name string · Max 35 characters
      • company string · Max 35 characters
      • address1 string · Max 35 characters
      • address2 string · Max 35 characters
      • zip string · Max 10 characters
      • city string · Max 35 characters
      • country_code string · Max 2 characters
      • phone string · Max 20 characters
      • email string · Max 70 characters
    • pickup_point object nullable
      Fields of pickup_point
      • id string
      • name string nullable
      • address string nullable
    • weight_kg number nullable
    • created_at string · date-time
    • pdf_url string nullable

      Opens the PDF without a key for 24 hours.

Responses

  • 200

    The label, with a fresh pdf_url.

  • 401

    unauthorized: the key is missing, wrong or revoked, or the shop has uninstalled the app.

  • 403

    plan_not_available: the shop is below the Max plan.

  • 404

    label_not_found

  • 429

    rate_limited: see the Retry-After header. Also answered to an address that keeps sending keys that are not valid.

Request

curl https://app.pakkeshopper.dk/v1/labels/6f1c2a9e-4b7d-4e2a-9c3f-1d8e5b7a2c40 \
  -H "Authorization: Bearer $PAKKESHOPPER_API_KEY"

Response 200

{
  "data": {
    "id": "6f1c2a9e-4b7d-4e2a-9c3f-1d8e5b7a2c40",
    "kind": "outbound",
    "carrier": "gls",
    "delivery": "pickup",
    "tracking_number": "05418323404",
    "tracking_url": "https://gls-group.com/track/05418323404",
    "reference": "Order 1001",
    "recipient": {
      "name": "Mette Hansen",
      "address1": "Boulevarden 12",
      "zip": "9000",
      "city": "Aalborg",
      "country_code": "DK",
      "phone": "+4512345678",
      "email": "[email protected]"
    },
    "pickup_point": {
      "id": "95218",
      "name": "Kiosk Nine",
      "address": "Vej 9, 9000 Aalborg"
    },
    "weight_kg": 1.2,
    "created_at": "2026-11-23T09:41:00Z",
    "pdf_url": "https://app.pakkeshopper.dk/label/print/6f1c2a9e-4b7d-4e2a-9c3f-1d8e5b7a2c40.pdf?token=..."
  }
}

The label PDF

GET /labels/{id}/pdf

Path parameters

  • id string required

    The label id.

Responses

  • 200

    The PDF.

  • 401

    unauthorized: the key is missing, wrong or revoked, or the shop has uninstalled the app.

  • 403

    plan_not_available: the shop is below the Max plan.

  • 404

    label_not_found

  • 429

    rate_limited: see the Retry-After header. Also answered to an address that keeps sending keys that are not valid.

Request

curl https://app.pakkeshopper.dk/v1/labels/6f1c2a9e-4b7d-4e2a-9c3f-1d8e5b7a2c40/pdf \
  -H "Authorization: Bearer $PAKKESHOPPER_API_KEY" \
  -o label.pdf
200 application/pdf. The response body is the PDF file.

Print a stored label

POST /labels/{id}/print

Queues the stored PDF on a print agent. Nothing is booked.

Path parameters

  • id string required

    The label id.

Request body

  • printer_id string required

    An id from GET /printers.

  • queue string

    One of the printer's queues. Without it the printer's default queue.

Response 202

  • data object
    Fields of data
    • id string · uuid
    • printer_id string · uuid
    • status string
      One of: pending

Responses

  • 202

    Queued. Follow it with GET /print-jobs/{id}.

  • 400

    invalid_request

  • 401

    unauthorized: the key is missing, wrong or revoked, or the shop has uninstalled the app.

  • 403

    plan_not_available: the shop is below the Max plan.

  • 404

    label_not_found or printer_not_found

  • 413

    payload_too_large: the body is too large.

  • 415

    invalid_request: the body is not application/json, is compressed (Content-Encoding) or is not in UTF-8.

  • 429

    rate_limited: see the Retry-After header. Also answered to an address that keeps sending keys that are not valid.

Request

curl https://app.pakkeshopper.dk/v1/labels/6f1c2a9e-4b7d-4e2a-9c3f-1d8e5b7a2c40/print \
  -H "Authorization: Bearer $PAKKESHOPPER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "printer_id": "2b9d7e14-8a3c-4f61-b5e2-7c0a9d3f6e18",
  "queue": "Zebra_ZD421"
}'

Response 202

{
  "data": {
    "id": "c4e81f3a-2d6b-49a7-8e15-3b7f0c9d2a64",
    "printer_id": "2b9d7e14-8a3c-4f61-b5e2-7c0a9d3f6e18",
    "status": "pending"
  }
}

Endpoints

Printers

The computers that run Print Agent, and the printers each one reported.

The shop's print agents

GET /printers

Response 200

  • data object[]
    Fields of data
    • id string · uuid
    • name string nullable
    • online boolean

      Seen in the last 5 minutes. A job for an offline printer waits up to 12 hours.

    • last_seen_at string nullable · date-time
    • default_queue string nullable
    • queues array
    • is_default boolean

Responses

  • 200

    A printer is a computer that runs the Pakkeshopper print agent; queues are the printers it reported.

  • 401

    unauthorized: the key is missing, wrong or revoked, or the shop has uninstalled the app.

  • 403

    plan_not_available: the shop is below the Max plan.

  • 429

    rate_limited: see the Retry-After header. Also answered to an address that keeps sending keys that are not valid.

Request

curl https://app.pakkeshopper.dk/v1/printers \
  -H "Authorization: Bearer $PAKKESHOPPER_API_KEY"

Response 200

{
  "data": [
    {
      "id": "2b9d7e14-8a3c-4f61-b5e2-7c0a9d3f6e18",
      "name": "Packing table",
      "online": true,
      "last_seen_at": "2026-11-23T09:41:00Z",
      "default_queue": "Zebra_ZD421",
      "queues": ["Zebra_ZD421", "Brother_QL_1110NWB"],
      "is_default": true
    }
  ]
}

One print job

GET /print-jobs/{id}

Path parameters

  • id string required

    The job id.

Response 200

  • data object
    Fields of data
    • id string · uuid
    • status string
      One of: pendingsentprintederrorexpired
    • printer_id string · uuid
    • queue string nullable
    • error string nullable
    • error_code string nullable
    • created_at string · date-time
    • printed_at string nullable · date-time

Responses

  • 200

    The job.

  • 401

    unauthorized: the key is missing, wrong or revoked, or the shop has uninstalled the app.

  • 403

    plan_not_available: the shop is below the Max plan.

  • 404

    print_job_not_found

  • 429

    rate_limited: see the Retry-After header. Also answered to an address that keeps sending keys that are not valid.

Request

curl https://app.pakkeshopper.dk/v1/print-jobs/c4e81f3a-2d6b-49a7-8e15-3b7f0c9d2a64 \
  -H "Authorization: Bearer $PAKKESHOPPER_API_KEY"

Response 200

{
  "data": {
    "id": "c4e81f3a-2d6b-49a7-8e15-3b7f0c9d2a64",
    "status": "printed",
    "printer_id": "2b9d7e14-8a3c-4f61-b5e2-7c0a9d3f6e18",
    "queue": "Zebra_ZD421",
    "error": null,
    "error_code": null,
    "created_at": "2026-11-23T09:41:00Z",
    "printed_at": "2026-11-23T09:41:04Z"
  }
}