Skip to main content

LabTestItem

itemIdstringrequired

Possible values: <= 255 characters

itemNamestringnullable

Possible values: <= 255 characters

itemDescriptionstringnullable

Possible values: <= 255 characters

styleIdstringrequired

Possible values: <= 255 characters

styleNamestringnullable

Possible values: <= 255 characters

colorstringnullable

Possible values: <= 255 characters

Default value:
sizestringnullable

Possible values: <= 255 characters

originCountrystring[]nullable

Possible values: Value must match regular expression ^[A-Z]{2}$

sampleSizeintegernullable

Sample size. Used only when samples is omitted and the Product has no stored samples; otherwise it is derived from the sample count.

unitstringnullable

Possible values: <= 255 characters

samples object[]

Samples of this Product, each with its own details. Required when the Lab Test Form includes the Sample Information component.

Send the complete list, not a patch. Samples are matched by sampleName, and any stored sample missing from the list is deleted. sampleSize then becomes the sample count and unit the samples' shared unit, overriding both sent on the Product.

sampleName must be unique within the Product, and all samples must share one unit.

  • Array [
  • sampleNamestringrequired

    Sample name. Must not be blank (surrounding whitespace is trimmed) and must be unique within the Product.

    Possible values: <= 255 characters

    Example: Lot A
    lotBatchNumberstring

    Lot / batch number

    Possible values: <= 255 characters

    Example: LB-2026-001
    colorstring

    Color

    Possible values: <= 255 characters

    Example: Navy
    sampleAmountnumbernullable

    Sample amount

    Possible values: >= 0

    Example: 2
    unitstring

    Unit of the sample amount. All samples of a Product must share the same unit.

    Possible values: <= 255 characters

    Example: pcs
    sampleDescriptionstring

    Sample description

    Example: Front panel swatch
  • ]
  • LabTestItem
    {
    "itemId": "string",
    "itemName": "string",
    "itemDescription": "string",
    "styleId": "string",
    "styleName": "string",
    "color": "",
    "size": "string",
    "originCountry": [
    "string"
    ],
    "sampleSize": 0,
    "unit": "string",
    "samples": [
    {
    "sampleName": "Lot A",
    "lotBatchNumber": "LB-2026-001",
    "color": "Navy",
    "sampleAmount": 2,
    "unit": "pcs",
    "sampleDescription": "Front panel swatch"
    }
    ]
    }