---
title: "PATCH /api/orders/{id}"
method: PATCH
path: "/api/orders/{id}"
tags: ["Orders"]
---

# PATCH /api/orders/{id}

`PATCH /api/orders/{id}`

Partially update an order owned by the current company.

## Path parameters

- `id` string, required

## Request body

- object
  - `orderNumber` string
  - `orderSubType` 'STANDARD' | 'REPEAT' | 'COMMIT' | 'SAMPLE' | 'EXTRACTION_SPLIT'
  - `status` 'IN_PROGRESS' | 'IN_REVIEW' | 'COMPLETED'
  - `tags` string[]
  - `buyerCompanyId` string
  - `supplierCompanyId` string
  - `receiverCompanyId` string
  - `vendorCompanyId` string
  - `factory` string
  - `buyerFacilityProcess` string
  - `supplierFacilityProcess` string
  - `receiverFacilityProcess` string
  - `orderDate` string, date
  - `deliveryDate` string, date
  - `agreedDeliveryDate` string, date
  - `expectedShippingDate` string, date
  - `shippingDate` string, date
  - `handoverDate` string, date
  - `actualDeliveryDate` string, date
  - `shipmentReference` string
  - `internalResponsiblePersons` string[]
  - `counterpartyOrderNumberRef` string
  - `orderType` 'PURCHASE_ORDER' | 'SALES_ORDER' | 'INTERNAL_ORDER'
  - `tracingStatus` string
  - `isArchived` boolean
  - `isAuto` boolean
  - `lines` object[]
    - `orderLineNumber` string
    - `styleId` string
    - `unit` 'LITRE' | 'MILLILITRE' | 'CENTILITRE' | 'CUBIC_DECIMETRE' | 'CUBIC_METRE' | 'GALLON' | 'QUART' | 'PINT' | 'GILL' | 'FLUID_OUNCE' | 'FLUID_DRAM' | 'MINIM' | 'BUSHEL' | 'ACRE_FOOT' | 'CORD' | 'CUBIC_YARD' | 'CUBIC_FOOT' | 'CUBIC_INCH' | 'PECK' | 'METRE' | 'MILLIMETRE' | 'DECIMETRE' | 'CENTIMETRE' | 'INCH' | 'NAUTICAL_MILE' | 'MILE' | 'FURLONG' | 'ROD' | 'FATHOM' | 'YARD' | 'FOOT' | 'GRAM' | 'GRAM_PER_SQUARE_METER' | 'GRAM_PER_SQUARE_FOOT' | 'GRAM_PER_SQUARE_YARD' | 'OUNCE_PER_SQUARE_YARD' | 'MILLIGRAM' | 'KILOGRAM' | 'METRIC_TON' | 'POUNDS' | 'SHORT_TON' | 'LONG_TON' | 'HUNDREDWEIGHT' | 'SHORT_HUNDREDWEIGHT' | 'LONG_HUNDREDWEIGHT' | 'OUNCE' | 'DRAM' | 'GRAIN' | 'PENNYWEIGHT' | 'SCRUPLE' | 'STONE' | 'SQUARE_METRE' | 'SQUARE_DECIMETRE' | 'SQUARE_CENTIMETRE' | 'SQUARE_INCH' | 'SQUARE_MILE' | 'SQUARE_FEET' | 'SQUARE_ROD' | 'SQUARE_YARD' | 'ACRE' | 'PIECES' | 'PAIR' | 'PERCENTAGE' | 'DENIER' | 'JUTE' | 'ENGLISH_COUNT' | 'METRIC_COUNT' | 'WORSTED_COUNT' | 'TEX' | 'KILOWATT_HOUR' | 'MOUND'
    - `secondaryUnit` 'KILOGRAM'
    - `id` string

## Response `200`

Default Response

- object
  - `metadata` object, required
    - `success` boolean, required — True when the request succeeded.
  - `data` object, required
    - `id` string, required
    - `forCompanyId` string, required
    - `orderNumber` string, required
    - `orderType` 'PURCHASE_ORDER' | 'SALES_ORDER' | 'INTERNAL_ORDER', required
    - `orderSubType` string, required
    - `status` string, required
    - `tags` string[], required
    - `source` string, required
    - `buyerCompanyId` string, required
    - `supplierCompanyId` string, required
    - `receiverCompanyId` string, required
    - `vendorCompanyId` string, required
    - `factory` string, required
    - `buyerFacilityProcess` string, required
    - `supplierFacilityProcess` string, required
    - `receiverFacilityProcess` string, required
    - `orderDate` string, required
    - `deliveryDate` string, required
    - `agreedDeliveryDate` string, required
    - `expectedShippingDate` string, required
    - `shippingDate` string, required
    - `handoverDate` string, required
    - `actualDeliveryDate` string, required
    - `shipmentReference` string, required
    - `internalResponsiblePersons` string[], required
    - `styleProperties` object
      - `seasons` object[], required
        - `id` string, required
        - `name` string, required
      - `brands` object[], required
        - `id` string, required
        - `name` string, required
    - `counterpartyOrderNumberRef` string, required
    - `isArchived` boolean, required
    - `tracingStatus` string, required
    - `createdAt` string, required
    - `createdByUserId` string, required
    - `createdByUserName` string, required
    - `createdByCompanyId` string, required
    - `createdByCompanyName` string, required
    - `createdByImpersonateId` string, required
    - `createdByImpersonateName` string, required
    - `createdByApiKeyId` string, required
    - `createdByApiKeyLabel` string, required
    - `updatedAt` string, required
    - `updatedByUserId` string, required
    - `updatedByUserName` string, required
    - `updatedByCompanyId` string, required
    - `updatedByCompanyName` string, required
    - `updatedByImpersonateId` string, required
    - `updatedByImpersonateName` string, required
    - `updatedByApiKeyId` string, required
    - `updatedByApiKeyLabel` string, required
    - `lineCount` integer, required
    - `sentLineCount` integer, required
    - `readyLineCount` integer, required
    - `lastTracingRequestedAt` string, required
    - `sentDateCount` integer, required
    - `permissions` string[]
    - `lines` object[], required
      - `id` string, required
      - `orderLineNumber` string, required
      - `lineNo` integer, required
      - `styleId` string, required
      - `quantity` number, required
      - `unit` string, required
      - `secondaryQuantity` number, required
      - `secondaryUnit` string, required
      - `tracingReflectionOrderId` string, required
      - `tracingOrderRequestedAt` string, required

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response

---

[API](https://skmtc.net/retraced/apis/api-reference.md) · [All operations](https://skmtc.net/retraced/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/retraced/api-reference/revisions/60d6c901bc4e/schema)
