> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dintero.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get items

> Get the items stored separately for a session, transaction or
transaction event. The `items_reference_id` is `items_reference.id`.
Snapshots are immutable.

scopes:
- admin:checkout
- read:checkout




## OpenAPI

````yaml /mintlify-docs/openapi/spec-payments-v2.yaml get /accounts/{aid}/payments/items/{items_reference_id}
openapi: 3.0.0
info:
  title: Payments API v2
  contact:
    name: API Integration Support
    email: integration@dintero.com
  description: |
    Public endpoints for payments served under the account-scoped URL format
    `https://api.dintero.com/v1/accounts/{aid}/...`.
  version: LATEST
  license:
    name: UNLICENSED
    url: https://dintero.com
  x-logo:
    url: https://docs.dintero.com/img/dintero-dark-padded.svg
    altText: Dintero Logo
servers:
  - url: https://api.dintero.com/v1
security:
  - JWT: []
tags:
  - name: Transactions
    x-displayName: Transactions
    description: |
      View and perform operations on transactions
  - name: Items
    x-displayName: Items
    description: >
      Retrieve order items stored separately with a reference from sessions and
      transactions
  - name: session
    x-displayName: Sessions
    description: |
      A Checkout Session relates to an order in your system.
      When an order has been placed you create a corresponding Checkout Session
      to receive payment for that order.
  - name: payment
    x-displayName: Payment
    description: |
      Resources used by the customer aka user to complete the payment of a
      session.
  - name: settlements
    x-displayName: Settlement reports
    description: Get settlement reports generated per payout
  - name: settlements.configuration
    x-displayName: Configuration
    description: Configure settlement reports
  - name: reports
    x-displayName: Reports
    description: List the generated monthly transaction reports
  - name: Sellers
    x-displayName: Sellers
    description: Manage the signup of a new Seller / Merchant account
  - name: example-session-callbacks
    x-displayName: Example Callbacks
    description: Example of callbacks delivered
  - name: v2-config-payout-destinations
    x-displayName: Sellers
    description: Get payout data for sellers
  - name: Card Tokens
    description: |
      Manage card tokens
  - name: terminals
    x-displayName: Terminals
    description: Terminal operations
  - name: v2-fund-transfers
    x-displayName: Fund transfers
    description: Transfer funds between sellers
  - name: payout-destinations
    x-displayName: payout destinations
    description: |
      Payout destinations
  - name: account-stores
    x-displayName: stores
    description: |
      Manage account stores
  - name: account-terminals
    x-displayName: terminals
    description: |
      Manage account terminals
  - name: report-configuration
    x-displayName: Report configuration
    description: Manage report configurations
  - name: kpi
    x-displayName: KPI
    description: Get KPI data
paths:
  /accounts/{aid}/payments/items/{items_reference_id}:
    parameters:
      - $ref: '#/components/parameters/accountId'
    get:
      tags:
        - Items
      summary: items_id_get
      description: |
        Get the items stored separately for a session, transaction or
        transaction event. The `items_reference_id` is `items_reference.id`.
        Snapshots are immutable.

        scopes:
        - admin:checkout
        - read:checkout
      operationId: items_id_get
      parameters:
        - name: items_reference_id
          in: path
          required: true
          description: The `items_reference.id`
          schema:
            type: string
        - $ref: '#/components/parameters/Limit'
        - name: starting_after
          in: query
          description: |
            Cursor for use in pagination. Pass the `starting_after` value from
            the previous response to fetch the next page.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Items
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      allOf:
                        - $ref: '#/components/schemas/OrderItem'
                        - $ref: '#/components/schemas/OrderDiscountItem'
                  starting_after:
                    type: string
                    description: >
                      Cursor for use in pagination. Only included when the
                      number of

                      items in the page equals `limit`.
        '401':
          $ref: '#/components/responses/AccessForbidden'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
        - JWT: []
components:
  parameters:
    accountId:
      name: aid
      description: |
        An id that uniquely identifies the account.
      in: path
      required: true
      schema:
        type: string
        format: ^[PT]{1}\d{8}$
        minLength: 9
        maxLength: 9
    Limit:
      name: limit
      in: query
      description: |
        A limit on the number of objects to be returned. Limit can range
        between 1 and 100 items, and the default is 10 items.
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 10
  schemas:
    OrderItem:
      type: object
      description: |
        details about order item
      properties:
        id:
          type: string
          description: |
            The ID or SKU of the product on the line
          example: item_01
        groups:
          type: array
          description: |
            The groups the product on the line belongs to
          example:
            - id: B234
              name: Stol
          items:
            type: object
            required:
              - id
            properties:
              id:
                type: string
                description: Group ID
              name:
                type: string
                description: Group name
        line_id:
          type: string
          description: |
            the number of the line (or id), must be `unique` between
            all items. `required` when Instabank payment is configured.
          example: '1'
        version:
          type: number
          readOnly: true
          description: |
            The version where the item was added or last updated, see the
            events for the source.
        description:
          type: string
          description: |
            A short, localized description of the line item
          example: Stablestol
        quantity:
          type: number
          description: >
            The quantity of the product in the item line.


            Quantities are usually whole numbers, but can also be decimal, in
            cases where the product is sold by weight, volume or other
            denominations.
          example: 1
        amount:
          type: integer
          description: >
            The total monetary amount of the line item, including VAT and
            discounts.


            In smallest unit for the currency, e.g. cents
          example: 2000
        vat_amount:
          type: integer
          description: |
            The VAT of the `amount` parameter. Only
            used for display purposes.

            In smallest unit for the currency, e.g. cents
          example: 400
        vat:
          type: number
          description: >
            The VAT percentage. Supports up to 2 decimal places. If the vat is
            20% the number should be 20, not 0.2.
          example: 20
        unit_volume:
          type: number
          description: |
            The volume of one item in m³ (cubic meters)
        unit_weight:
          type: number
          description: |
            The volume of one item in kg (kilo grams)
        unit_dimensional_weight:
          type: number
          description: >
            The dimensional weight (also known as volumetric) value unit of one
            item. [Dimensional weight at
            Wikipedia](https://en.wikipedia.org/wiki/Dimensional_weight)
        type:
          type: string
          description: >
            The type of order item this is.


            - **physical** - a physical item which must be delivered or handed
            over

            - **digital** - a digital item which doesn't need shipping

            - **service** - payment for services like maintenance performed in
            your home

            - **gift_card** - usage of a gift card, where the amount is usually
            a negative number

            - **shipping** - payment for shipping of the order

            - **surcharge** - extra incurred costs, like taxes or necessary
            rounding

            - **tip** - a tip added to the order. The item's `splits` are
            calculated from `configuration.payout.tip_split`
          enum:
            - physical
            - digital
            - service
            - gift_card
            - shipping
            - surcharge
            - tip
        fee_split:
          $ref: '#/components/schemas/PayoutFeeSplit'
        splits:
          type: array
          description: >
            An array of objects specifying how the amount should be split
            between

            sellers when using Dintero Payout


            Specify an empty array if the splits will be provided during
            capture.

            `auto_capture` cannot be enabled when splits are defined as empty
            array.
          items:
            $ref: '#/components/schemas/PayoutSplit'
        thumbnail_url:
          type: string
          description: >
            URL to a thumbnail of the item. Will be displayed when redirecting
            to the session.


            Recommended limitations for the image:


            - all images should preferrably have the same dimensions

            - max file size should be less than 2MB
          format: uri
        emd:
          $ref: '#/components/schemas/Emd'
        store:
          allOf:
            - $ref: '#/components/schemas/Store'
          description: |
            Store metadata, it can be used to track supplier/vendor/partner
            information when the main `order.store` is a marketplace / reseller
    OrderDiscountItem:
      description: Discount details for an order item
      properties:
        eligible_for_discount:
          type: boolean
          default: false
          example: true
          description: |
            The item is eligible for discount
        is_changed:
          type: boolean
          description: |
            Discount applied to amount
        gross_amount:
          type: number
          readOnly: true
          description: |
            The origin item amount before any discount
        discount_lines:
          type: array
          items:
            $ref: '#/components/schemas/DiscountItem'
    PayoutFeeSplit:
      type: object
      description: >
        Specify how fees are handled with splits. The default behaviour is to
        share

        the fees proportional with all splits destinations
      required:
        - type
      properties:
        type:
          type: string
          description: >
            - **`proportional`**: Fees are shared proportionally across
            `destinations`, weighted by each destination's split amount. Every
            destination must also be included in `splits`.

            - **`equal_fee_only`**: Fees are shared equally across
            `destinations`. These destinations must not be included in `splits`
            and receive no income from the order - they only accumulate fee
            debt.
          enum:
            - proportional
            - equal_fee_only
        destinations:
          type: array
          description: >
            Seller ids that will be debited for the payment fees.


            - When `type` is `proportional`, all destinations must also be
            included in the list of `splits`.

            - When `type` is `equal_fee_only`, destinations must not be included
            in `splits`. The fee is divided equally between them, and they
            receive no income from the order - only fee debt.
          minItems: 1
          items:
            type: string
            maxLength: 40
    PayoutSplit:
      type: object
      required:
        - payout_destination_id
        - amount
      properties:
        payout_destination_id:
          type: string
          maxLength: 40
          example: seller-1
          description: >
            An id that identifies the seller


            Note: The seller must be configured before the funds will be paid
            out. See
            https://docs.dintero.com/docs/checkout/split-payment/add-payout-destinations
        amount:
          type: integer
          format: int32
          example: 29700
          minimum: 0
          description: |
            The split amount in smallest unit for the currency, e.g. cents.
    Emd:
      type: object
      description: >
        Details related to [Klarna
        EMD](https://docs.klarna.com/klarna-payments/in-depth-knowledge/extra-merchant-data/).


        Some items require extra information to be provided when using

        Klarna as an enabled payment option.
      properties:
        event:
          $ref: '#/components/schemas/EmdEvent'
        subscription:
          $ref: '#/components/schemas/EmdRecurring'
        travel:
          $ref: '#/components/schemas/EmdTravel'
        marketplace_order:
          $ref: '#/components/schemas/EmdMarketplaceOrder'
    Store:
      type: object
      required:
        - id
      properties:
        id:
          type: string
          example: sc029
        name:
          type: string
          description: |
            name of the store, aka trade name of the store
          example: SC Oslo
        business_name:
          type: string
          description: |
            Official name of the person or entity that owns the store.
          example: SC Oslo AS
        address:
          $ref: '#/components/schemas/Address'
        chain:
          type: string
          example: SuperChain
        email:
          type: string
          example: contact@superchain.com
        gln:
          type: string
          example: '5790001398644'
        organization_number:
          type: string
          example: 123456789MVA
        phone_number:
          type: string
          example: '+4738260107'
        mcc:
          type: string
          format: iso-18245
          description: |
            A four-digit Merchant Category Code (MCC) for the store
            [ISO 18245:2003](https://www.iso.org/standard/33365.html)
          example: '5814'
          minimum: 4
          maximum: 4
        bax:
          type: string
          example: '102603'
          description: |
            Merchant number associated with the stores
            payment terminal
        terminal_id:
          type: string
          description: |
            Id to a specific point-of-sale (POS) terminal
            or workstation
          example: T0292
        payout_destination_id:
          type: string
          maxLength: 40
          description: |
            The payout destination id for the merchant of record,
            i.e. the seller responsible for the transaction.

            Required when `seitatech.in_person` payment is enabled.
          example: seller-1
    DiscountItem:
      type: object
      properties:
        amount:
          type: integer
          example: 4400
          description: |
            Monetary amount in smallest unit for the currency
        percentage:
          type: number
          description: |
            Optional, set if the amount given was from a percentage discount
          example: 44
        discount_type:
          $ref: '#/components/schemas/DiscountType'
        discount_id:
          type: string
          example: 766da0ef-9283-42bd-b012-0582344ec53c
        description:
          type: string
        line_id:
          type: integer
          example: 1
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - message
          properties:
            code:
              type: string
              description: The code used to identify the error/warning
            errors:
              type: array
              description: The nested error(s) encountered during validation
              items:
                type: object
            message:
              type: string
              description: The human readable description of the error/warning
    EmdEvent:
      type: array
      description: >
        Only required if the item is related to an event or multiple events,

        like for example tickets to a concert.


        If you are selling an event package as a single ticket or item that

        includes multiple events, for example a festival, you need to provide

        information about all the individual events that are part of the
        package.
      items:
        type: object
        required:
          - event_name
          - event_company
          - genre_of_event
          - start_time
          - end_time
          - ticket_delivery_method
          - ticket_delivery_recipient
        properties:
          event_name:
            type: string
            description: Name of the event, e.g. "Fancy Singer"
            example: Michael Jackson
          event_company:
            type: string
            description: Name of the company arranging the event, e.g. "Happy Parties Ltd."
            example: Diamond Events
          genre_of_event:
            type: string
            description: Category or type of venue, e.g. "Pop"
            example: Pop
          arena_name:
            type: string
            description: Name of the venue, e.g. "Song Arena"
            example: Oslo Spektrum
          arena_location:
            type: object
            required:
              - city
              - country
            properties:
              street_address:
                type: string
                description: >-
                  Street address representing the venue location, e.g. "Sonja
                  Henies plass 2"
                example: Sonja Henies plass 2
              postal_code:
                type: string
                description: Postal code for the venue location, e.g. "0185"
                example: '0185'
              city:
                type: string
                description: City that the venue is located in, e.g. "Oslo"
                example: Oslo
              country:
                type: string
                description: >
                  Country that the venue is located in (ISO 3166-1 alpha-2
                  format), e.g. "NO"
                example: 'NO'
          start_time:
            type: string
            format: date-time
            description: >
              Start time of the event (ISO 8601 format), e.g.
              "2023-08-16T15:00:00Z".


              If a timezone is not specified we assume UTC.
            example: '2023-08-16T15:00:00Z'
          end_time:
            type: string
            format: date-time
            description: >
              End time of the event (ISO 8601 format), e.g.
              "2023-08-16T16:00:00Z".


              If a timezone is not specified we assume UTC.
            example: '2023-08-16T16:00:00Z'
          access_controlled_venue:
            type: boolean
            description: >-
              If tickets are digitally checked when entering the venue, e.g.
              true
            example: true
          ticket_delivery_method:
            type: string
            enum:
              - pick_up
              - email
              - post
              - phone
            example: email
          ticket_delivery_recipient:
            type: string
            description: >
              Name of the recipient the ticket is delivered to, e.g.
              "recipient@mail.com".


              If email or phone, then use either the email address or the phone
              number respectively.
            example: recipient@mail.com
          affiliate_name:
            type: string
            description: |
              Name of the affiliate that originated the purchase.
            example: Klarna affiliate
    EmdRecurring:
      type: object
      description: >
        Only required if the item is related to a subscription.


        If that is the case, you need to provide information about both the
        subscription

        and the customer account.
      required:
        - subscription
        - customer_account_info
      properties:
        subscription:
          $ref: '#/components/schemas/EmdSubscription'
        customer_account_info:
          $ref: '#/components/schemas/EmdCustomerAccountInfo'
    EmdTravel:
      type: object
      description: |
        Only required if the item is part of a travel-related transaction.

        If that is the case, you need to provide information about the itinerary
        to be booked.
      properties:
        air_reservation_details:
          $ref: '#/components/schemas/EmdAirReservationDetails'
        bus_reservation_details:
          $ref: '#/components/schemas/EmdBusReservationDetails'
        train_reservation_details:
          $ref: '#/components/schemas/EmdTrainReservationDetails'
        ferry_reservation_details:
          $ref: '#/components/schemas/EmdFerryReservationDetails'
        hotel_reservation_details:
          $ref: '#/components/schemas/EmdHotelReservationDetails'
        car_rental_reservation_details:
          $ref: '#/components/schemas/EmdCarRentalReservationDetails'
    EmdMarketplaceOrder:
      type: object
      description: >
        Only required if them item is related to a marketplace order.


        If that is the case, you need to provide information about both the
        seller and

        the winner.
      required:
        - seller_info
        - winner_info
      properties:
        seller_info:
          $ref: '#/components/schemas/EmdMarketplaceSellerInfo'
        winner_info:
          $ref: '#/components/schemas/EmdMarketplaceWinnerInfo'
    Address:
      type: object
      required:
        - address_line
        - postal_place
        - country
      properties:
        address_line:
          type: string
          example: Sommerkroveien 34
        address_line_2:
          type: string
          example: PB 123
        postal_code:
          type: string
          example: '0349'
        postal_place:
          type: string
          example: Oslo
        country:
          type: string
          format: iso-3166-1
          description: |
            ISO 3166-1 country code
          example: 'NO'
    DiscountType:
      type: string
      enum:
        - customer
        - periodic
        - manual
        - loyalty
        - total
        - employee
        - external
    EmdSubscription:
      type: object
      description: |
        Details related to the subscription.
      required:
        - subscription_name
        - start_time
        - end_time
        - auto_renewal_of_subscription
      properties:
        subscription_name:
          type: string
          description: Name of the product on subscription, e.g. "Contact lenses"
          example: Contact lenses
        start_time:
          type: string
          format: date-time
          description: |
            The start time of the subscription (ISO 8601 format),
            e.g. "2023-08-16T15:00:00Z".

            If a timezone is not specified we assume UTC
          example: '2023-08-16T15:00:00Z'
        end_time:
          type: string
          format: date-time
          description: |
            The end time of the subscription (ISO 8601 format),
            e.g. "2023-09-16T15:00:00Z".

            If a timezone is not specified we assume UTC
          example: '2023-09-16T15:00:00Z'
        auto_renewal_of_subscription:
          type: boolean
          description: |
            Whether the subscription will be auto renewed upon expiry, e.g. true
          example: true
        affiliate_name:
          type: string
          description: |
            Name of the affiliate that originated the purchase.
          example: Klarna affiliate
    EmdCustomerAccountInfo:
      type: object
      description: >
        Information related to the customer that wants to purchase the
        subscription.
      required:
        - unique_account_identifier
        - account_registration_date
        - account_last_modified
      properties:
        unique_account_identifier:
          type: string
          description: |
            Unique name / number to identify the specific customer account.
            Max 24 characters, e.g. "Adam Adamsson"
          example: Adam Adamsson
        account_registration_date:
          type: string
          description: |
            The date and time the account was registered (ISO 8601 format),
            e.g. "2023-08-16T15:00:00Z".

            If a timezone is not specified we assume UTC.
          example: '2023-08-16T15:00:00Z'
        account_last_modified:
          type: string
          description: |
            The date and time the account was last modified (ISO 8601 format),
            e.g. "2023-10-16T15:00:00Z".

            If a timezone is not specified we assume UTC.
          example: '2023-10-16T15:00:00Z'
    EmdAirReservationDetails:
      type: object
      description: |
        Details about the reservation of airline tickets.
      required:
        - itinerary
      properties:
        pnr:
          type: string
          description: |
            Trip booking number, e.g. "VH67899"
          example: VH67899
        itinerary:
          type: array
          description: >
            Itinerary data, one per segment.


            If you are selling a ticket that contains one flight from Oslo to
            Munich,

            and another flight from Munich to Dubai, you need to provide one

            itinerary object for each of these two flights, and so on.
          items:
            $ref: '#/components/schemas/EmdAirReservationDetailsItinerary'
        insurance:
          type: array
          description: Insurance data, one per segment
          items:
            $ref: '#/components/schemas/EmdTravelInsurance'
        passengers:
          type: array
          description: Passenger data, one per passenger.
          items:
            $ref: '#/components/schemas/EmdTravelPassenger'
        affiliate_name:
          type: string
          description: Name of the affiliate that originated the purchase.
          example: Klarna affiliate
    EmdBusReservationDetails:
      type: object
      description: |
        Details about the reservation of bus tickets.
      required:
        - itinerary
      properties:
        pnr:
          type: string
          description: |
            Trip booking number, e.g. "VH67899"
          example: VH67899
        itinerary:
          type: array
          description: >
            Itinerary data, one per segment.


            If you are selling a ticket that contains one bus journey from Oslo
            to Munich,

            and another bus journey from Munich to Rome, you need to provide one

            itinerary object for each of these two bus journeys, and so on.
          items:
            $ref: '#/components/schemas/EmdBusReservationDetailsItinerary'
        insurance:
          type: array
          description: Insurance data, one per segment
          items:
            $ref: '#/components/schemas/EmdTravelInsurance'
        passengers:
          type: array
          description: Passenger data, one per passenger.
          items:
            $ref: '#/components/schemas/EmdTravelPassenger'
        affiliate_name:
          type: string
          description: Name of the affiliate that originated the purchase.
          example: Klarna affiliate
    EmdTrainReservationDetails:
      type: object
      description: |
        Details about the reservation of train tickets.
      required:
        - itinerary
      properties:
        pnr:
          type: string
          description: |
            Trip booking number, e.g. "VH67899"
          example: VH67899
        itinerary:
          type: array
          description: >
            Itinerary data, one per segment.


            If you are selling a ticket that contains one train journey from
            Oslo to Munich,

            and another train journey from Munich to Rome, you need to provide
            one

            itinerary object for each of these two train journeys, and so on.
          items:
            $ref: '#/components/schemas/EmdTrainReservationDetailsItinerary'
        insurance:
          type: array
          description: Insurance data, one per segment
          items:
            $ref: '#/components/schemas/EmdTravelInsurance'
        passengers:
          type: array
          description: Passenger data, one per passenger.
          items:
            $ref: '#/components/schemas/EmdTravelPassenger'
        affiliate_name:
          type: string
          description: Name of the affiliate that originated the purchase.
          example: Klarna affiliate
    EmdFerryReservationDetails:
      type: object
      description: |
        Details about the reservation of ferry tickets.
      required:
        - itinerary
      properties:
        pnr:
          type: string
          description: |
            Trip booking number, e.g. "VH67899"
          example: VH67899
        itinerary:
          type: array
          description: >
            Itinerary data, one per segment.


            If you are selling a ticket that contains one ferry journey from
            Oslo to Kiel,

            and another ferry journey from Kiel to Gothenburg, you need to
            provide one

            itinerary object for each of these two ferry journeys, and so on.
          items:
            $ref: '#/components/schemas/EmdFerryReservationDetailsItinerary'
        insurance:
          type: array
          description: Insurance data, one per segment
          items:
            $ref: '#/components/schemas/EmdTravelInsurance'
        passengers:
          type: array
          description: Passenger data, one per passenger.
          items:
            $ref: '#/components/schemas/EmdTravelPassenger'
        affiliate_name:
          type: string
          description: Name of the affiliate that originated the purchase.
          example: Klarna affiliate
    EmdHotelReservationDetails:
      type: object
      description: |
        Details about the reservation of hotel rooms.
      required:
        - itinerary
      properties:
        pnr:
          type: string
          description: |
            Trip booking number, e.g. "VH67899"
          example: VH67899
        itinerary:
          type: array
          description: |
            Hotel itinerary data, one per hotel stay.

            If you are selling a package that contains multiple hotel stays,
            you need to provide itinerary data for each of the individual stays.
          items:
            $ref: '#/components/schemas/EmdHotelReservationDetailsItinerary'
        insurance:
          type: array
          description: Insurance data, one per segment
          items:
            $ref: '#/components/schemas/EmdTravelInsurance'
        passengers:
          type: array
          description: Passenger data, one per passenger.
          items:
            $ref: '#/components/schemas/EmdTravelPassenger'
        affiliate_name:
          type: string
          description: Name of the affiliate that originated the purchase.
          example: Klarna affiliate
    EmdCarRentalReservationDetails:
      type: object
      description: |
        Details about the reservation of rental cars.
      required:
        - itinerary
        - drivers
      properties:
        pnr:
          type: string
          description: |
            Trip booking number, e.g. "VH67899"
          example: VH67899
        itinerary:
          type: array
          description: >
            Car rental itinerary data, one per car rental.


            If you are selling a package that contains multiple car rentals,

            you need to provide itinerary data for each of the individual
            rentals.
          items:
            $ref: '#/components/schemas/EmdCarRentalReservationDetailsItinerary'
        insurance:
          type: array
          description: Insurance data, one per segment
          items:
            $ref: '#/components/schemas/EmdTravelInsurance'
        drivers:
          type: array
          description: Driver data, one per driver.
          items:
            $ref: '#/components/schemas/EmdTravelPassenger'
        affiliate_name:
          type: string
          description: Name of the affiliate that originated the purchase.
          example: Klarna affiliate
    EmdMarketplaceSellerInfo:
      type: object
      description: |
        Details related to the seller involved in the marketplace order.
      required:
        - sub_merchant_id
        - product_category
        - account_registration_date
        - account_last_modified
        - number_of_trades
      properties:
        unique_account_identifier_seller:
          type: object
          description: Details about the seller.
          properties:
            email:
              type: string
              description: |
                Seller's email address, e.g. "seller@mail.com"
            phone_number:
              type: string
              description: Seller's phone number, e.g. "97712123"
              example: '97712123'
            other:
              type: string
        sub_merchant_id:
          type: string
          description: |
            Name or unique number of the selling/delivering merchant,
            e.g. "Marketbrick Ltd."
          example: Marketbrick Ltd.
        product_category:
          type: string
          description: |
            Name of the category to which the specific good belongs to,
            according to the selling merchant's categorization, e.g. "Phones".
          example: Phones
        product_name:
          type: string
          description: |
            Name of the good purchased.
          example: iPhone 14 Pro Max
        account_registration_date:
          type: string
          format: date-time
          description: |
            Date and time that the account was registered (ISO 8601 format),
            e.g. "2023-08-16T15:00:00Z".

            If a timezone is not specified we assume UTC.
          example: '2023-08-16T15:00:00Z'
        account_last_modified:
          $ref: '#/components/schemas/EmdMarketplaceAccountLastModified'
        seller_rating:
          type: number
          description: |
            Current rating of the good purchased according
            to the marketplace's rating scale, e.g. 5
          example: 5
        number_of_trades:
          type: integer
          description: |
            Number of trades the sub-merchant did in the last 12 months, e.g. 23
          example: 23
        volume_of_trades:
          type: integer
          description: |
            Volumes of trades the sub-merchant did in the last 12 months,
            e.g. 230
          example: 230
    EmdMarketplaceWinnerInfo:
      type: object
      description: |
        Details related to the winner involved in the marketplace order.
      required:
        - account_registration_date
        - account_last_modified
        - number_of_trades
      properties:
        unique_account_identifier_winner:
          type: object
          description: Details about the winner.
          properties:
            email:
              type: string
              description: |
                Winner's email address, e.g. "winner@mail.com"
            phone_number:
              type: string
              description: Winner's phone number, e.g. "97712123"
              example: '97712123'
            other:
              type: string
        account_registration_date:
          type: string
          format: date-time
          description: |
            Date and time that the account was registered (ISO 8601 format),
            e.g. "2023-08-16T15:00:00Z".

            If a timezone is not specified we assume UTC.
          example: '2023-08-16T15:00:00Z'
        account_last_modified:
          $ref: '#/components/schemas/EmdMarketplaceAccountLastModified'
        number_of_trades:
          type: integer
          description: |
            Number of trades the winner did in the last 12 months, e.g. 23
          example: 23
        volume_of_trades:
          type: integer
          description: |
            Volumes of trades the winner did in the last 12 months,
            e.g. 230
          example: 230
    EmdAirReservationDetailsItinerary:
      type: object
      required:
        - departure
        - arrival
        - carrier
        - departure_date
        - ticket_delivery_method
        - ticket_delivery_recipient
      properties:
        departure:
          type: string
          description: IATA Airport Code (three letters), e.g. "OSL"
          example: OSL
        departure_city:
          type: string
          description: City the flight departs from, e.g. "Oslo"
          example: Oslo
        arrival:
          type: string
          description: IATA Airport Code (three letters), e.g. "MUC"
          example: MUC
        arrival_city:
          type: string
          description: City the flight arrives in, e.g. "Munich"
          example: Munich
        carrier:
          type: string
          description: IATA Airline standard (two letters or digits), e.g. "LH"
          example: LH
        segment_price:
          type: integer
          description: |
            Price for that specific segment of the flight
            in smallest unit of local currency, e.g. 200000
          example: 200000
        departure_date:
          type: string
          description: |
            Departure date (ISO 8601 format), e.g. "2023-08-16T15:00:00Z"

            If a timezone is not specified, we assume UTC.
          example: '2023-08-16T15:00:00Z'
        ticket_delivery_method:
          type: string
          enum:
            - pick_up
            - email
            - post
            - phone
          example: phone
        ticket_delivery_recipient:
          type: string
          description: >
            Name of the recipient the ticket is delivered to, e.g. "Maximilian".


            If email or phone, then use either the email address or the phone
            number respectively.
          example: '97712123'
        passenger_id:
          type: array
          description: IDs of all the passengers included in this itinerary.
          example:
            - 1
          items:
            type: integer
        class:
          type: string
          description: Travel class, e.g. "First Class"
          example: First Class
    EmdTravelInsurance:
      type: object
      properties:
        insurance_company:
          type: string
          description: >-
            Name of the company which offers the insurance, e.g. "Oopsie
            Insurance Ltd."
          example: Oopsie Insurance Ltd.
        insurance_type:
          type: string
          enum:
            - cancellation
            - travel
            - cancellation_travel
            - bankruptcy
          description: Type of insurance, e.g. "travel"
          example: travel
        insurance_price:
          type: integer
          description: |
            Price of the insurance in smallest unit of local currency,
            e.g. 50000
          example: 50000
    EmdTravelPassenger:
      type: object
      required:
        - first_name
        - last_name
      properties:
        id:
          type: integer
          description: Passenger id, e.g. 1
          example: 1
        title:
          type: string
          enum:
            - mr
            - mrs
            - ms
            - ''
          description: |
            Passenger title, e.g. "mr".

            Blank if under 12 years.
          example: mr
        first_name:
          type: string
          description: First name of the passenger, e.g. "Paul"
          example: Paul
        last_name:
          type: string
          description: Last name of the passenger, e.g. "Lamb"
          example: Lamb
    EmdBusReservationDetailsItinerary:
      type: object
      required:
        - departure_city
        - arrival_city
        - carrier
        - departure_date
        - ticket_delivery_method
        - ticket_delivery_recipient
      properties:
        departure_city:
          type: string
          description: City the bus departs from, e.g. "Oslo"
          example: Oslo
        arrival_city:
          type: string
          description: City the bus arrives in, e.g. "Munich"
          example: Munich
        carrier:
          type: string
          description: Name of transportation company. "Big Bus Travels Ltd."
          example: Big Bus Travels Ltd.
        segment_price:
          type: integer
          description: |
            Price for that specific segment of the bus journey
            in smallest unit of local currency, e.g. 200000
          example: 200000
        departure_date:
          type: string
          description: |
            Departure date (ISO 8601 format), e.g. "2023-08-16T15:00:00Z".

            If a timezone is not specified, we assume UTC.
          example: '2023-08-16T15:00:00Z'
        ticket_delivery_method:
          type: string
          enum:
            - pick_up
            - email
            - post
            - phone
          example: phone
        ticket_delivery_recipient:
          type: string
          description: >
            Name of the recipient the ticket is delivered to, e.g. "Maximilian".


            If email or phone, then use either the email address or the phone
            number respectively.
          example: '97712123'
        passenger_id:
          type: array
          description: IDs of all the passengers included in this itinerary.
          example:
            - 1
          items:
            type: integer
        class:
          type: string
          description: Travel class, e.g. "First Class"
          example: First Class
    EmdTrainReservationDetailsItinerary:
      type: object
      required:
        - departure_city
        - arrival_city
        - carrier
        - departure_date
        - ticket_delivery_method
        - ticket_delivery_recipient
        - passenger_id
      properties:
        departure_city:
          type: string
          description: City the train departs from, e.g. "Oslo"
          example: Oslo
        arrival_city:
          type: string
          description: City the train arrives in, e.g. "Munich"
          example: Munich
        carrier:
          type: string
          description: Name of transportation company. "Big Train Travels Ltd."
          example: Big Train Travels Ltd.
        segment_price:
          type: integer
          description: |
            Price for that specific segment of the train journey
            in smallest unit of local currency, e.g. 200000
          example: 200000
        departure_date:
          type: string
          description: |
            Departure date (ISO 8601 format), e.g. "2023-08-16T15:00:00Z".

            If a timezone is not specified, we assume UTC.
          example: '2023-08-16T15:00:00Z'
        ticket_delivery_method:
          type: string
          enum:
            - pick_up
            - email
            - post
            - phone
          example: phone
        ticket_delivery_recipient:
          type: string
          description: >
            Name of the recipient the ticket is delivered to, e.g. "Maximilian".


            If email or phone, then use either the email address or the phone
            number respectively.
          example: '97712123'
        passenger_id:
          type: array
          description: IDs of all the passengers included in this itinerary.
          example:
            - 1
          items:
            type: integer
        class:
          type: string
          description: Travel class, e.g. "First Class"
          example: First Class
    EmdFerryReservationDetailsItinerary:
      type: object
      required:
        - departure_city
        - arrival_city
        - carrier
        - departure_date
        - ticket_delivery_method
        - ticket_delivery_recipient
      properties:
        departure_city:
          type: string
          description: City the ferry departs from, e.g. "Oslo"
          example: Oslo
        arrival_city:
          type: string
          description: City the ferry arrives in, e.g. "Munich"
          example: Munich
        carrier:
          type: string
          description: Name of transportation company. "Big Ferry Travels Ltd."
          example: Big Ferry Travels Ltd.
        segment_price:
          type: integer
          description: |
            Price for that specific segment of the ferry journey
            in smallest unit of local currency, e.g. 200000
          example: 200000
        departure_date:
          type: string
          description: |
            Departure date (ISO 8601 format), e.g. "2023-08-16T15:00:00Z".

            If a timezone is not specified, we assume UTC.
          example: '2023-08-16T15:00:00Z'
        ticket_delivery_method:
          type: string
          enum:
            - pick_up
            - email
            - post
            - phone
          example: phone
        ticket_delivery_recipient:
          type: string
          description: >
            Name of the recipient the ticket is delivered to, e.g. "Maximilian".


            If email or phone, then use either the email address or the phone
            number respectively.
          example: '97712123'
        passenger_id:
          type: array
          description: IDs of all the passengers included in this itinerary.
          example:
            - 1
          items:
            type: integer
        class:
          type: string
          description: Travel class, e.g. "First Class"
          example: First Class
    EmdHotelReservationDetailsItinerary:
      type: object
      required:
        - start_time
        - end_time
        - number_of_rooms
        - passenger_id
        - ticket_delivery_method
        - ticket_delivery_recipient
        - hotel_price
      properties:
        hotel_name:
          type: string
          description: Name of the hotel, e.g. "Premium Hotel"
          example: Premium Hotel
        address:
          type: object
          description: Address details of the hotel.
          required:
            - city
            - country
          properties:
            street_address:
              type: string
              description: Street address of the hotel, e.g. "Karl Johans gt. 31"
              example: Karl Johans gt. 31
            postal_code:
              type: string
              description: Postal code of the hotel, e.g. "0159"
              example: '0159'
            city:
              type: string
              description: City the hotel is located in, e.g. "Oslo"
              example: Oslo
            country:
              type: string
              description: >
                Country the hotel is located in (ISO 3166-1 alpha-2 format),
                e.g. "NO",
              example: 'NO'
        start_time:
          type: string
          description: >
            Start time of the hotel stay (ISO 8601 format), e.g.
            "2023-08-16T15:00:00Z".


            If a timezone is not specified, we assume UTC.
          example: '2023-08-16T15:00:00Z'
        end_time:
          type: string
          description: >
            End time of the hotel stay (ISO 8601 format), e.g.
            "2023-08-20T15:00:00Z".


            If a timezone is not specified, we assume UTC.
          example: '2023-08-20T15:00:00Z'
        number_of_rooms:
          type: integer
          description: Number of rooms booked, e.g. 2
          example: 2
        passenger_id:
          type: array
          description: IDs of all the passengers included in this itinerary.
          example:
            - 1
          items:
            type: integer
        ticket_delivery_method:
          type: string
          enum:
            - pick_up
            - email
            - post
            - phone
          example: phone
        ticket_delivery_recipient:
          type: string
          description: >
            Name of the recipient the ticket is delivered to, e.g. "Maximilian".


            If email or phone, then use either the email address or the phone
            number respectively.
          example: '97712123'
        hotel_price:
          type: integer
          description: >
            Price for the hotel stay in smallest unit of local currency, e.g.
            200000
          example: 200000
        class:
          type: string
          description: Travel class, e.g. "First Class"
          example: First Class
    EmdCarRentalReservationDetailsItinerary:
      type: object
      required:
        - rental_company
        - start_time
        - end_time
      properties:
        rental_company:
          type: string
          description: Name of the car rental company, e.g. "Premium Cars Ltd."
          example: Premium Cars
        drivers_id:
          type: array
          description: Driver IDs.
          items:
            type: integer
          example:
            - 1
        pick_up_location:
          type: object
          description: Details related to the pick up location.
          required:
            - city
            - country
          properties:
            street_address:
              type: string
              description: >-
                Street address where the car should be picked up, e.g. "Karl
                Johans gt. 31"
              example: Karl Johans gt. 31
            postal_code:
              type: string
              description: Postal code where the car should be picked up, e.g. "0159"
              example: '0159'
            city:
              type: string
              description: City where the car should be picked up, e.g. "Oslo"
              example: Oslo
            country:
              type: string
              description: >
                Country where the car should be picked up (ISO 3166-1 alpha-2
                format), e.g. "NO",
              example: 'NO'
        drop_off_location:
          type: object
          description: Details related to the drop off location.
          required:
            - city
            - country
          properties:
            street_address:
              type: string
              description: >-
                Street address where the car should be dropped off, e.g. "Karl
                Johans gt. 31"
              example: Karl Johans gt. 31
            postal_code:
              type: string
              description: Postal code where the car should be dropped off, e.g. "0159"
              example: '0159'
            city:
              type: string
              description: City where the car should be dropped off, e.g. "Oslo"
              example: Oslo
            country:
              type: string
              description: >
                Country where the car should be dropped off (ISO 3166-1 alpha-2
                format), e.g. "NO"
              example: 'NO'
        start_time:
          type: string
          description: >
            Start time of the car rental reservation (ISO 8601 format), e.g.
            "2023-08-16T15:00:00Z".


            If a timezone is not specified, we assume UTC.
          example: '2023-08-16T15:00:00Z'
        end_time:
          type: string
          description: >
            End time of the car rental reservation (ISO 8601 format), e.g.
            "2023-08-20T15:00:00Z".


            If a timezone is not specified, we assume UTC.
          example: '2023-08-20T15:00:00Z'
        car_price:
          type: integer
          description: >
            Price for the car rental reservation in smallest unit of local
            currency, e.g. 500000
          example: 500000
        class:
          type: string
          description: Travel class, e.g. "Premium Cars Premium Class"
          example: Premium Cars Premium Class
    EmdMarketplaceAccountLastModified:
      type: object
      required:
        - password
        - email
        - listing
        - login
        - address
      properties:
        password:
          type: string
          format: date-time
          description: |
            Date and time that the password was last modified (ISO 8601 format),
            e.g. "2023-08-17T15:00:00Z".

            If a timezone is not specified we assume UTC.
          example: '2023-08-17T15:00:00Z'
        email:
          type: string
          format: date-time
          description: |
            Date and time that the email was last modified (ISO 8601 format),
            e.g. "2023-08-17T15:00:00Z".

            If a timezone is not specified we assume UTC.
          example: '2023-08-17T15:00:00Z'
        listing:
          type: string
          format: date-time
          description: >
            Date and time that the listing details were last modified (ISO 8601
            format),

            e.g. "2023-08-17T15:00:00Z".


            If a timezone is not specified we assume UTC.
          example: '2023-08-17T15:00:00Z'
        login:
          type: string
          format: date-time
          description: >
            Date and time that the login details were last changed (ISO 8601
            format),

            e.g. "2023-08-17T15:00:00Z".


            If a timezone is not specified we assume UTC.
          example: '2023-08-17T15:00:00Z'
        address:
          type: string
          format: date-time
          description: >
            Date and time that the (physical) address was last modified (ISO
            8601 format),

            e.g. "2023-08-17T15:00:00Z".


            If a timezone is not specified we assume UTC.
          example: '2023-08-17T15:00:00Z'
  responses:
    AccessForbidden:
      description: Access forbidden, invalid JWT token was used
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource was not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    JWT:
      type: http
      description: >
        Bearer authentication (token authentication) should be used for
        accessing the API.


        Use [Get Token](/api-reference/authenticate/aid_auths_oauth_token_post)
        to get an access token for client credentials.

        Pass the token in the request header:

            Authorization: Bearer {access_token}

        where the **access_token** is JSON Web Tokens (JWT).
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.