> ## Documentation Index
> Fetch the complete documentation index at: https://docs.acreblitz.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Use the V2 API at https://esa.acreblitz.com/api/v2. V1 is deprecated and is no longer documented.
> Read /llms.txt for all supported endpoints. For bulk integration, read bulk submission, status, results, and /v2/errors before constructing requests.

# Submit bulk checks

> Submit multiple applications with shared or per-field products and crops

Submit one job containing 1–100 field applications. Put values shared by your fields at the top of the request. Inside `fields[]`, supply each field's identity and boundary, plus any values that differ for that field.

**A field value replaces the matching top-level value for that field only.** Other fields still use the top-level default. Products and crops follow the same rule: arrays replace the entire array; they never merge.

## Request

**Idempotency-Key** `string`

Optional, strongly recommended. One to 200 characters. Scoped to your provider/account; reuse it only with identical effective inputs.

**provider\_id** `string` *required*

Your assigned provider, matching the key.

**account\_id** `string` *required*

Your account identifier.

**provider\_group\_id** `string` *required*

Required nonempty work-order/job identifier, up to 200 characters. Shared by every field.

**fields** `object[]` *required*

One to 100 field entries. Each requires `application_id`, `field_name`, and `field_boundary`; `provider_field_id` is optional.

**products** `object[]`

Default products; each field must have effective products.

**crop** `string[]`

Default crops; each field must have an effective crop array. An explicit empty array is valid.

**pest** `string[]`

Default pests, unless replaced by the field or product.

**application\_date** `string`

Default `YYYY-MM-DD` application date.

**application\_method** `string`

Default supported method.

**gpa** `number`

Default positive spray gallons per acre; nullable.

**droplet\_size** `string`

Default supported droplet category/code; nullable.

**boom\_height** `string`

Default `low` or `high`; nullable.

**user\_email** `string`

Default valid email; nullable.

**include\_geometry** `boolean` (default: false)

Top-level response option applied to every field.

**include\_soil\_analysis** `boolean` (default: false)

Top-level response option applied to every field.

**include\_mitigations** `boolean` (default: false)

Top-level response option applied to every field.

**buffer\_distance\_miles** `number` (default: 1)

Top-level PULA search buffer, clamped to 0–10 miles.

## Where each value belongs

| Location | Properties | Rule |
| - | - | - |
| Top level only | `provider_id`, `account_id`, `provider_group_id` | Required once; apply to every field. You cannot mix providers, accounts, or groups within one job. |
| Top level only | `include_geometry`, `include_soil_analysis`, `include_mitigations`, `buffer_distance_miles` | Apply to every field. Defaults are `false`, `false`, `false`, and `1`. |
| Inside each field only | `application_id`, `field_name`, `field_boundary` | Required in every field entry. |
| Inside each field only | `provider_field_id` | Optional. Omitted or `null` uses that field's `application_id`. |
| Top level and/or inside a field | `products`, `crop`, `application_date`, `application_method` | Each field needs a value, either inherited or supplied on that field. |
| Top level and/or inside a field | `pest` | Default pests for products without their own `pest` list. |
| Top level and/or inside a field | `gpa`, `droplet_size`, `boom_height`, `user_email` | Optional. A field can inherit, replace, or explicitly clear a default with `null`. |

You may omit all shared application settings and specify them separately in every field. You may also mix shared defaults and overrides in the same request. See [single-check inputs](https://docs.acreblitz.com/v2/api-reference/endpoint/esa-check.md) for allowed methods, droplet sizes, product properties, and field boundary limits.

## How defaults and overrides resolve

For each field, the API starts with the top-level defaults, replaces each property explicitly supplied by that field, then validates the resulting application independently.

| What you send inside a field | Effective value for that field |
| - | - |
| Omit `products` | Use the complete top-level `products` array. |
| Supply `products` | Use only that field's complete product array. Products are not matched or merged by EPA number or array position. |
| Omit `crop` | Use the top-level crop array. |
| Supply `crop: ["Soybeans"]` | Replace every top-level crop with `Soybeans`. |
| Supply `crop: []` | Use an empty crop array; do not inherit. This is valid input. |
| Omit `gpa` | Use the top-level GPA, if present. |
| Supply `gpa: 20` | Use 20 for this field. |
| Supply `gpa: null` | Clear this field's GPA even if the top level specifies one. The same rule applies to droplet size, boom height, and email. |
| Supply `products: []`, `pest: []`, or `crop: null` | Reject the entire submission with `422 INVALID_REQUEST`. |

**To change just one product's rate, send the full desired product array for that field**, including the other products you want retained. Each product needs its required properties (`product_name`, `rate`, and `rate_unit`); a partial product such as `{ "rate": 28 }` is invalid.

### Pest precedence

Pests have one additional level of precedence: **product `pest` → field `pest` → top-level `pest`**. Product pest lists stay attached to their product even when the product array is inherited. A field pest override affects only products without their own pest list. Every product must end up with a nonempty pest list.

### Worked example

The complete cURL request on this page submits two fields using Liberty Ultra with `Broadcast-Ground`:

North supplies no application-setting overrides, so every shared default applies. South supplies a complete replacement product array, replaces `crop` and `gpa`, and clears `boom_height` with `null`. South still inherits the date, method, pests, and droplet size.

| Setting | Shared default and North result | South result |
| - | - | - |
| Products | Liberty Ultra, 32 fl oz/ac | Liberty Ultra, 28 fl oz/ac (replaced) |
| Crop | `Corn` | `Soybeans` (replaced) |
| Pests | `Waterhemp` | `Waterhemp` (inherited) |
| Method | `Broadcast-Ground` | `Broadcast-Ground` (inherited) |
| GPA | `15` | `20` (replaced) |
| Droplet size | `VC` | `VC` (inherited) |
| Boom height | `low` | Unspecified (`null` clears the default) |

Clearing an application setting does not establish that it is irrelevant to compliance. Missing information can leave the assessment `indeterminate`.

## Validation before acceptance

All fields are validated before the API accepts a job. **One invalid field rejects the entire submission with `422 INVALID_REQUEST`; no job is created.** This differs from processing failures after acceptance, where some items can succeed and others fail.

* Unknown top-level and field properties are rejected. For example, `fields[0].include_geometry` is invalid because that option belongs at the top level.
* Supplied defaults must themselves be valid, even if every field overrides them. Omit an unused default instead of sending an invalid placeholder.
* `application_id` values and effective `provider_field_id` values must be unique within the submission.
* Each field boundary may contain at most 5,000 coordinate positions across all its rings. The total request body limit is 5 MB.

For example, a duplicate application ID on the second field returns:

```json theme={null}
{
  "success": false,
  "error": {
    "code": "INVALID_REQUEST",
    "details": [{
      "code": "custom",
      "path": ["fields", 1, "application_id"],
      "message": "Duplicate application_id in bulk submission"
    }]
  }
}
```

Issue paths use zero-based array indexes, so `fields[1]` is the second field. Correct the indicated input and resubmit. See [validation examples](https://docs.acreblitz.com/v2/errors.md#validation-examples) for missing group IDs, pests, and unknown properties.

## Accepted response and polling

The response is **202 Accepted**, including on an idempotent replay or immediate completion. It includes `Location` (the status path) and `Cache-Control: no-store`. Responses with `status: "queued"` or `"processing"` also include `Retry-After: 5`. Both URLs are relative to `https://esa.acreblitz.com`.

When the returned status is `queued` or `processing`, poll [job status](https://docs.acreblitz.com/v2/api-reference/endpoint/bulk-status.md) and fetch [results](https://docs.acreblitz.com/v2/api-reference/endpoint/bulk-results.md). A job with some failed items can finish as `completed_with_errors`. A succeeded item can still contain an indeterminate or unmet compliance assessment.

### Immediate completion when no products require ESA

Before enqueueing a new job, the API collects the unique products used across **all fields**, including inherited top-level products and field-specific replacements, and resolves them together using the existing product cache. Rates, crops, and pests remain specific to each field. A top-level product that every field replaces is unused and does not affect the check.

When every product is resolved and none requires ESA, the job completes in the submission response:

* `status` is `completed` and top-level `esa_required` is `false`.
* `items` contains all per-field results in submission order, using the same item structure as the results endpoint. Each item has `status: "succeeded"`, `attempts: 0`, and `result.compliance.status: "not_applicable"`.
* No processing is queued, and no soil, PULA, or drift calculations or field/application creation occur. Bulk job and result records remain available for the normal 30-day retention period.
* Because no PULA lookup runs, every product's `pulas` is empty and `summary` counts are zero. Jobs that require ESA return each product's PULA limitations in the item `result`; see [bulk results](https://docs.acreblitz.com/v2/api-reference/endpoint/bulk-results.md).
* You can consume `items` immediately without polling. The status/results URLs remain available, and an identical idempotent replay returns the same stored results.

If any used product requires ESA, is unresolved, or has unknown ESA status, the request follows the queued workflow. A reference lookup failure returns an HTTP error without creating a new job. Unknown products are never treated as confirmed no-ESA products. Validation of every field still happens before acceptance.

Example immediately completed response for a one-field submission:

```json theme={null}
{
  "success": true,
  "job_id": "019953f8-8c00-7000-8000-000000000001",
  "status": "completed",
  "total_items": 1,
  "replayed": false,
  "esa_required": false,
  "status_url": "/api/v2/esa-check/bulk/019953f8-8c00-7000-8000-000000000001",
  "results_url": "/api/v2/esa-check/bulk/019953f8-8c00-7000-8000-000000000001/results",
  "items": [
    {
      "item_index": 0,
      "application_id": "north-application-2026-10-05",
      "provider_field_id": "north-field",
      "status": "succeeded",
      "attempts": 0,
      "error": null,
      "started_at": "2026-10-02T14:00:00.000Z",
      "completed_at": "2026-10-02T14:00:00.000Z",
      "result": {
        "success": true,
        "esa_required": false,
        "provider_id": "your-provider",
        "account_id": "your-account",
        "products": [{ "epa_number": "66222-36", "product_name": "Atrazine 4L", "pest": ["Waterhemp"], "product_status": "Active", "esa_required": false, "pulas": [] }],
        "summary": { "total_pulas": 0, "total_limitations": 0, "products_checked": 1, "products_with_limitations": 0 },
        "compliance": {
          "version": 1,
          "scope": "requirements_and_gaps",
          "calculated_at": "2026-10-02T14:00:00.000Z",
          "processing_complete": true,
          "status": "not_applicable",
          "runoff": [],
          "drift": { "status": "not_applicable", "requirements": null, "reductions": [] },
          "soil": { "status": "not_applicable" },
          "issues": []
        }
      }
    }
  ]
}
```

## Idempotency and retention

The same key and effective input return the existing job with `replayed: true`. Changing inputs returns `409 IDEMPOTENCY_CONFLICT`. Without the header, each accepted submission creates a new job. Jobs and replay keys expire 30 days after completion; after expiration, the same key can create a new job.

Split larger submissions into jobs of at most 100 fields. They may share `provider_group_id`, but each job needs its own idempotency key. A full processing backlog returns `429 BULK_BACKLOG_EXCEEDED` for jobs that need queue processing. Confirmed no-ESA jobs can still complete immediately. Request rate limits apply to both paths.

```bash cURL theme={null}
curl --request POST 'https://esa.acreblitz.com/api/v2/esa-check/bulk' \
  --header "X-API-Key: $ACREBLITZ_API_KEY" \
  --header 'Idempotency-Key: work-order-42-first-pass' \
  --header 'Content-Type: application/json' \
  --data '{
  "provider_id": "your-provider",
  "account_id": "your-account",
  "provider_group_id": "work-order-42",
  "application_method": "Broadcast-Ground",
  "application_date": "2026-10-05",
  "products": [
    {
      "epa_number": "7969-500",
      "product_name": "Liberty Ultra",
      "rate": 32,
      "rate_unit": "fl oz/ac",
      "rate_unit_state": "L"
    }
  ],
  "crop": [
    "Corn"
  ],
  "pest": [
    "Waterhemp"
  ],
  "gpa": 15,
  "droplet_size": "VC",
  "boom_height": "low",
  "include_soil_analysis": true,
  "include_mitigations": true,
  "fields": [
    {
      "application_id": "north-application-2026-10-05",
      "provider_field_id": "north-field",
      "field_name": "North field",
      "field_boundary": {
        "type": "Feature",
        "properties": {},
        "geometry": {
          "type": "Polygon",
          "coordinates": [
            [
              [
                -95.404,
                43.102
              ],
              [
                -95.392,
                43.102
              ],
              [
                -95.392,
                43.11
              ],
              [
                -95.404,
                43.11
              ],
              [
                -95.404,
                43.102
              ]
            ]
          ]
        }
      }
    },
    {
      "application_id": "south-application-2026-10-05",
      "provider_field_id": "south-field",
      "field_name": "South field",
      "field_boundary": {
        "type": "Feature",
        "properties": {},
        "geometry": {
          "type": "Polygon",
          "coordinates": [
            [
              [
                -95.404,
                43.092
              ],
              [
                -95.392,
                43.092
              ],
              [
                -95.392,
                43.1
              ],
              [
                -95.404,
                43.1
              ],
              [
                -95.404,
                43.092
              ]
            ]
          ]
        }
      },
      "crop": [
        "Soybeans"
      ],
      "gpa": 20,
      "boom_height": null,
      "products": [
        {
          "epa_number": "7969-500",
          "product_name": "Liberty Ultra",
          "rate": 28,
          "rate_unit": "fl oz/ac",
          "rate_unit_state": "L"
        }
      ]
    }
  ]
}'
```

```json 202 theme={null}
{
  "success": true,
  "job_id": "019953f8-8c00-7000-8000-000000000001",
  "status": "queued",
  "total_items": 2,
  "replayed": false,
  "status_url": "/api/v2/esa-check/bulk/019953f8-8c00-7000-8000-000000000001",
  "results_url": "/api/v2/esa-check/bulk/019953f8-8c00-7000-8000-000000000001/results"
}
```

## Errors

Submission-specific errors are `409 IDEMPOTENCY_CONFLICT` and `429 BULK_BACKLOG_EXCEEDED`. Invalid defaults, overrides, duplicate identities, group IDs, or idempotency headers return `422 INVALID_REQUEST`. No job is created for a validation error.

All routes can also return [authentication, validation, rate-limit, and dependency errors](https://docs.acreblitz.com/v2/errors.md#http-error-catalog). Use the [error catalog and examples](https://docs.acreblitz.com/v2/errors.md) to choose a retry or correction. Keep `X-Request-ID` when present.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.