AgriWebb API
GraphQL/Inputs

PurchaseAnimalInput

Per-animal details within a purchase record.

input PurchaseAnimalInput {
  animalIdentity: AnimalIdentityInput!
  tagType: AnimalTagType
  characteristics: AnimalCharacteristicsInput!
  state: AnimalStateInput
  parentage: [AnimalParentageEntryInput!]
  price: MonetaryAmountInput
}

Fields

PurchaseAnimalInput.animalIdentity ● AnimalIdentityInput!
non-null
input

Identity of the animal being purchased. vid or eid required for new animals.

PurchaseAnimalInput.tagType ● AnimalTagType
enum

The type of physical tag to create for this animal. When omitted the type is inferred from the provided identifiers (eid-only → EID, vid-only → VID, eid+vid → EID_AND_VID). When specified, the identifier values are validated against the format expected by that tag type.

PurchaseAnimalInput.characteristics ● AnimalCharacteristicsInput!
non-null
input

Required animal characteristics for creation.

PurchaseAnimalInput.state ● AnimalStateInput
input

Optional animal state at time of purchase.

PurchaseAnimalInput.parentage ● [AnimalParentageEntryInput!]
list
input

Optional parentage entries.

PurchaseAnimalInput.price ● MonetaryAmountInput
input

Per-animal purchase price. Maps to the perHeadIndividuallyPriced outgoing in the domain.

Member Of

PurchaseRecordInput

input

On this page

FieldsPurchaseAnimalInput.animalIdentity ● AnimalIdentityInput!
non-null
input
PurchaseAnimalInput.tagType ● AnimalTagType
enum
PurchaseAnimalInput.characteristics ● AnimalCharacteristicsInput!
non-null
input
PurchaseAnimalInput.state ● AnimalStateInput
input
PurchaseAnimalInput.parentage ● [AnimalParentageEntryInput!]
list
input
PurchaseAnimalInput.price ● MonetaryAmountInput
input
Member Of