API ReferenceDPPs & QR Codes

DPPs & QR Codes API

List all published DPPs

GET /brand/dpps
Authorization: Bearer <token>
X-Organization-Id: <org_id>

Returns:

{
  "data": [
    {
      "id": "01KS...",
      "gtin": "5701234567001",
      "serial": "ABC123",
      "qrUrl": "https://p.pasera.app/p/5701234567001/ABC123",
      "publishedAt": 1716000000000,
      "co2PerUnit": 4.23,
      "batchId": "01KS...",
      "poReference": "PO-2026-001",
      "quantity": 500,
      "unit": "pcs",
      "productId": "01KS...",
      "productName": "Classic Crew T-Shirt",
      "productSku": "NE-TSH-001",
      "factoryName": "Guangzhou Garment Co."
    }
  ]
}

List DPPs by product

GET /brand/dpps/by-product/:productId
Authorization: Bearer <token>
X-Organization-Id: <org_id>

Same response format as above, filtered to a specific product.

Download QR code

GET /brand/qr/:dppId
Authorization: Bearer <token>
X-Organization-Id: <org_id>

Returns an SVG image (Content-Type: image/svg+xml).

The QR code includes:

  • The consumer page URL encoded in the QR pattern
  • Error correction level H (highest — 30% damage tolerance)
  • The Pasera mark embedded in the center

Consumer page URL format

Each published DPP has a public URL:

https://p.pasera.app/p/{gtin}/{serial}

This page is publicly accessible (no auth required) and shows the full product passport including materials, environmental impact, certificates, and care instructions. It’s the URL encoded in the QR code.