type: object
description: |
    Result of a per-Big-Order sync (`GET /admin/shop/order/{bigOrderId}/sync` or
    the line-items-only variant). Reports what changed, plus any non-fatal errors
    surfaced during the sync.
properties:
    bigOrderId: { type: string }
    shopifyOrderId: { type: string }
    syncedAt: { type: string, format: date-time }
    lineItemsChanged:
        type: integer
        description: Number of line items added, updated, or removed.
    snapshotsRefreshed: { type: integer, description: Number of line-item snapshot records rewritten. }
    shipmentGroupsRepaired: { type: integer, description: Shipment-group fixups applied. }
    bigOrder:
        $ref: "./BigOrder.yaml"
        description: Updated order, when the sync changed any persisted fields.
    errors:
        type: array
        items: { type: string }
        description: Non-fatal errors surfaced during the sync.
example:
    bigOrderId: "01HXJ4S3M0Q3TRBQ3JV9P5W2VC"
    shopifyOrderId: "6107853586649"
    syncedAt: "2026-04-22T10:14:00.000Z"
    lineItemsChanged: 2
    snapshotsRefreshed: 4
    shipmentGroupsRepaired: 0
    errors: []
