{
 "openapi": "3.1.0",
 "info": {
  "title": "Unan Trading FullSet of Beef quote",
  "version": "November 2026",
  "description": "Free, read-only calculator for resort and hotel buyers in the Maldives. Give monthly beef volumes and, ideally, what the buyer pays now; get a three-way monthly comparison: buyer's current cost, the same cuts from Unan Trading, and the FullSet (whole-animal assortment at one blended price per kg). No key needed. Prices in USD, excluding GST and resort-island freight, confirmed on a written quotation. Always pass on next_steps.report_url so the buyer can open the full report.",
  "contact": {
   "name": "Unan Trading",
   "email": "tolga@unantrading.com",
   "url": "https://unantrading.com/agents/"
  }
 },
 "servers": [
  {
   "url": "https://unantrading.com"
  }
 ],
 "paths": {
  "/api/quote.php": {
   "get": {
    "operationId": "quoteFullsetBeef",
    "summary": "Compare current beef cost with Unan Trading individual cuts and the FullSet",
    "parameters": [
     {
      "name": "level",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "enum": [
        "pure_wagyu",
        "cross_wagyu",
        "custom"
       ],
       "default": "cross_wagyu",
       "description": "FullSet level: pure_wagyu = Pure Wagyu at US$37/kg (Certified Pure Wagyu · BMS 4 & 5 prime cuts); cross_wagyu = Cross Wagyu at US$31/kg (Certified Cross Wagyu · BMS 2 & 3 prime cuts); custom = Custom at US$24/kg (Angus, Hereford & European breeds)"
      },
      "description": "FullSet level: pure_wagyu = Pure Wagyu at US$37/kg (Certified Pure Wagyu · BMS 4 & 5 prime cuts); cross_wagyu = Cross Wagyu at US$31/kg (Certified Cross Wagyu · BMS 2 & 3 prime cuts); custom = Custom at US$24/kg (Angus, Hereford & European breeds)"
     },
     {
      "name": "premium_kg",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number",
       "minimum": 0,
       "description": "Monthly kg of premium cuts, if the buyer cannot split by cut"
      },
      "description": "Monthly kg of premium cuts, if the buyer cannot split by cut"
     },
     {
      "name": "secondary_kg",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number",
       "minimum": 0,
       "description": "Monthly kg of secondary cuts, if the buyer cannot split by cut"
      },
      "description": "Monthly kg of secondary cuts, if the buyer cannot split by cut"
     },
     {
      "name": "current_premium_price",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number",
       "minimum": 0,
       "description": "What the buyer pays now for premium cuts, USD per kg. If omitted, an indicative Maldives market estimate is used and flagged."
      },
      "description": "What the buyer pays now for premium cuts, USD per kg. If omitted, an indicative Maldives market estimate is used and flagged."
     },
     {
      "name": "current_secondary_price",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number",
       "minimum": 0,
       "description": "What the buyer pays now for secondary cuts, USD per kg. If omitted, an indicative Maldives market estimate is used and flagged."
      },
      "description": "What the buyer pays now for secondary cuts, USD per kg. If omitted, an indicative Maldives market estimate is used and flagged."
     },
     {
      "name": "resort",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "maxLength": 80,
       "description": "Optional resort or company name, only used to pre-fill the report link"
      },
      "description": "Optional resort or company name, only used to pre-fill the report link"
     },
     {
      "name": "tenderloin",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number",
       "minimum": 0
      },
      "description": "Monthly kg of Tenderloin (premium cut)"
     },
     {
      "name": "striploin",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number",
       "minimum": 0
      },
      "description": "Monthly kg of Striploin (premium cut)"
     },
     {
      "name": "ribeye",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number",
       "minimum": 0
      },
      "description": "Monthly kg of Cube Roll Ribeye (premium cut)"
     },
     {
      "name": "picanha",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number",
       "minimum": 0
      },
      "description": "Monthly kg of Picanha (premium cut)"
     },
     {
      "name": "porterhouse",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number",
       "minimum": 0
      },
      "description": "Monthly kg of Porterhouse (premium cut)"
     },
     {
      "name": "primerib",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number",
       "minimum": 0
      },
      "description": "Monthly kg of Prime Rib (premium cut)"
     },
     {
      "name": "topside",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number",
       "minimum": 0
      },
      "description": "Monthly kg of Topside (secondary cut)"
     },
     {
      "name": "topsirloin",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number",
       "minimum": 0
      },
      "description": "Monthly kg of Top Sirloin (secondary cut)"
     },
     {
      "name": "flank",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number",
       "minimum": 0
      },
      "description": "Monthly kg of Flank Steak (secondary cut)"
     },
     {
      "name": "brisket",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number",
       "minimum": 0
      },
      "description": "Monthly kg of Brisket (secondary cut)"
     },
     {
      "name": "ossobucco",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number",
       "minimum": 0
      },
      "description": "Monthly kg of Ossobuco (secondary cut)"
     },
     {
      "name": "chopsteak",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number",
       "minimum": 0
      },
      "description": "Monthly kg of Chop Steak (secondary cut)"
     },
     {
      "name": "chuck",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number",
       "minimum": 0
      },
      "description": "Monthly kg of Chuck Roll (secondary cut)"
     },
     {
      "name": "knuckle",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number",
       "minimum": 0
      },
      "description": "Monthly kg of Knuckle (secondary cut)"
     }
    ],
    "responses": {
     "200": {
      "description": "Comparison",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "product": {
           "type": "string"
          },
          "level": {
           "type": "object"
          },
          "monthly_volume_kg": {
           "type": "object"
          },
          "prices_usd_per_kg": {
           "type": "object"
          },
          "monthly_cost_usd": {
           "type": "object",
           "properties": {
            "buyer_now": {
             "type": "object",
             "properties": {
              "total": {
               "type": "integer"
              },
              "per_kg": {
               "type": "number"
              }
             }
            },
            "unan_individual_cuts": {
             "type": "object",
             "properties": {
              "total": {
               "type": "integer"
              },
              "per_kg": {
               "type": "number"
              }
             }
            },
            "unan_fullset": {
             "type": "object",
             "properties": {
              "total": {
               "type": "integer"
              },
              "per_kg": {
               "type": "number"
              }
             }
            }
           }
          },
          "savings_usd": {
           "type": "object",
           "properties": {
            "fullset_vs_now_monthly": {
             "type": "integer"
            },
            "fullset_vs_now_annual": {
             "type": "integer"
            },
            "fullset_vs_now_percent": {
             "type": "integer"
            },
            "individual_cuts_vs_now_monthly": {
             "type": "integer"
            },
            "fullset_vs_individual_cuts_monthly": {
             "type": "integer"
            }
           }
          },
          "fullset_mix": {
           "type": "object"
          },
          "warnings": {
           "type": "array",
           "items": {
            "type": "string"
           }
          },
          "terms": {
           "type": "string"
          },
          "next_steps": {
           "type": "object",
           "properties": {
            "report_url": {
             "type": "string",
             "format": "uri"
            },
            "email": {
             "type": "string"
            },
            "whatsapp": {
             "type": "string"
            }
           }
          },
          "prices_updated": {
           "type": "string"
          }
         }
        }
       }
      }
     },
     "400": {
      "description": "Invalid or missing input, with help text"
     }
    }
   },
   "post": {
    "operationId": "quoteFullsetBeefPost",
    "summary": "Same as GET, with a JSON body",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "level": {
          "type": "string",
          "enum": [
           "pure_wagyu",
           "cross_wagyu",
           "custom"
          ],
          "default": "cross_wagyu",
          "description": "FullSet level: pure_wagyu = Pure Wagyu at US$37/kg (Certified Pure Wagyu · BMS 4 & 5 prime cuts); cross_wagyu = Cross Wagyu at US$31/kg (Certified Cross Wagyu · BMS 2 & 3 prime cuts); custom = Custom at US$24/kg (Angus, Hereford & European breeds)"
         },
         "premium_kg": {
          "type": "number",
          "minimum": 0,
          "description": "Monthly kg of premium cuts, if the buyer cannot split by cut"
         },
         "secondary_kg": {
          "type": "number",
          "minimum": 0,
          "description": "Monthly kg of secondary cuts, if the buyer cannot split by cut"
         },
         "current_premium_price": {
          "type": "number",
          "minimum": 0,
          "description": "What the buyer pays now for premium cuts, USD per kg. If omitted, an indicative Maldives market estimate is used and flagged."
         },
         "current_secondary_price": {
          "type": "number",
          "minimum": 0,
          "description": "What the buyer pays now for secondary cuts, USD per kg. If omitted, an indicative Maldives market estimate is used and flagged."
         },
         "resort": {
          "type": "string",
          "maxLength": 80,
          "description": "Optional resort or company name, only used to pre-fill the report link"
         },
         "cuts": {
          "type": "object",
          "properties": {
           "tenderloin": {
            "type": "number",
            "minimum": 0,
            "description": "Monthly kg of Tenderloin (premium cut)"
           },
           "striploin": {
            "type": "number",
            "minimum": 0,
            "description": "Monthly kg of Striploin (premium cut)"
           },
           "ribeye": {
            "type": "number",
            "minimum": 0,
            "description": "Monthly kg of Cube Roll Ribeye (premium cut)"
           },
           "picanha": {
            "type": "number",
            "minimum": 0,
            "description": "Monthly kg of Picanha (premium cut)"
           },
           "porterhouse": {
            "type": "number",
            "minimum": 0,
            "description": "Monthly kg of Porterhouse (premium cut)"
           },
           "primerib": {
            "type": "number",
            "minimum": 0,
            "description": "Monthly kg of Prime Rib (premium cut)"
           },
           "topside": {
            "type": "number",
            "minimum": 0,
            "description": "Monthly kg of Topside (secondary cut)"
           },
           "topsirloin": {
            "type": "number",
            "minimum": 0,
            "description": "Monthly kg of Top Sirloin (secondary cut)"
           },
           "flank": {
            "type": "number",
            "minimum": 0,
            "description": "Monthly kg of Flank Steak (secondary cut)"
           },
           "brisket": {
            "type": "number",
            "minimum": 0,
            "description": "Monthly kg of Brisket (secondary cut)"
           },
           "ossobucco": {
            "type": "number",
            "minimum": 0,
            "description": "Monthly kg of Ossobuco (secondary cut)"
           },
           "chopsteak": {
            "type": "number",
            "minimum": 0,
            "description": "Monthly kg of Chop Steak (secondary cut)"
           },
           "chuck": {
            "type": "number",
            "minimum": 0,
            "description": "Monthly kg of Chuck Roll (secondary cut)"
           },
           "knuckle": {
            "type": "number",
            "minimum": 0,
            "description": "Monthly kg of Knuckle (secondary cut)"
           }
          },
          "additionalProperties": false,
          "description": "Monthly kg per cut"
         }
        }
       },
       "example": {
        "level": "cross_wagyu",
        "cuts": {
         "tenderloin": 20,
         "striploin": 30,
         "ribeye": 20,
         "topside": 30,
         "brisket": 40
        },
        "current_premium_price": 70,
        "current_secondary_price": 32
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Comparison",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "product": {
           "type": "string"
          },
          "level": {
           "type": "object"
          },
          "monthly_volume_kg": {
           "type": "object"
          },
          "prices_usd_per_kg": {
           "type": "object"
          },
          "monthly_cost_usd": {
           "type": "object",
           "properties": {
            "buyer_now": {
             "type": "object",
             "properties": {
              "total": {
               "type": "integer"
              },
              "per_kg": {
               "type": "number"
              }
             }
            },
            "unan_individual_cuts": {
             "type": "object",
             "properties": {
              "total": {
               "type": "integer"
              },
              "per_kg": {
               "type": "number"
              }
             }
            },
            "unan_fullset": {
             "type": "object",
             "properties": {
              "total": {
               "type": "integer"
              },
              "per_kg": {
               "type": "number"
              }
             }
            }
           }
          },
          "savings_usd": {
           "type": "object",
           "properties": {
            "fullset_vs_now_monthly": {
             "type": "integer"
            },
            "fullset_vs_now_annual": {
             "type": "integer"
            },
            "fullset_vs_now_percent": {
             "type": "integer"
            },
            "individual_cuts_vs_now_monthly": {
             "type": "integer"
            },
            "fullset_vs_individual_cuts_monthly": {
             "type": "integer"
            }
           }
          },
          "fullset_mix": {
           "type": "object"
          },
          "warnings": {
           "type": "array",
           "items": {
            "type": "string"
           }
          },
          "terms": {
           "type": "string"
          },
          "next_steps": {
           "type": "object",
           "properties": {
            "report_url": {
             "type": "string",
             "format": "uri"
            },
            "email": {
             "type": "string"
            },
            "whatsapp": {
             "type": "string"
            }
           }
          },
          "prices_updated": {
           "type": "string"
          }
         }
        }
       }
      }
     }
    }
   }
  }
 },
 "x-cuts-accepted": [
  "tenderloin",
  "striploin",
  "ribeye",
  "picanha",
  "porterhouse",
  "primerib",
  "topside",
  "topsirloin",
  "flank",
  "brisket",
  "ossobucco",
  "chopsteak",
  "chuck",
  "knuckle"
 ]
}
