{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nmi/json-schema/nmi-product-response-v5-schema.json",
  "title": "Product Response V5",
  "description": "Product response matching ProductRestSerializer structure",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nmi-products-api-openapi.yml#/components/schemas/ProductResponseV5",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "product"
      ],
      "description": "Resource type identifier"
    },
    "id": {
      "type": "string",
      "description": "Product ID (transaction_id)"
    },
    "product_sku": {
      "type": "string",
      "description": "Product SKU"
    },
    "product_description": {
      "type": "string",
      "description": "Product description"
    },
    "product_category": {
      "type": "string",
      "description": "Product category"
    },
    "product_commodity_code": {
      "type": "string",
      "description": "Product commodity code"
    },
    "product_unit_of_measure": {
      "type": "string",
      "description": "Product unit of measure"
    },
    "product_cost": {
      "type": "string",
      "description": "Product cost"
    },
    "product_currency": {
      "type": "string",
      "description": "Product currency (ISO 4217)"
    },
    "product_tax_amount": {
      "type": "string",
      "description": "Product tax amount"
    },
    "product_discount_amount": {
      "type": "string",
      "description": "Product discount amount"
    },
    "product_image_name": {
      "type": "string",
      "description": "Product image name"
    },
    "product_image_url": {
      "type": "string",
      "description": "Product image URL"
    }
  },
  "required": [
    "object",
    "id"
  ]
}