# Create a product from a design

> Pick a base product and zones, send one image per zone, place it in cm or let B7R fit it, check, create, and get the photos back.

Source: https://docs.b7r.app/create-a-product

> Amounts, ids and limits in the examples are samples.

You need a key with the `catalog` and `products:write` areas (tick both when you make the key), and your design as a PNG, JPEG or WebP at a public `https` URL (or uploaded first, see [Files](https://docs.b7r.app/files)). Every step until the create saves nothing.

## Pick the base product and zones

Read the base product with [`GET /v1/catalog/products/{id}`](https://docs.b7r.app/catalog). Pick one `options` entry: it fixes the technique, the zones you print on (one or two) and their `minimum_selling_price`. Pick the colours you will sell from `colors`. Send every id of `sizes`: a product sells every size of its base product, and a request that leaves one out is refused with `missing_size`, the missing ids in `valid_values`.

Request:

```bash
curl https://api.b7r.app/v1/catalog/products/8c2e4f6a-1b3d-4a5c-8e7f-9a0b1c2d3e4f \
  -H "Authorization: Bearer $B7R_API_KEY"
```

```javascript
const res = await fetch("https://api.b7r.app/v1/catalog/products/8c2e4f6a-1b3d-4a5c-8e7f-9a0b1c2d3e4f", {
  headers: {
    Authorization: `Bearer ${process.env.B7R_API_KEY}`,
  },
});
const data = await res.json();
```

```python
import os, requests

res = requests.get(
    "https://api.b7r.app/v1/catalog/products/8c2e4f6a-1b3d-4a5c-8e7f-9a0b1c2d3e4f",
    headers={
        "Authorization": f"Bearer {os.environ['B7R_API_KEY']}",
    },
    timeout=30,
)
data = res.json()
```

The option used below:

```json
{
  "technique_id": "2b9d6e1f-7a4c-4d8e-b3f5-0c1a2e3d4f5a",
  "zone_ids": [
    "5e7a9c1b-3d5f-4b7a-9c1e-2f4a6b8c0d2e",
    "6f8b0d2c-4e6a-4c8b-8d2f-3a5b7c9d1e3f"
  ],
  "cost": {
    "net": "60.00",
    "vat": "0.00",
    "gross": "60.00",
    "currency": "SAR"
  },
  "minimum_selling_price": {
    "amount": "78.00",
    "currency": "SAR"
  }
}
```

## Prepare one image per zone

- One PNG, JPEG or WebP file per zone. Use a PNG or WebP with a transparent background where nothing should print: a JPEG has no transparency, so all of it prints. Other formats are refused (`unsupported_file_type`). A CMYK JPEG is taken as it is, as the app takes it.
- B7R reads the type from the file itself, keeps the bytes as sent, and prints that file. A JPEG turned by its EXIF orientation is measured and drawn turned, as a browser shows it.
- You may send the PDF your design was made from beside the image, as `original_upload_id` (an upload of purpose `design_original`, see [Files](https://docs.b7r.app/files)). B7R keeps it for its print team and never reads it: the print file is the image. The design then answers `has_original: true`. A `design_id` carries no original: send `original_upload_id` with it to keep one.
- Make it large enough for the zone's print size at a good resolution. A small file is never refused: each design answers `print_quality` (`good`, `acceptable` or `low`) so you can warn your seller.
- Host it at a public `https` URL on port 443 that answers without a redirect. B7R fetches it once, keeps the bytes as sent, and never needs the URL again.
- A file may be up to 25 MB, 12,000 px on its longer side and 40 megapixels (current values; the catalog answers each base product's own in `design_rules`). A file over them, animated or unreadable is refused with `422 design_rejected`, the design and the reason named.

## Place the design in cm, or let B7R fit it

Leave out `position` and B7R fits the design inside the zone's print area, as large as it goes, centred, keeping its proportions. To place it yourself, send `position`: `x_cm` and `y_cm` from the print area's top left corner to the design's top left corner, and `width_cm`; the height follows the file's proportions. Add `rotation_deg` (clockwise, about the design's centre) to turn it and `flipped: true` to mirror it; `x_cm` and `y_cm` stay the corner of the unturned design.

- The catalog gives each zone's `print_area_cm` (`width`, `height`) and the `target_px` to aim for at the recommended resolution, and the base product's `design_rules` (`formats`, `max_bytes`, `max_px_side`, `max_pixels`, `min_dpi`, `recommended_dpi`). Use them to size and place your file.
- A design may run past the edge of the print area: what is outside is not printed.
- Example: a 20 cm wide logo 5 cm from the left and 4 cm from the top is `{ "x_cm": 5, "y_cm": 4, "width_cm": 20 }`.
- The answer always gives each design's `position` (the one B7R worked out when it fitted the design) and its printed `size` in pixels and cm. After the design is saved in the app, the position read back may differ by up to 1 % (rounding).
- A position that does not overlap the print area at all is refused (`position_outside_zone`); a turned design is checked by its turned corners.
- A `position` read from a product and sent back moves the design by at most 0.01 cm and 0.01 degree (a read is rounded to those), its mirror included.

## Check it

`POST /v1/products/check` runs every check (ids, zones, price, each file) and answers the product it would make, without saving anything. Fix what it reports, then create. Set `retail_price` to at least the option's `minimum_selling_price`, or the answer is `422 product_rejected` with the minimum.

Request:

```bash
curl -X POST https://api.b7r.app/v1/products/check \
  -H "Authorization: Bearer $B7R_API_KEY" \
  -H "Idempotency-Key: $(uuidgen 2>/dev/null || node -e 'console.log(crypto.randomUUID())')" \
  -H "Content-Type: application/json" \
  -d '{
    "base_product_id": "8c2e4f6a-1b3d-4a5c-8e7f-9a0b1c2d3e4f",
    "technique_id": "2b9d6e1f-7a4c-4d8e-b3f5-0c1a2e3d4f5a",
    "colors": [
      "7a9c1e3f-5b7d-4f9a-8b3c-4d6e8f0a2b4c",
      "1c3e5a7b-9d1f-4a3c-9e5b-7f9a1c3e5b7d"
    ],
    "sizes": [
      "3d5f7b9c-1e3a-4c5e-8a7b-9c1d3e5f7a9b",
      "4e6a8c0d-2f4b-4d6f-9b8c-0d2e4f6a8b0c"
    ],
    "designs": [
      {
        "zone_id": "5e7a9c1b-3d5f-4b7a-9c1e-2f4a6b8c0d2e",
        "file_url": "https://files.example.com/designs/falcon-front.png"
      },
      {
        "zone_id": "6f8b0d2c-4e6a-4c8b-8d2f-3a5b7c9d1e3f",
        "file_url": "https://files.example.com/designs/falcon-back.png",
        "position": {
          "x_cm": 5,
          "y_cm": 4,
          "width_cm": 20
        }
      }
    ],
    "name": {
      "ar": "تيشيرت الصقر",
      "en": "Falcon T-shirt"
    },
    "retail_price": "99.00",
    "external_id": "falcon-tee-001",
    "seller": {
      "id": "seller-1042",
      "name": "Najd Prints"
    }
  }'
```

```javascript
const res = await fetch("https://api.b7r.app/v1/products/check", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.B7R_API_KEY}`,
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "base_product_id": "8c2e4f6a-1b3d-4a5c-8e7f-9a0b1c2d3e4f",
    "technique_id": "2b9d6e1f-7a4c-4d8e-b3f5-0c1a2e3d4f5a",
    "colors": [
      "7a9c1e3f-5b7d-4f9a-8b3c-4d6e8f0a2b4c",
      "1c3e5a7b-9d1f-4a3c-9e5b-7f9a1c3e5b7d"
    ],
    "sizes": [
      "3d5f7b9c-1e3a-4c5e-8a7b-9c1d3e5f7a9b",
      "4e6a8c0d-2f4b-4d6f-9b8c-0d2e4f6a8b0c"
    ],
    "designs": [
      {
        "zone_id": "5e7a9c1b-3d5f-4b7a-9c1e-2f4a6b8c0d2e",
        "file_url": "https://files.example.com/designs/falcon-front.png"
      },
      {
        "zone_id": "6f8b0d2c-4e6a-4c8b-8d2f-3a5b7c9d1e3f",
        "file_url": "https://files.example.com/designs/falcon-back.png",
        "position": {
          "x_cm": 5,
          "y_cm": 4,
          "width_cm": 20
        }
      }
    ],
    "name": {
      "ar": "تيشيرت الصقر",
      "en": "Falcon T-shirt"
    },
    "retail_price": "99.00",
    "external_id": "falcon-tee-001",
    "seller": {
      "id": "seller-1042",
      "name": "Najd Prints"
    }
  }),
});
const data = await res.json();
```

```python
import os, requests, uuid

res = requests.post(
    "https://api.b7r.app/v1/products/check",
    headers={
        "Authorization": f"Bearer {os.environ['B7R_API_KEY']}",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
        "base_product_id": "8c2e4f6a-1b3d-4a5c-8e7f-9a0b1c2d3e4f",
        "technique_id": "2b9d6e1f-7a4c-4d8e-b3f5-0c1a2e3d4f5a",
        "colors": [
            "7a9c1e3f-5b7d-4f9a-8b3c-4d6e8f0a2b4c",
            "1c3e5a7b-9d1f-4a3c-9e5b-7f9a1c3e5b7d"
        ],
        "sizes": [
            "3d5f7b9c-1e3a-4c5e-8a7b-9c1d3e5f7a9b",
            "4e6a8c0d-2f4b-4d6f-9b8c-0d2e4f6a8b0c"
        ],
        "designs": [
            {
                "zone_id": "5e7a9c1b-3d5f-4b7a-9c1e-2f4a6b8c0d2e",
                "file_url": "https://files.example.com/designs/falcon-front.png"
            },
            {
                "zone_id": "6f8b0d2c-4e6a-4c8b-8d2f-3a5b7c9d1e3f",
                "file_url": "https://files.example.com/designs/falcon-back.png",
                "position": {
                    "x_cm": 5,
                    "y_cm": 4,
                    "width_cm": 20
                }
            }
        ],
        "name": {
            "ar": "تيشيرت الصقر",
            "en": "Falcon T-shirt"
        },
        "retail_price": "99.00",
        "external_id": "falcon-tee-001",
        "seller": {
            "id": "seller-1042",
            "name": "Najd Prints"
        }
    },
    timeout=30,
)
data = res.json()
```

200 OK:

```json
{
  "product": {
    "external_id": "falcon-tee-001",
    "seller": {
      "id": "seller-1042",
      "name": "Najd Prints"
    },
    "status": "active",
    "created_via": "api",
    "base_product_id": "8c2e4f6a-1b3d-4a5c-8e7f-9a0b1c2d3e4f",
    "technique_id": "2b9d6e1f-7a4c-4d8e-b3f5-0c1a2e3d4f5a",
    "zone_ids": [
      "5e7a9c1b-3d5f-4b7a-9c1e-2f4a6b8c0d2e",
      "6f8b0d2c-4e6a-4c8b-8d2f-3a5b7c9d1e3f"
    ],
    "name": {
      "ar": "تيشيرت الصقر",
      "en": "Falcon T-shirt"
    },
    "description": null,
    "retail_price": "99.00",
    "variants": [
      {
        "sku": null,
        "color_id": "7a9c1e3f-5b7d-4f9a-8b3c-4d6e8f0a2b4c",
        "size_id": "3d5f7b9c-1e3a-4c5e-8a7b-9c1d3e5f7a9b"
      },
      {
        "sku": null,
        "color_id": "7a9c1e3f-5b7d-4f9a-8b3c-4d6e8f0a2b4c",
        "size_id": "4e6a8c0d-2f4b-4d6f-9b8c-0d2e4f6a8b0c"
      },
      {
        "sku": null,
        "color_id": "1c3e5a7b-9d1f-4a3c-9e5b-7f9a1c3e5b7d",
        "size_id": "3d5f7b9c-1e3a-4c5e-8a7b-9c1d3e5f7a9b"
      },
      {
        "sku": null,
        "color_id": "1c3e5a7b-9d1f-4a3c-9e5b-7f9a1c3e5b7d",
        "size_id": "4e6a8c0d-2f4b-4d6f-9b8c-0d2e4f6a8b0c"
      }
    ],
    "designs": [
      {
        "zone_id": "5e7a9c1b-3d5f-4b7a-9c1e-2f4a6b8c0d2e",
        "position": {
          "x_cm": 0,
          "y_cm": 0,
          "width_cm": 25,
          "rotation_deg": 0,
          "flipped": false
        },
        "size": {
          "width_px": 3543,
          "height_px": 4252,
          "width_cm": 25,
          "height_cm": 30
        },
        "trimmed": null,
        "has_original": false,
        "print_quality": {
          "dpi": 360,
          "level": "good"
        },
        "review": {
          "state": "pending",
          "reason_code": null,
          "message": null,
          "decided_at": null
        }
      },
      {
        "zone_id": "6f8b0d2c-4e6a-4c8b-8d2f-3a5b7c9d1e3f",
        "position": {
          "x_cm": 5,
          "y_cm": 4,
          "width_cm": 20,
          "rotation_deg": 0,
          "flipped": false
        },
        "size": {
          "width_px": 2362,
          "height_px": 2362,
          "width_cm": 20,
          "height_cm": 20
        },
        "trimmed": null,
        "has_original": false,
        "print_quality": {
          "dpi": 300,
          "level": "good"
        },
        "review": {
          "state": "pending",
          "reason_code": null,
          "message": null,
          "decided_at": null
        }
      }
    ],
    "review_state": "pending",
    "id": null,
    "photos": [],
    "created_at": null,
    "updated_at": null
  }
}
```

## Create it

Send the same body to `POST /v1/products` with a new `Idempotency-Key`, and store the key with your record so a retry reuses it. The answer is `201` with the product id and a SKU per colour and size: keep the SKUs, orders name them. Set `external_id` to your own id to find the product later with `?external_id=`.

Request:

```bash
curl -X POST https://api.b7r.app/v1/products \
  -H "Authorization: Bearer $B7R_API_KEY" \
  -H "Idempotency-Key: $(uuidgen 2>/dev/null || node -e 'console.log(crypto.randomUUID())')" \
  -H "Content-Type: application/json" \
  -d '{
    "base_product_id": "8c2e4f6a-1b3d-4a5c-8e7f-9a0b1c2d3e4f",
    "technique_id": "2b9d6e1f-7a4c-4d8e-b3f5-0c1a2e3d4f5a",
    "colors": [
      "7a9c1e3f-5b7d-4f9a-8b3c-4d6e8f0a2b4c",
      "1c3e5a7b-9d1f-4a3c-9e5b-7f9a1c3e5b7d"
    ],
    "sizes": [
      "3d5f7b9c-1e3a-4c5e-8a7b-9c1d3e5f7a9b",
      "4e6a8c0d-2f4b-4d6f-9b8c-0d2e4f6a8b0c"
    ],
    "designs": [
      {
        "zone_id": "5e7a9c1b-3d5f-4b7a-9c1e-2f4a6b8c0d2e",
        "file_url": "https://files.example.com/designs/falcon-front.png"
      },
      {
        "zone_id": "6f8b0d2c-4e6a-4c8b-8d2f-3a5b7c9d1e3f",
        "file_url": "https://files.example.com/designs/falcon-back.png",
        "position": {
          "x_cm": 5,
          "y_cm": 4,
          "width_cm": 20
        }
      }
    ],
    "name": {
      "ar": "تيشيرت الصقر",
      "en": "Falcon T-shirt"
    },
    "retail_price": "99.00",
    "external_id": "falcon-tee-001",
    "seller": {
      "id": "seller-1042",
      "name": "Najd Prints"
    }
  }'
```

```javascript
const res = await fetch("https://api.b7r.app/v1/products", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.B7R_API_KEY}`,
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "base_product_id": "8c2e4f6a-1b3d-4a5c-8e7f-9a0b1c2d3e4f",
    "technique_id": "2b9d6e1f-7a4c-4d8e-b3f5-0c1a2e3d4f5a",
    "colors": [
      "7a9c1e3f-5b7d-4f9a-8b3c-4d6e8f0a2b4c",
      "1c3e5a7b-9d1f-4a3c-9e5b-7f9a1c3e5b7d"
    ],
    "sizes": [
      "3d5f7b9c-1e3a-4c5e-8a7b-9c1d3e5f7a9b",
      "4e6a8c0d-2f4b-4d6f-9b8c-0d2e4f6a8b0c"
    ],
    "designs": [
      {
        "zone_id": "5e7a9c1b-3d5f-4b7a-9c1e-2f4a6b8c0d2e",
        "file_url": "https://files.example.com/designs/falcon-front.png"
      },
      {
        "zone_id": "6f8b0d2c-4e6a-4c8b-8d2f-3a5b7c9d1e3f",
        "file_url": "https://files.example.com/designs/falcon-back.png",
        "position": {
          "x_cm": 5,
          "y_cm": 4,
          "width_cm": 20
        }
      }
    ],
    "name": {
      "ar": "تيشيرت الصقر",
      "en": "Falcon T-shirt"
    },
    "retail_price": "99.00",
    "external_id": "falcon-tee-001",
    "seller": {
      "id": "seller-1042",
      "name": "Najd Prints"
    }
  }),
});
const data = await res.json();
```

```python
import os, requests, uuid

res = requests.post(
    "https://api.b7r.app/v1/products",
    headers={
        "Authorization": f"Bearer {os.environ['B7R_API_KEY']}",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
        "base_product_id": "8c2e4f6a-1b3d-4a5c-8e7f-9a0b1c2d3e4f",
        "technique_id": "2b9d6e1f-7a4c-4d8e-b3f5-0c1a2e3d4f5a",
        "colors": [
            "7a9c1e3f-5b7d-4f9a-8b3c-4d6e8f0a2b4c",
            "1c3e5a7b-9d1f-4a3c-9e5b-7f9a1c3e5b7d"
        ],
        "sizes": [
            "3d5f7b9c-1e3a-4c5e-8a7b-9c1d3e5f7a9b",
            "4e6a8c0d-2f4b-4d6f-9b8c-0d2e4f6a8b0c"
        ],
        "designs": [
            {
                "zone_id": "5e7a9c1b-3d5f-4b7a-9c1e-2f4a6b8c0d2e",
                "file_url": "https://files.example.com/designs/falcon-front.png"
            },
            {
                "zone_id": "6f8b0d2c-4e6a-4c8b-8d2f-3a5b7c9d1e3f",
                "file_url": "https://files.example.com/designs/falcon-back.png",
                "position": {
                    "x_cm": 5,
                    "y_cm": 4,
                    "width_cm": 20
                }
            }
        ],
        "name": {
            "ar": "تيشيرت الصقر",
            "en": "Falcon T-shirt"
        },
        "retail_price": "99.00",
        "external_id": "falcon-tee-001",
        "seller": {
            "id": "seller-1042",
            "name": "Najd Prints"
        }
    },
    timeout=30,
)
data = res.json()
```

201 Created:

```json
{
  "id": "3f6a8b1c-2d4e-4f5a-9b6c-7d8e9f0a1b2c",
  "external_id": "falcon-tee-001",
  "seller": {
    "id": "seller-1042",
    "name": "Najd Prints"
  },
  "status": "active",
  "created_via": "api",
  "base_product_id": "8c2e4f6a-1b3d-4a5c-8e7f-9a0b1c2d3e4f",
  "technique_id": "2b9d6e1f-7a4c-4d8e-b3f5-0c1a2e3d4f5a",
  "zone_ids": [
    "5e7a9c1b-3d5f-4b7a-9c1e-2f4a6b8c0d2e",
    "6f8b0d2c-4e6a-4c8b-8d2f-3a5b7c9d1e3f"
  ],
  "name": {
    "ar": "تيشيرت الصقر",
    "en": "Falcon T-shirt"
  },
  "description": null,
  "retail_price": "99.00",
  "variants": [
    {
      "sku": "B7R-TS-0042-BLK-M",
      "color_id": "7a9c1e3f-5b7d-4f9a-8b3c-4d6e8f0a2b4c",
      "size_id": "3d5f7b9c-1e3a-4c5e-8a7b-9c1d3e5f7a9b"
    },
    {
      "sku": "B7R-TS-0042-BLK-L",
      "color_id": "7a9c1e3f-5b7d-4f9a-8b3c-4d6e8f0a2b4c",
      "size_id": "4e6a8c0d-2f4b-4d6f-9b8c-0d2e4f6a8b0c"
    },
    {
      "sku": "B7R-TS-0042-WHT-M",
      "color_id": "1c3e5a7b-9d1f-4a3c-9e5b-7f9a1c3e5b7d",
      "size_id": "3d5f7b9c-1e3a-4c5e-8a7b-9c1d3e5f7a9b"
    },
    {
      "sku": "B7R-TS-0042-WHT-L",
      "color_id": "1c3e5a7b-9d1f-4a3c-9e5b-7f9a1c3e5b7d",
      "size_id": "4e6a8c0d-2f4b-4d6f-9b8c-0d2e4f6a8b0c"
    }
  ],
  "designs": [
    {
      "zone_id": "5e7a9c1b-3d5f-4b7a-9c1e-2f4a6b8c0d2e",
      "position": {
        "x_cm": 0,
        "y_cm": 0,
        "width_cm": 25,
        "rotation_deg": 0,
        "flipped": false
      },
      "size": {
        "width_px": 3543,
        "height_px": 4252,
        "width_cm": 25,
        "height_cm": 30
      },
      "trimmed": null,
      "has_original": false,
      "print_quality": {
        "dpi": 360,
        "level": "good"
      },
      "review": {
        "state": "pending",
        "reason_code": null,
        "message": null,
        "decided_at": null
      }
    },
    {
      "zone_id": "6f8b0d2c-4e6a-4c8b-8d2f-3a5b7c9d1e3f",
      "position": {
        "x_cm": 5,
        "y_cm": 4,
        "width_cm": 20,
        "rotation_deg": 0,
        "flipped": false
      },
      "size": {
        "width_px": 2362,
        "height_px": 2362,
        "width_cm": 20,
        "height_cm": 20
      },
      "trimmed": null,
      "has_original": false,
      "print_quality": {
        "dpi": 300,
        "level": "good"
      },
      "review": {
        "state": "pending",
        "reason_code": null,
        "message": null,
        "decided_at": null
      }
    }
  ],
  "review_state": "pending",
  "photos": [
    {
      "color_id": "7a9c1e3f-5b7d-4f9a-8b3c-4d6e8f0a2b4c",
      "zone_id": "5e7a9c1b-3d5f-4b7a-9c1e-2f4a6b8c0d2e",
      "status": "pending",
      "url": null
    },
    {
      "color_id": "7a9c1e3f-5b7d-4f9a-8b3c-4d6e8f0a2b4c",
      "zone_id": "6f8b0d2c-4e6a-4c8b-8d2f-3a5b7c9d1e3f",
      "status": "pending",
      "url": null
    },
    {
      "color_id": "1c3e5a7b-9d1f-4a3c-9e5b-7f9a1c3e5b7d",
      "zone_id": "5e7a9c1b-3d5f-4b7a-9c1e-2f4a6b8c0d2e",
      "status": "pending",
      "url": null
    },
    {
      "color_id": "1c3e5a7b-9d1f-4a3c-9e5b-7f9a1c3e5b7d",
      "zone_id": "6f8b0d2c-4e6a-4c8b-8d2f-3a5b7c9d1e3f",
      "status": "pending",
      "url": null
    }
  ],
  "created_at": "2026-11-22T10:15:02.118Z",
  "updated_at": "2026-11-22T10:15:02.118Z"
}
```

## Get the photos and the review

B7R makes one photo per colour and designed zone in the background (usually within 5 minutes; a current target, not a promise), and an Admin reviews each design. Wait for the `product.photos_ready` and `product.artwork_review_changed` [updates](https://docs.b7r.app/receive-updates), or read the product again. Then show the photos to your shoppers. What review can decide: [Design review](https://docs.b7r.app/design-review).

Request:

```bash
curl https://api.b7r.app/v1/products/3f6a8b1c-2d4e-4f5a-9b6c-7d8e9f0a1b2c \
  -H "Authorization: Bearer $B7R_API_KEY"
```

```javascript
const res = await fetch("https://api.b7r.app/v1/products/3f6a8b1c-2d4e-4f5a-9b6c-7d8e9f0a1b2c", {
  headers: {
    Authorization: `Bearer ${process.env.B7R_API_KEY}`,
  },
});
const data = await res.json();
```

```python
import os, requests

res = requests.get(
    "https://api.b7r.app/v1/products/3f6a8b1c-2d4e-4f5a-9b6c-7d8e9f0a1b2c",
    headers={
        "Authorization": f"Bearer {os.environ['B7R_API_KEY']}",
    },
    timeout=30,
)
data = res.json()
```

200 OK:

```json
{
  "id": "3f6a8b1c-2d4e-4f5a-9b6c-7d8e9f0a1b2c",
  "external_id": "falcon-tee-001",
  "seller": {
    "id": "seller-1042",
    "name": "Najd Prints"
  },
  "status": "active",
  "created_via": "api",
  "base_product_id": "8c2e4f6a-1b3d-4a5c-8e7f-9a0b1c2d3e4f",
  "technique_id": "2b9d6e1f-7a4c-4d8e-b3f5-0c1a2e3d4f5a",
  "zone_ids": [
    "5e7a9c1b-3d5f-4b7a-9c1e-2f4a6b8c0d2e",
    "6f8b0d2c-4e6a-4c8b-8d2f-3a5b7c9d1e3f"
  ],
  "name": {
    "ar": "تيشيرت الصقر",
    "en": "Falcon T-shirt"
  },
  "description": null,
  "retail_price": "99.00",
  "variants": [
    {
      "sku": "B7R-TS-0042-BLK-M",
      "color_id": "7a9c1e3f-5b7d-4f9a-8b3c-4d6e8f0a2b4c",
      "size_id": "3d5f7b9c-1e3a-4c5e-8a7b-9c1d3e5f7a9b"
    },
    {
      "sku": "B7R-TS-0042-BLK-L",
      "color_id": "7a9c1e3f-5b7d-4f9a-8b3c-4d6e8f0a2b4c",
      "size_id": "4e6a8c0d-2f4b-4d6f-9b8c-0d2e4f6a8b0c"
    },
    {
      "sku": "B7R-TS-0042-WHT-M",
      "color_id": "1c3e5a7b-9d1f-4a3c-9e5b-7f9a1c3e5b7d",
      "size_id": "3d5f7b9c-1e3a-4c5e-8a7b-9c1d3e5f7a9b"
    },
    {
      "sku": "B7R-TS-0042-WHT-L",
      "color_id": "1c3e5a7b-9d1f-4a3c-9e5b-7f9a1c3e5b7d",
      "size_id": "4e6a8c0d-2f4b-4d6f-9b8c-0d2e4f6a8b0c"
    }
  ],
  "designs": [
    {
      "zone_id": "5e7a9c1b-3d5f-4b7a-9c1e-2f4a6b8c0d2e",
      "position": {
        "x_cm": 0,
        "y_cm": 0,
        "width_cm": 25,
        "rotation_deg": 0,
        "flipped": false
      },
      "size": {
        "width_px": 3543,
        "height_px": 4252,
        "width_cm": 25,
        "height_cm": 30
      },
      "trimmed": null,
      "has_original": false,
      "print_quality": {
        "dpi": 360,
        "level": "good"
      },
      "review": {
        "state": "approved",
        "reason_code": null,
        "message": null,
        "decided_at": "2026-11-22T11:02:40.507Z"
      }
    },
    {
      "zone_id": "6f8b0d2c-4e6a-4c8b-8d2f-3a5b7c9d1e3f",
      "position": {
        "x_cm": 5,
        "y_cm": 4,
        "width_cm": 20,
        "rotation_deg": 0,
        "flipped": false
      },
      "size": {
        "width_px": 2362,
        "height_px": 2362,
        "width_cm": 20,
        "height_cm": 20
      },
      "trimmed": null,
      "has_original": false,
      "print_quality": {
        "dpi": 300,
        "level": "good"
      },
      "review": {
        "state": "approved",
        "reason_code": null,
        "message": null,
        "decided_at": "2026-11-22T11:02:40.507Z"
      }
    }
  ],
  "review_state": "approved",
  "photos": [
    {
      "color_id": "7a9c1e3f-5b7d-4f9a-8b3c-4d6e8f0a2b4c",
      "zone_id": "5e7a9c1b-3d5f-4b7a-9c1e-2f4a6b8c0d2e",
      "status": "ready",
      "url": "https://cdn.b7r.app/m/3f6a8b1c/photo-1.jpg"
    },
    {
      "color_id": "7a9c1e3f-5b7d-4f9a-8b3c-4d6e8f0a2b4c",
      "zone_id": "6f8b0d2c-4e6a-4c8b-8d2f-3a5b7c9d1e3f",
      "status": "ready",
      "url": "https://cdn.b7r.app/m/3f6a8b1c/photo-2.jpg"
    },
    {
      "color_id": "1c3e5a7b-9d1f-4a3c-9e5b-7f9a1c3e5b7d",
      "zone_id": "5e7a9c1b-3d5f-4b7a-9c1e-2f4a6b8c0d2e",
      "status": "ready",
      "url": "https://cdn.b7r.app/m/3f6a8b1c/photo-3.jpg"
    },
    {
      "color_id": "1c3e5a7b-9d1f-4a3c-9e5b-7f9a1c3e5b7d",
      "zone_id": "6f8b0d2c-4e6a-4c8b-8d2f-3a5b7c9d1e3f",
      "status": "ready",
      "url": "https://cdn.b7r.app/m/3f6a8b1c/photo-4.jpg"
    }
  ],
  "created_at": "2026-11-22T10:15:02.118Z",
  "updated_at": "2026-11-22T11:02:40.507Z"
}
```

## A product with no print

To sell the base product blank, pick the option with `technique_id` `null` and `zone_ids` `[]`, send `designs: []` and leave out `technique_id`. Its colours are those with a photo of the front zone; its price must reach that option's `minimum_selling_price`. B7R makes one plain photo per colour in the background, as it makes printed ones.

> Done: the product exists with its SKUs and photos. Next: [Place an order](https://docs.b7r.app/place-an-order).
