openapi: 3.2.0 info: title: Ad Seller System Audit API description: IAB OpenDirect 2.1 compliant seller agent for programmatic advertising. Supports product discovery, tiered pricing, proposal evaluation, multi-round negotiation, deal execution, order management, and change requests. contact: name: IAB Tech Lab url: https://iabtechlab.com/ license: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0 version: 1.0.0 tags: - name: Audit description: Order audit logs and operational reports paths: /api/v1/orders/report: get: tags: - Audit summary: Get Orders Report description: 'Summary report across all orders. Returns counts by status, transition frequency by actor type, and average time-in-state metrics.' operationId: get_orders_report_api_v1_orders_report_get parameters: - name: from_date in: query required: false schema: anyOf: - type: string - type: 'null' title: From Date - name: to_date in: query required: false schema: anyOf: - type: string - type: 'null' title: To Date - name: authorization in: header required: false schema: anyOf: - type: string - type: 'null' title: Authorization - name: X-Api-Key in: header required: false schema: anyOf: - type: string - type: 'null' title: X-Api-Key responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /api/v1/orders/{order_id}/audit: get: tags: - Audit summary: Get Order Audit description: 'Detailed audit log for an order with optional filters. Filters: - actor: filter transitions by actor (exact or prefix match) - from_date: ISO date, only transitions on or after this date - to_date: ISO date, only transitions on or before this date' operationId: get_order_audit_api_v1_orders__order_id__audit_get parameters: - name: order_id in: path required: true schema: type: string title: Order Id - name: actor in: query required: false schema: anyOf: - type: string - type: 'null' title: Actor - name: from_date in: query required: false schema: anyOf: - type: string - type: 'null' title: From Date - name: to_date in: query required: false schema: anyOf: - type: string - type: 'null' title: To Date - name: authorization in: header required: false schema: anyOf: - type: string - type: 'null' title: Authorization - name: X-Api-Key in: header required: false schema: anyOf: - type: string - type: 'null' title: X-Api-Key responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' components: schemas: ValidationError: properties: loc: items: anyOf: - type: string - type: integer type: array title: Location msg: type: string title: Message type: type: string title: Error Type input: title: Input ctx: type: object title: Context type: object required: - loc - msg - type title: ValidationError HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' type: array title: Detail type: object title: HTTPValidationError