% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/classify-smartsolos.R
\name{.smartsolos_pedon_to_payload}
\alias{.smartsolos_pedon_to_payload}
\title{Convert one PedonRecord to the SmartSolosExpert request payload}
\usage{
.smartsolos_pedon_to_payload(pedon, drenagem = NULL, reference_sibcs = NULL)
}
\arguments{
\item{pedon}{A \code{\link{PedonRecord}}.}

\item{drenagem}{Optional integer 1..8 (SiBCS drainage class) or
a string in
\code{c("excessivamente drenado", ..., "muito mal drenado")}.}

\item{reference_sibcs}{Optional named list with the user's
reference SiBCS classification (\code{ordem, subordem,
gde_grupo, subgrupo}) for use with the
\code{/verification} endpoint.}
}
\description{
Builds the JSON-serialisable list expected by the
\code{POST /classification} (or \code{/verification}) endpoint.
Missing soilKey horizon attributes are sent as \code{NA} (the API
tolerates partial data and replies with \code{NULL} for taxonomic
levels that cannot be resolved).
}
\keyword{internal}
