---
title: "Create or update a batch of orders by unique property values"
method: POST
path: "/crm/objects/2026-03/orders/batch/upsert"
tags: ["Batch"]
---

# Create or update a batch of orders by unique property values

`POST /crm/objects/2026-03/orders/batch/upsert`

Create or update records identified by a unique property value as specified by the `idProperty` query param. `idProperty` query param refers to a property whose values are unique for the object.

## Request body

- CrmObjectsBatchInputSimplePublicObjectBatchInputUpsert
  - `inputs` CrmObjectsSimplePublicObjectBatchInputUpsert[], required
    - `id` string, required — The unique ID of the object.
    - `idProperty` string — The name of a property whose values are unique for this object
    - `objectWriteTraceId` string — An identifier for tracing the creation request.
    - `properties` object, required — Key value pairs representing the properties of the object.

## Response `200`

successful operation

- CrmObjectsBatchResponseSimplePublicUpsertObject — Represents the result of a batch upsert operation, including the operation’s status, timestamps, and a list of successfully created or updated objects.
  - `completedAt` string, date-time, required — The timestamp when the batch process was completed, in ISO 8601 format.
  - `links` object — An object containing relevant links related to the batch request.
  - `requestedAt` string, date-time — The timestamp when the batch process was initiated, in ISO 8601 format.
  - `results` CrmObjectsSimplePublicUpsertObject[], required
    - `archived` boolean, required — Whether the object is archived.
    - `archivedAt` string, date-time — The timestamp when the object was archived, in ISO 8601 format.
    - `createdAt` string, date-time, required — The timestamp when the object was created, in ISO 8601 format.
    - `id` string, required — The unique ID of the object.
    - `new` boolean, required — Whether the property is new.
    - `objectWriteTraceId` string — An identifier used for tracing the write request for the object.
    - `properties` object, required — Key value pairs representing the properties of the object.
    - `propertiesWithHistory` object — Key-value pairs representing the properties of the object along with their history.
    - `updatedAt` string, date-time, required — The timestamp when the object was last updated, in ISO 8601 format.
    - `url` string — The URL associated with the object.
  - `startedAt` string, date-time, required — The timestamp when the batch process began execution, in ISO 8601 format.
  - `status` 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING', required — The status of the batch processing request. Can be: "PENDING", "PROCESSING", "CANCELED", or "COMPLETE".

## Other responses

- `207` — multiple statuses
- `default` — An error occurred.

---

[API](https://skmtc.net/hubspot/apis/hubspot-api-specification.md) · [All operations](https://skmtc.net/hubspot/apis/hubspot-api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hubspot/hubspot-api-specification/versions/f9c7181056c5/schema)
