openapi: 3.1.1 info: title: OrderItem version: 2.0.0 description: Schema definition for OrderItem in the Beckn Protocol license: name: CC-BY-NC-SA 4.0 International contact: name: Beckn Labs url: https://beckn.io components: schemas: OrderItem: $id: https://schema.beckn.io/OrderItem/v2.0 $schema: https://json-schema.org/draft/2020-12/schema description: Schema definition for OrderItem in the Beckn Protocol title: OrderItem type: object properties: beckn:lineId: type: string description: Unique line id within order beckn:orderedItem: $ref: https://schema.beckn.io/Item/v2.1/attributes.yaml#/components/schemas/Item x-jsonld: '@id': schema:orderedItem beckn:acceptedOffer: $ref: https://schema.beckn.io/Offer/v2.1/attributes.yaml#/components/schemas/Offer description: Offer applied to this line (if different from order-level) x-jsonld: '@id': schema:acceptedOffer beckn:quantity: $ref: https://schema.beckn.io/Quantity/v2.0/attributes.yaml#/components/schemas/Quantity x-jsonld: '@id': beckn:quantity beckn:price: $ref: https://schema.beckn.io/PriceSpecification/v2.1/attributes.yaml#/components/schemas/PriceSpecification description: Line price composition (unit/tax/delivery/discount) x-jsonld: '@id': schema:priceSpecification beckn:orderItemAttributes: $ref: https://schema.beckn.io/Attributes/v2.0/attributes.yaml#/components/schemas/Attributes description: Line-level Attribute Pack (options, substitutions, ESG, etc.) required: - beckn:orderedItem