Order

Order for a product

Implements

Fields

analytics ([Analytic!]!)

The set of analytics that comprise the product that was ordered.

completed_at (ISO8601DateTime)

Date and time when the order was completed, in ISO 8601 format.

content_hash (String!)

The current content hash for this item.

created_at (ISO8601DateTime!)

The timestamp of when the item was created in the system.

created_by (User!)

The user who created this item.

deal (Deal)

The deal for the order, if any.

external_id (ExternalID)

The unique identifier of this order in a customer's system.

field (Field)

The field associated with this order.

missing_settings (Boolean!)
Deprecation notice

Replaced with needs_settings

Is this order missing the settings necessary to begin processing an order?

needs_settings (Boolean!)

Does this order need settings that are required to begin processing?

organization (Organization!)

The organization in which this order was placed.

organization_sentera_id (ID)
Deprecation notice

Use organization instead

The ID of the organization in which this order was placed.

product (Product!)

The product that this order will fulfill.

product_variant_key (ProductVariantKey)

The specific variant of the product that was ordered.

sentera_id (ID!)

A system-generated key identifying a specific instance of an order.

settings (ProductSettings)

The product settings for this order.

status (OrderStatus!)

The status of the order.

survey (Survey)

The survey containing the images to fulfill this order.

task (FlightTask)

A task to capture the images for this order.

updated_at (ISO8601DateTime!)

The timestamp of when the item was last updated in the system.

updated_by (User)

The user who last updated this item.

Examples

Query for an order

Retrieve an order.

Try this example in GraphiQL
query Order {
  order(sentera_id: "dv4mzop_OR_SHORT1_CV_test_1ba88e5_170907_220547") {
  organization {
    sentera_id
  }
  settings {
    row_fill
    row_spacing {
      value
      unit
    }
    crop_type
    male_row_count
  }
  task {
    status
  }
  }
}

{
  "data": {
  "order": {
    "organization": {
      "sentera_id": "dv4mzop_OR_SHORT1_CV_test_1ba88e5_170907_220547"
    },
    "settings": {
      "row_fill": null,
      "row_spacing": {
        "value": 12,
        "unit": "INCHES"
      },
      "crop_type": null,
      "male_row_count": null,
      "male_seed_rate": null
    },
    "task": {
      "status": "OPEN"
    }
  }
  }
}