openapi: 3.1.0 info: title: Journey version: 2.0.0 description: Schema definition for the Journey entity in the Beckn Mobility domain. license: name: CC-BY-NC-SA 4.0 International url: https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en contact: name: Beckn Labs url: https://beckn.io components: schemas: Journey: type: object title: Journey description: A complete travel itinerary from origin to destination, potentially comprising multiple legs using different transport modes. x-tags: - mobility - schema-org - ride-hailing properties: origin: description: Origin location of the journey $ref: https://schema.beckn.io/Location/v2.0/attributes.yaml#/components/schemas/Location destination: description: Destination location of the journey $ref: https://schema.beckn.io/Location/v2.0/attributes.yaml#/components/schemas/Location departureTime: description: Planned departure time type: string format: date-time arrivalTime: description: Planned arrival time type: string format: date-time legs: description: Ordered list of legs comprising this journey $ref: https://schema.beckn.io/Leg/v2.0/attributes.yaml#/components/schemas/Leg id: description: Unique identifier for the contract type: string descriptor: description: Human-readable description of the contract $ref: https://schema.beckn.io/core/v2.0/Descriptor/attributes.yaml#components/schemas/Descriptor items: description: Line items within the contract $ref: https://schema.beckn.io/ContractItem/v2.0/attributes.yaml#/components/schemas/ContractItem fulfillments: description: Fulfillments associated with this contract $ref: https://schema.beckn.io/Fulfillment/v2.1/attributes.yaml#/components/schemas/Fulfillment state: description: Current state of the contract $ref: https://schema.beckn.io/State/v2.0/attributes.yaml#/components/schemas/State additionalProperties: false