producer_token |
string |
no |
|
Producer scope token (GUID string). `producer_token` may be null or omitted when not specified: the authenticated user's session supplies it from the JWT `custom:producer_token` claim when that claim is present (typical for a signed-in producer). Admins must pass the producer GUID from chat context when acting on behalf of a producer. Omit this argument or send JSON null for autofill or when there is no producer scope; do not send an empty string (not a valid GUID and can cause parse errors). |
agent_token |
string |
no |
|
Agent scope token (GUID string). Optional when the signed-in user is an agent: the server fills it from the JWT custom:agent_token claim if you omit it. Omit or JSON null when unused; do not send an empty string. |
budget_id |
string |
no |
"" |
**Enterprise Budget** id (GUID) — the year-level budget that contains all counties and crops. Returned as `id` from `Budget_EnterpriseBudget_Search`; pass it here as `budget_id` to scope a Cost of Production search or to anchor a new Cost of Production row. |
state_name |
UsStateName? |
no |
|
Full US state name (e.g. "Texas", "Illinois"). The C# enum constrains the schema to the supported set. |
county_name |
string |
no |
|
County name within the selected state (e.g. "Carson", "McLean"). Max 30 characters. The valid set depends on the chosen state, so the schema does not enumerate counties; pick a real county for the state and the proc will reject unknowns. |
commodity_name |
DatanacCommodityName? |
no |
|
Commodity name (e.g. Corn, Soybeans, Wheat). The C# enum constrains the schema to the supported set. |
type_name |
DatanacTypeName? |
no |
|
Commodity type (e.g. Grain, Forage, Yellow). The C# enum constrains the schema to the supported set. |
practice_name |
DatanacPracticeName? |
no |
|
Practice (e.g. Irrigated, Non-Irrigated). The C# enum constrains the schema to the supported set. |
is_active |
bool |
no |
true |
Soft-delete flag. Defaults to true (live rows). Pass false to include archived rows. |
id |
string |
no |
|
Row id (GUID). For an **update**, pass the existing row's `id` from the corresponding Search tool. For an **insert**, obtain a fresh value by calling `Util_NewGuid` first — do not invent your own GUID, and do not reuse an existing row's id. |
reported_acreage |
double? |
no |
|
Reported acreage for this **Cost of Production** row. Units are acres; meaningful bounds vary by commodity, so no fixed range is enforced at the schema layer. |
yield |
double? |
no |
|
Projected or approved yield for this **Cost of Production** row. Units depend on commodity (bushels/acre, hundredweight/acre, lbs/head). Server logic forces yield = 1.0 for livestock; for crops, pass the per-acre yield. No fixed range enforced at the schema layer. |
projected_price |
double? |
no |
|
Projected price for this **Cost of Production** row, in $/unit (matching the yield unit). No fixed range enforced at the schema layer. |