---
updatedAt: 2026-06-30T13:39:21.000Z
agentTools:
  projectIndex: https://docs.bkbn.com/llms.txt
---

# Get an order's assignments

Returns the full detail of every assignment in an order, scoped to the integrator's workspace.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "BKBN Sync API",
    "description": "API connector for customer applications.",
    "version": "2.16.0"
  },
  "servers": [
    {
      "url": "http://sync-dev.bkbn.com",
      "description": "Generated server url"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Orders",
      "description": "Operations for managing orders"
    },
    {
      "name": "Webhook Events",
      "description": "Event payloads BKBN POSTs to your callback URL. You receive these; you do not call them."
    }
  ],
  "paths": {
    "/v1/orders/{orderPublicId}/assignments": {
      "get": {
        "tags": [
          "Orders"
        ],
        "summary": "Get an order's assignments",
        "description": "Returns the full detail of every assignment in an order, scoped to the integrator's workspace.",
        "operationId": "getOrderAssignments",
        "parameters": [
          {
            "name": "orderPublicId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Assignments returned",
            "content": {
              "*/*": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AssignmentDetail"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {}
            }
          },
          "404": {
            "description": "Order not found in the integrator's workspace",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ContactPerson": {
        "type": "object",
        "description": "On-site contact person. Personal data (PII) - handle per data-protection policy. Email is intentionally not exposed (ISSUE-1950 product decision: parity with the platform UI, which shows no contact email).",
        "properties": {
          "name": {
            "type": "string",
            "description": "Contact full name.",
            "example": "Anna Müller"
          },
          "phone": {
            "type": "string",
            "description": "Contact phone.",
            "example": "+41 79 123 45 67"
          }
        }
      },
      "AssignmentDetail": {
        "type": "object",
        "description": "Assignment and delivery detail. External data surface only: no remuneration, favourite flags, or internal instruction fields.",
        "properties": {
          "assignmentId": {
            "type": "string",
            "description": "Public assignment id.",
            "example": "a1b2c3d4"
          },
          "orderId": {
            "type": "integer",
            "format": "int64",
            "description": "Public id of the order this assignment belongs to.",
            "example": 100234
          },
          "status": {
            "type": "string",
            "description": "Assignment status. UNKNOWN if the platform reports a status this API version does not yet recognise.",
            "enum": [
              "CREATED",
              "PHOTOGRAPHER_ASSIGNED",
              "SCHEDULED",
              "IN_PRODUCTION",
              "IN_PROCESS",
              "ACTION_REQUIRED",
              "DELIVERED",
              "CANCELLED",
              "RESCHEDULE_IN_PROCESS",
              "UNKNOWN"
            ],
            "example": "SCHEDULED"
          },
          "scheduledAt": {
            "type": "string",
            "format": "date-time",
            "description": "Confirmed shooting start, null until scheduled."
          },
          "timeOnSiteMin": {
            "type": "integer",
            "format": "int64",
            "description": "Minimum minutes on site."
          },
          "timeOnSiteMax": {
            "type": "integer",
            "format": "int64",
            "description": "Maximum minutes on site."
          },
          "scheduledByCT": {
            "type": "boolean",
            "description": "Whether the photographer arranges the appointment date."
          },
          "scheduledByCTDeadline": {
            "type": "string",
            "format": "date-time",
            "description": "Deadline for the photographer to arrange the date, if applicable."
          },
          "visualsUploadDeadline": {
            "type": "string",
            "format": "date-time",
            "description": "Deadline for the photographer to upload visuals, if applicable."
          },
          "estimatedDeliveryAt": {
            "type": "string",
            "format": "date",
            "description": "Estimated delivery date (date-only); null if unknown."
          },
          "address": {
            "type": "string",
            "description": "Resolved shoot address (the manual override if one was set, otherwise the standard address).",
            "example": "Bahnhofstrasse 1, 8001 Zürich"
          },
          "timezone": {
            "type": "string",
            "description": "IANA timezone of the address, if resolved.",
            "example": "Europe/Zurich"
          },
          "meetingInstructions": {
            "type": "string",
            "description": "Meeting instructions for the on-site visit."
          },
          "shootingInstructions": {
            "type": "string",
            "description": "Shooting instructions for the assignment."
          },
          "keyPickupDetails": {
            "$ref": "#/components/schemas/KeyPickupDetails",
            "description": "Key pickup details, if applicable."
          },
          "contactPerson": {
            "$ref": "#/components/schemas/ContactPerson",
            "description": "On-site contact person."
          },
          "photographer": {
            "$ref": "#/components/schemas/Photographer",
            "description": "Photographer contact; null until a photographer accepts."
          },
          "products": {
            "type": "array",
            "description": "Products attached to this assignment.",
            "items": {
              "$ref": "#/components/schemas/AssignmentProduct"
            }
          }
        },
        "required": [
          "address",
          "assignmentId",
          "orderId",
          "products",
          "scheduledByCT",
          "status"
        ]
      },
      "AssignmentProduct": {
        "type": "object",
        "description": "A product the customer ordered on this assignment.",
        "properties": {
          "name": {
            "type": "string",
            "description": "Human-readable product name, localized to the order owner's language.",
            "example": "Ground Photos Standard"
          },
          "productCode": {
            "type": "string",
            "description": "Stable product code (SKU).",
            "example": "GROUNDPHOTO-10"
          },
          "quantity": {
            "type": "integer",
            "format": "int32",
            "description": "Ordered quantity.",
            "example": 1
          },
          "isPrimary": {
            "type": "boolean",
            "description": "Whether this is the assignment's primary product (vs. an add-on)."
          }
        },
        "required": [
          "isPrimary",
          "quantity"
        ]
      },
      "KeyPickupDetails": {
        "type": "object",
        "description": "Key pickup details for the assignment. May contain personal data (PII).",
        "properties": {
          "address": {
            "type": "string",
            "description": "Pickup address.",
            "example": "Concierge desk, ground floor"
          },
          "dateTime": {
            "type": "string",
            "format": "date-time",
            "description": "Pickup date and time, if scheduled."
          },
          "contactName": {
            "type": "string",
            "description": "Pickup contact name.",
            "example": "Building concierge"
          },
          "contactPhone": {
            "type": "string",
            "description": "Pickup contact phone.",
            "example": "+41 44 000 00 00"
          }
        },
        "required": [
          "address"
        ]
      },
      "Photographer": {
        "type": "object",
        "description": "Photographer contact, present once a photographer has accepted the assignment. Personal data (PII) - handle per data-protection policy. Email is intentionally not exposed (ISSUE-1950 product decision: parity with the platform UI, which shows no contact email).",
        "properties": {
          "name": {
            "type": "string",
            "description": "Photographer full name.",
            "example": "Jonas Berger"
          },
          "phone": {
            "type": "string",
            "description": "Photographer phone, null if not on file.",
            "example": "+41 78 987 65 43"
          }
        },
        "required": [
          "name"
        ]
      },
      "VisualsReadyEvent": {
        "type": "object",
        "required": [
          "event",
          "timestamp",
          "orderId",
          "assignmentId",
          "visualType",
          "product"
        ],
        "properties": {
          "event": {
            "type": "string",
            "const": "VISUALS_READY"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "When the webhook was sent.",
            "example": "2023-01-15T12:45:00Z"
          },
          "orderId": {
            "type": "string",
            "example": "100234"
          },
          "assignmentId": {
            "type": "string",
            "example": "a1b2c3d4"
          },
          "visualType": {
            "type": "string",
            "description": "Resource type that is ready. Mirrors the platform resource taxonomy.",
            "example": "POST"
          },
          "product": {
            "type": "string",
            "description": "Product/deliverable that is ready. Mirrors the platform product taxonomy.",
            "example": "GROUND_PHOTO"
          },
          "realEstatePropertyId": {
            "type": "string",
            "format": "uuid",
            "description": "Real estate property id, if applicable."
          },
          "objectReferenceId": {
            "type": "string",
            "description": "Client-supplied object reference, if provided."
          }
        }
      },
      "PhotographerBookedEvent": {
        "type": "object",
        "required": [
          "event",
          "timestamp",
          "orderId",
          "photographerId"
        ],
        "properties": {
          "event": {
            "type": "string",
            "const": "PHOTOGRAPHER_BOOKED"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "example": "2023-01-15T12:45:00Z"
          },
          "orderId": {
            "type": "string",
            "example": "100234"
          },
          "photographerId": {
            "type": "string",
            "description": "Public id of the photographer (creative) who accepted.",
            "example": "55021"
          },
          "assignmentId": {
            "type": "string",
            "description": "Assignment id, when available.",
            "example": "a1b2c3d4"
          }
        }
      },
      "OrderStatusUpdatedEvent": {
        "type": "object",
        "required": [
          "event",
          "occurredAt",
          "orderId",
          "previousStatus",
          "newStatus"
        ],
        "properties": {
          "event": {
            "type": "string",
            "const": "ORDER_STATUS_UPDATED"
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the change occurred on the platform.",
            "example": "2026-06-25T09:30:00Z"
          },
          "orderId": {
            "type": "string",
            "example": "100234"
          },
          "previousStatus": {
            "type": "string",
            "example": "PLACED"
          },
          "newStatus": {
            "type": "string",
            "example": "IN_PROGRESS"
          }
        }
      },
      "AssignmentStatusUpdatedEvent": {
        "type": "object",
        "required": [
          "event",
          "occurredAt",
          "orderId",
          "assignmentId",
          "previousStatus",
          "newStatus"
        ],
        "properties": {
          "event": {
            "type": "string",
            "const": "ASSIGNMENT_STATUS_UPDATED"
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-06-25T09:30:00Z"
          },
          "orderId": {
            "type": "string",
            "example": "100234"
          },
          "assignmentId": {
            "type": "string",
            "example": "a1b2c3d4"
          },
          "previousStatus": {
            "type": "string",
            "example": "SCHEDULED"
          },
          "newStatus": {
            "type": "string",
            "example": "IN_PRODUCTION"
          },
          "assignmentType": {
            "type": "string",
            "description": "Assignment type, when available."
          },
          "scheduledAt": {
            "type": "string",
            "format": "date-time",
            "description": "Confirmed shooting start, when available."
          },
          "estimatedDeliveryAt": {
            "type": "string",
            "format": "date",
            "description": "Estimated delivery date (date-only), when available."
          },
          "actionRequired": {
            "type": "string",
            "description": "Action-required detail, when applicable."
          }
        }
      },
      "AppointmentDateUpdatedEvent": {
        "type": "object",
        "required": [
          "event",
          "occurredAt",
          "orderId",
          "assignmentId",
          "scheduledAt"
        ],
        "properties": {
          "event": {
            "type": "string",
            "const": "APPOINTMENT_DATE_UPDATED"
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-06-25T09:30:00Z"
          },
          "orderId": {
            "type": "string",
            "example": "100234"
          },
          "assignmentId": {
            "type": "string",
            "example": "a1b2c3d4"
          },
          "assignmentType": {
            "type": "string",
            "description": "Assignment type, when available."
          },
          "scheduledAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "New confirmed shooting start. Always present; `null` means the appointment was cleared (reschedule pending).\n"
          }
        }
      },
      "EstimatedDeliveryUpdatedEvent": {
        "type": "object",
        "required": [
          "event",
          "occurredAt",
          "orderId",
          "assignmentId",
          "estimatedDeliveryAt"
        ],
        "properties": {
          "event": {
            "type": "string",
            "const": "ESTIMATED_DELIVERY_UPDATED"
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-06-25T09:30:00Z"
          },
          "orderId": {
            "type": "string",
            "example": "100234"
          },
          "assignmentId": {
            "type": "string",
            "example": "a1b2c3d4"
          },
          "assignmentType": {
            "type": "string",
            "description": "Assignment type, when available."
          },
          "estimatedDeliveryAt": {
            "type": "string",
            "format": "date",
            "description": "Estimated delivery date (date-only).",
            "example": "2026-07-02"
          }
        }
      },
      "MarketingMaterialsReadyEvent": {
        "type": "object",
        "required": [
          "event",
          "timestamp",
          "propertyId",
          "targetPlatform"
        ],
        "properties": {
          "event": {
            "type": "string",
            "const": "MARKETING_MATERIALS_READY"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "example": "2023-01-15T12:45:00Z"
          },
          "propertyId": {
            "type": "string",
            "format": "uuid",
            "description": "Real estate property id."
          },
          "targetPlatform": {
            "type": "string",
            "description": "Target platform the materials were prepared for."
          }
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "description": "JWT Authentication. Enter your token in the format: Bearer {token}",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "parameters": {
      "EventTypeHeader": {
        "name": "X-Event-Type",
        "in": "header",
        "required": true,
        "description": "The event name. Matches the `event` field in the body.",
        "schema": {
          "type": "string",
          "example": "ASSIGNMENT_STATUS_UPDATED"
        }
      }
    }
  },
  "webhooks": {
    "visualsReady": {
      "post": {
        "summary": "Visuals ready",
        "description": "Sent when materials (visuals, documents, or other deliverables) are ready for download. On receipt, call the Materials API to retrieve the actual files.\n",
        "operationId": "onVisualsReady",
        "parameters": [
          {
            "$ref": "#/components/parameters/EventTypeHeader"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VisualsReadyEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged by the consumer."
          }
        },
        "tags": [
          "Webhook Events"
        ]
      }
    },
    "photographerBooked": {
      "post": {
        "summary": "Photographer booked",
        "description": "Sent when a photographer (creative) has accepted an assignment.",
        "operationId": "onPhotographerBooked",
        "parameters": [
          {
            "$ref": "#/components/parameters/EventTypeHeader"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PhotographerBookedEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged by the consumer."
          }
        },
        "tags": [
          "Webhook Events"
        ]
      }
    },
    "orderStatusUpdated": {
      "post": {
        "summary": "Order status updated",
        "description": "Sent when an order transitions between statuses.",
        "operationId": "onOrderStatusUpdated",
        "parameters": [
          {
            "$ref": "#/components/parameters/EventTypeHeader"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderStatusUpdatedEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged by the consumer."
          }
        },
        "tags": [
          "Webhook Events"
        ]
      }
    },
    "assignmentStatusUpdated": {
      "post": {
        "summary": "Assignment status updated",
        "description": "Sent when an assignment transitions between statuses. May also be sent as a same-status nudge carrying refreshed logistics fields.\n",
        "operationId": "onAssignmentStatusUpdated",
        "parameters": [
          {
            "$ref": "#/components/parameters/EventTypeHeader"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssignmentStatusUpdatedEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged by the consumer."
          }
        },
        "tags": [
          "Webhook Events"
        ]
      }
    },
    "appointmentDateUpdated": {
      "post": {
        "summary": "Appointment date updated",
        "description": "Sent when an assignment's shooting appointment date changes. `scheduledAt` is always present and is `null` when the appointment was cleared (reschedule pending).\n",
        "operationId": "onAppointmentDateUpdated",
        "parameters": [
          {
            "$ref": "#/components/parameters/EventTypeHeader"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AppointmentDateUpdatedEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged by the consumer."
          }
        },
        "tags": [
          "Webhook Events"
        ]
      }
    },
    "estimatedDeliveryUpdated": {
      "post": {
        "summary": "Estimated delivery updated",
        "description": "Sent when an assignment's estimated delivery date changes.",
        "operationId": "onEstimatedDeliveryUpdated",
        "parameters": [
          {
            "$ref": "#/components/parameters/EventTypeHeader"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EstimatedDeliveryUpdatedEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged by the consumer."
          }
        },
        "tags": [
          "Webhook Events"
        ]
      }
    },
    "marketingMaterialsReady": {
      "post": {
        "summary": "Marketing materials ready",
        "description": "Sent when marketing materials for a property are ready for a target platform.",
        "operationId": "onMarketingMaterialsReady",
        "parameters": [
          {
            "$ref": "#/components/parameters/EventTypeHeader"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketingMaterialsReadyEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged by the consumer."
          }
        },
        "tags": [
          "Webhook Events"
        ]
      }
    }
  }
}
```