pfIcarFeedTransactionResource
Description
An inventory transaction resource for a feed product.
The pfIcarFeedTransactionResource schema inherits from icarFeedTransactionResource.
Properties
Name | Description | Required | Type |
---|---|---|---|
Product | The feed product in this transaction. | Yes | icarFeedReferenceType |
TransactionKind | Identifies the transaction kind. | Yes | icarInventoryTransactionKindType |
Quantity | The overall volume, weight or count of the product in the transaction in the units defined. | Yes | Number |
Units | The units of the quantity specified. Where applicable it is recommended that uncefact mass and volume units are used. | Yes | string |
SupplierName | The supplier of the product in this transaction. This is particularly relevant if the transaction is a receipt | No | string |
ExpiryDate | The expiry date of the product supplied in the transaction. | No | date-time |
TotalCost | Total cost applied to this transaction | No | Number |
Currency | The currency of the cost expressed using the ISO 4217 3-character code such as AUD, GBP, USD, NZD. | No | string |
PackSize | The volume or weight of the product in a pack in the units defined. Especially relevant for Vet Medicines. | No | Number |
NumberOfPacks | The number of packs of the product in the transaction. Especially relevant for Vet Medicines. Could be a decimal number for a part-pack. | No | Number |
Id | Unique identifier in the source system for this event. | No | string |
EventDateTime | RFC3339 UTC date and time (see https://ijmacd.github.io/rfc3339-iso8601/). | No | date-time |
TraitLabel | If the event represents a formal trait, identifies the recording system and trait. | No | icarIdentifierType |
Responsible | Use if an observation is manually recorded, or an event is carried out or authorised by a person. SHOULD be a person object. | No | string |
ContemporaryGroup | For manually recorded events, record any contemporary group code that would affect statistical analysis. | No | string |
Remark | A comment or remark field for additional user-specified information about the event. | No | string |
Self | Uniform resource identifier (URI) of the resource (rel=self). | No | string |
Meta | Meta-data for the resource. Mandatory if you wish to support synchronisation. | No | icarMetaDataType |
Location | Unique location scheme and identifier combination. | No | icarIdentifierType |
Examples
Example 1
{
"resourceType": "/inventory/feed-transaction",
"id": "d7516736-2370-46b5-aff5-823fa8447ebe",
"@self": "https://api.purefarming.com/data/inventory/feed-transaction/9033f08c-79c6-45a2-8267-3f6749117ed9",
"location": {
"scheme": "nz.nait.pica-location",
"id": "12345"
},
"meta": {
"source": "nz.co.kjhfarmsupplies",
"sourceId": "08c35256-388a-4b31-9f70-aee5a3c4585a",
"modified": "2023-04-10T09:00:00Z",
"created": "2023-04-10T09:00:00Z",
"isDeleted": false,
"creator": "don.wilson@kjhfarmsupplies.co.nz",
"validFrom": "2023-04-10T09:00:00Z",
"validTo": "2024-02-10T09:00:00Z"
},
"eventDateTime": "2023-03-28T11:00:00Z",
"responsible": "Sally Davis",
"remark": "Stocktake March 2023",
"transactionKind": "StockTake",
"quantity": 60,
"units": "KGM",
"supplierName": "KJH Farm Supplies Ltd",
"expiryDate": "2023-03-28T08:00:00Z",
"packSize": 20,
"numberOfPacks": 3,
"product": {
"identifier": {
"scheme": "nz.co.abcstockfoods",
"id": "PF1234"
},
"href": "https://www.abcstockfoods.co.nz/products/specifications/PF1234",
"identifiers": [
{
"scheme": "nz.co.kjhfarmsupplies.product",
"id": "KJ472"
}
],
"family": "Animal Feeds",
"category": "Additives",
"name": "Hi-Gain Calf Pellets",
"gtin": "012345678900",
"unspc": "10121500"
}
}