8 API Reference‎ > ‎Resources‎ > ‎

OrderItem

NOTE: Used only in Distribution API.

OrderItem represents a shopping cart item within orders. Orders can contain different shopping cart items with different offers and quantity. OrderItem has only one offer and its quantity. Order has a list of OrderItems. In a particular case Order contains a single OrderItem.

Attributes: 
  • offer_id string.
  • reservation_id string.
  • promotion_id string.
  • quantity integer.
  • vouchers list of Voucher.

Data Example

JSON

{
    "offer_id": "",
    "reservation_id": "",
    "promotion_id": "",
    "quantity": "",
    "vouchers": [Voucher, ...]
}

XML

<item>
    <offer_id></offer_id>
    <reservation_id></reservation_id>
    <promotion_id></promotion_id>
    <quantity></quantity>
    <vouchers>
        <voucher>Voucher</voucher>
        ...
    </vouchers>
</item>

Actions

No actions supported.

Comments