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

# Retrieve a single Marketplace order.

> Returns one single Marketplace order using the Neteven internal order id as the identifier.



## OpenAPI

````yaml /api-reference/openapi.yml get /merchant/orders/{order-id}
openapi: 3.0.1
info:
  title: Neteven Merchant API
  description: This specification describes the Neteven merchant API methods
  contact:
    email: contact@neteven.com
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: '20241113'
servers:
  - description: 'Production API. No Version indicated: the latest will be called.'
    url: https://api-neteven.mylectra.com
  - description: Production environement. Version 1 of the API.
    url: https://api-neteven.mylectra.com/v1
  - description: Neteven Integration environment (not available to external users)
    url: https://api-neteven.dev.mylectra.com
security:
  - accessCode:
      - read
      - write
tags:
  - name: Authentication
    description: Authenticate to be able to use the API.
  - name: Products
    description: Collection of endpoints to submit products.
  - name: ItemsStocks
    description: Collection of endpoints to retrieve and update item quantities.
  - name: ItemsPrices
    description: Collection of endpoints to retrieve and update item prices.
  - name: Orders
    description: Collection of endpoints to retrieve and update marketplace orders.
  - name: OrderLines
    description: Collection of endpoints to update order line statuses.
  - name: Warehouses
    description: Collection of endpoints to create and retrieve warehouses.
  - name: Helpers
    description: Collection of endpoints to retrieve constants.
paths:
  /merchant/orders/{order-id}:
    get:
      tags:
        - Orders
      summary: Retrieve a single Marketplace order.
      description: >-
        Returns one single Marketplace order using the Neteven internal order id
        as the identifier.
      parameters:
        - $ref: '#/components/parameters/xtoken'
        - $ref: '#/components/parameters/accept'
        - $ref: '#/components/parameters/contenttype'
        - $ref: '#/components/parameters/orderId'
      responses:
        '200':
          description: Returns a single order object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    xtoken:
      name: Authorization
      in: header
      description: Bearer JWT token, used to authenticate.
      required: true
      schema:
        type: string
        format: JWT token
        example: >-
          Bearer
          eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJyb2xlcyI6WyJwcm9kdWN0X21hbmFnZXIiLCJ3YXJlaG91c2VfbWFuYWdlciIsIm9yZGVyX21hbmFnZXIiLCJzdG9ja19tYW5hZ2VyIiwicHJpY2VfbWFuYWdlciIsIjEwMDAiXSwiaXNzIjoiYXBpLm5ldGV2ZW4uY29tIiwibG9naW4iOiJhcGktdGVzdC1hY2NvdW50QGVtYWlsLmNvbSIsInJldGFpbGVyX2lkIjpudWxsLCJkZWJ1ZyI6ZmFsc2UsImRlYnVnX2V4cGlyYXRpb25fZHR0IjpudWxsLCJzdWIiOjEwMDAsImlhdCI6MTYzMjEyNTEwNiwiZXhwIjoxNjMyMjExNTA2LCJhdWQiOiJhcGkubmV0ZXZlbi5jb20ifQ.3GfC01HmJl0PS2w16gIcoxgLN52vG5kkDhqNmrkkR4zIGK7ecVfFaZhQ4KCQnimwjWTrExszIE6Oc6d-hC0g-Q
    accept:
      name: Accept
      in: header
      description: type of data accepted
      required: true
      schema:
        type: string
        format: application/json
        example: application/json
    contenttype:
      name: Content-Type
      in: header
      description: type of data returned
      required: true
      schema:
        type: string
        format: application/json
        example: application/json
    orderId:
      name: order-id
      in: path
      description: Neteven internal identifier of the order to retrieve.
      required: true
      schema:
        type: integer
  schemas:
    OrderResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            order:
              $ref: '#/components/schemas/Order'
        metadata:
          $ref: '#/components/schemas/MetaData'
    Order:
      type: object
      description: >-
        An `Order` is the highest level container for Marketplace orders
        integrated within Neteven.
      properties:
        marketplace_id:
          type: integer
          description: >-
            the internal identifier of a Marketplace in the Neteven system. This
            id will never evolve over time.
          example: 7
        marketplace_name:
          type: string
          description: >-
            A human readable translation of the Marketplace id. This field
            should NOT be used to build logic as it is but a mere label.
          example: amazon_fr
        order_id:
          type: integer
          description: internal neteven unique identifier for the order.
          example: 8205835
        marketplace_order_id:
          type: string
          description: The identifier generated by the Marketplace for this specific order.
          example: SANDBOX_8205835
        merchant_order_id:
          type: string
          description: Your own internal identifier for this specific order.
          example: MyOwnOrderID__8205835
        order_lines_count:
          type: integer
          description: >-
            Useful when the query does not return every order line (e.g. status
            filtering)
          example: 1
        date_creation:
          type: string
          format: date-time
          description: '-'
          example: '2014-12-30T17:51:00Z'
        date_sale:
          type: string
          format: date-time
          description: '-'
          example: '2014-12-30T17:51:25Z'
        date_payment:
          type: string
          format: date-time
          description: '-'
          example: '2014-12-30T17:51:25Z'
        payment_method:
          type: string
          description: '-'
          example: CREDIT CARD
        payment_transaction_id:
          type: string
          description: '-'
          example: ABCX452
        marketplace_invoice_id:
          type: string
          description: ' marketplace id for the invoice (if any)'
          example: 102__xa_f
        invoice_id:
          type: integer
          description: internal neteven counter incrementing with every new order.
          example: 1234
        marketplace_customer_id:
          type: string
          description: ' marketplace id for the customer (if any) '
          example: cust_102_xa
        is_test_order:
          type: boolean
          description: ' flag to identify test orders (Neteven created test orders, NOT marketplace created test orders) '
          example: false
        is_gift:
          type: boolean
          description: ' flag to identify is the order is set as a gift by the buyer'
          example: false
        fulfillment_type:
          type: string
          description: >-
            Who is responsible for the order fulfillment. This is determined
            based on order-lines fulfillment types. values are:
            `FulfilledByMerchant`, `FulfilledByMarketplace`,
            `FulfilledByZalando`, `FulfilledByAmazon`, etc. **CAUTION :** if
            values are different for the same order, the value `Mixed` will be
            returned and you will need to look at the fulfillment type of each
            individual order-line.
          example: FulfilledByMerchant
        prices:
          $ref: '#/components/schemas/OrderPrices'
        shipping_information:
          $ref: '#/components/schemas/OrderShippingInformation'
        address_delivery:
          $ref: '#/components/schemas/OrderAddressDelivery'
        address_invoice:
          $ref: '#/components/schemas/OrderAddressInvoice'
        order_lines:
          type: array
          items:
            $ref: '#/components/schemas/OrderLine'
          description: ' '
    MetaData:
      type: object
      properties:
        number_of_results:
          type: integer
          format: int32
        total_count:
          type: integer
          format: int32
        limit:
          type: integer
          format: int32
        offset:
          type: integer
          format: int32
        api_version:
          type: integer
          format: int32
        api_version_expiration_date:
          type: string
          format: date
        messages:
          type: array
          items:
            type: object
            properties:
              type:
                type: string
                example: INFO
              description:
                type: string
                example: This is the last update
    BodyError:
      type: object
      properties:
        status:
          type: string
          description: The status of the request
          example: error
        errors:
          description: The list of errors in the query string.
          type: array
          items:
            type: object
            properties:
              location:
                type: string
                example: querystring
                description: The description of the error
              name:
                type: string
                example: bad-query-param-name
              description:
                type: object
                format: json
                description: >-
                  A json object with error number as a string-type key and the
                  value as a list of string
                example:
                  '0':
                    quantity:
                      - Not a valid integer.
    QueryStringError:
      type: object
      properties:
        status:
          type: string
          description: The status of the request
          example: error
        errors:
          description: The list of errors in the query string.
          type: array
          items:
            type: object
            properties:
              location:
                type: string
                example: querystring
                description: The description of the error
              name:
                type: string
                example: bad-query-param-name
              description:
                description: The description of the error.
                type: array
                items:
                  type: string
                example:
                  - Unknown field.
    ErrorResponse:
      $ref: '#/components/schemas/ResponseStatus'
    OrderPrices:
      type: object
      description: >-
        An `OrderPrices` object cointains price related information at the order
        level.
      properties:
        currency_id:
          type: string
          format: iso-4217
          example: EUR
        total_price_including_taxes_excluding_shipping:
          type: number
          format: decimal
          description: '-'
          example: 94.26
        total_price_excluding_taxes_excluding_shipping:
          type: number
          format: decimal
          description: '-'
          example: 78.55
        total_shipping_cost_including_taxes:
          type: number
          format: decimal
          description: '-'
          example: 15.21
        total_shipping_cost_excluding_taxes:
          type: number
          format: decimal
          description: '-'
          example: 12.32
        total_insurance_amount_excluding_taxes:
          type: number
          format: decimal
          description: '-'
          example: 12.32
        total_insurance_amount_including_taxes:
          type: number
          format: decimal
          description: '-'
          example: 12.32
        processing_fee:
          type: number
          format: decimal
          description: '-'
          example: 12.95
        total_vat_amount_excluding_shipping:
          type: number
          format: decimal
          description: '-'
          example: 12.32
        total_vat_amount_for_shipping_cost:
          type: number
          format: decimal
          description: '-'
          example: 12.32
    OrderShippingInformation:
      type: object
      description: >-
        An `OrderShippingInformation` object contains information related to the
        shipment of the entire order.
      properties:
        carrier_name:
          type: string
          description: ' **LEGACY** : please use the corresponding field at line level'
          example: TestWS1-1-Order001-TrackingInfo-8205835
        tracking_url:
          type: string
          description: ' **LEGACY** : please use the corresponding field at line level'
          example: TestWS1-1-Order001-TrackingURL-8205835
        delivery_instructions:
          type: string
          description: ' - '
        shipping_mode:
          type: string
          description: '-'
        delivery_method:
          type: string
          description: '-'
        comment:
          type: string
          description: free text for merchant to comment
        date_shipping:
          type: string
          format: date-time
          description: ' **LEGACY** : you must set the date at line level with the /ship endpoint'
          example: '2012-08-28T00:00:00Z'
        document_url:
          type: string
          description: ' **LEGACY** : please use the corresponding field at line level'
        tracking_number:
          type: string
          description: ' **LEGACY** : please use the corresponding field at line level'
          example: TestWS1-1-Order001-TrackingNumber-8205835
    OrderAddressDelivery:
      type: object
      description: >-
        An `OrderAddressDelivery` object contains the address where the order
        should be delivered.
      properties:
        title:
          type: string
          description: '-'
          example: M.
        first_name:
          type: string
          description: '-'
          example: Jeanne
        last_name:
          type: string
          description: '-'
          example: Martin
        street1:
          type: string
          description: '-'
          example: 1, Grand rue
        street2:
          type: string
          description: '-'
          example: ' - '
        city:
          type: string
          description: '-'
          example: PARIS
        state:
          type: string
          description: '-'
          example: ' - '
        country_code:
          type: string
          description: '-'
          example: FR
        country:
          type: string
          description: '-'
          example: FRANCE
        postcode:
          type: string
          description: '-'
          example: '75018'
        phone1:
          type: string
          description: '-'
          example: 07 99 88 77 66
        phone2:
          type: string
          description: '-'
          example: 01 22 33 44 55
        fax:
          type: string
          description: '-'
          example: ' - '
        email:
          type: string
          description: '-'
          example: 6hf9hdkpfd0Ã§_@marketplace-order.com
        login:
          type: string
          description: '-'
          example: jmartin99
        company_name1:
          type: string
          description: '-'
          example: ' - '
        company_name2:
          type: string
          description: '-'
          example: ' - '
        delivery_relay_name:
          type: string
          description: '-'
        delivery_relay_contractlevel:
          type: string
          description: '-'
        delivery_relay_id:
          type: string
          description: '-'
    OrderAddressInvoice:
      type: object
      description: An `OrderAddressInvoice` object contains customer invoice information.
      properties:
        title:
          type: string
          description: '-'
          example: M.
        first_name:
          type: string
          description: '-'
          example: Jeanne
        last_name:
          type: string
          description: '-'
          example: Martin
        street1:
          type: string
          description: '-'
          example: 1, Grand rue
        street2:
          type: string
          description: '-'
          example: ' - '
        city:
          type: string
          description: '-'
          example: PARIS
        state:
          type: string
          description: '-'
          example: ' - '
        country_code:
          type: string
          description: '-'
          example: FR
        country:
          type: string
          description: '-'
          example: FRANCE
        postcode:
          type: string
          description: '-'
          example: '75018'
        phone1:
          type: string
          description: '-'
          example: 07 99 88 77 66
        phone2:
          type: string
          description: '-'
          example: 01 22 33 44 55
        fax:
          type: string
          description: '-'
          example: ' - '
        email:
          type: string
          description: '-'
          example: 6hf9hdkpfd0Ã§_@marketplace-order.com
        login:
          type: string
          description: '-'
          example: jmartin99
        company_name1:
          type: string
          description: '-'
          example: ' - '
        company_name2:
          type: string
          description: '-'
          example: ' - '
    OrderLine:
      type: object
      description: >-
        An `OrderLine` object represents a data surrounding a product ordered by
        a Marketplace customer.
      properties:
        order_line_id:
          type: integer
          description: '-'
          example: 10402404
        marketplace_order_line_id:
          type: string
          description: '-'
          example: SANDBOX_8205835_4
        merchant_order_line_id:
          type: string
          description: '-'
        date_canceled:
          type: string
          format: date-time
          description: '-'
        date_refund:
          type: string
          format: date-time
          description: '-'
          example: '2021-01-20T08:51:00Z'
        status_current:
          type: string
          enum:
            - RETURNED
            - REFUNDED
            - CANCELED
            - SHIPPED
            - SHIPPING
            - TO SHIP
            - AWAITING PAYMENT CONFIRMATION
            - TO CONFIRM
            - PRODUCT UNKNOWN
            - UNDETERMINED
          description: '-'
        stock_released:
          type: boolean
          description: |-
            **NOTE:** returns `True` if warehouse_shipping_status > 0 
             otherwise, returns `False` 
             when PATCHING, if value sent is `True` then set `warehouse_shipping_status = 1 (only if val = 0)` 
        additional_information:
          type: object
          description: Various additional data depending on marketplaces.
          additionalProperties:
            type: string
        fulfillment_type:
          type: string
          description: >-
            Who is responsible for the order-line fulfillment.values are:
            `FulfilledByMerchant`, `FulfilledByMarketplace`,
            `FulfilledByZalando`, `FulfilledByAmazon`, etc.
          example: FulfilledByMerchant
        item:
          $ref: '#/components/schemas/OrderLineItem'
        prices:
          $ref: '#/components/schemas/OrderLinePrices'
        shipping_information:
          $ref: '#/components/schemas/OrderLineShippingInformation'
    ResponseStatus:
      type: object
      properties:
        message:
          type: string
          description: The description of the message
          example: Message description
        code:
          type: integer
          description: The code of the message
          example: 400
        title:
          type: string
          description: The title of the message
          example: Message Title
    OrderLineItem:
      type: object
      description: An `OrderLineItem` object corresponds to the actual product ordered.
      properties:
        sku:
          type: string
          description: 'Stock Keeping Unit: Your unique identifier for a given item.'
          example: ABCDX123_XS
        ean:
          type: string
          format: ean 13
          example: '1234567891230'
        marketplace_product_id:
          type: string
          description: The internal identifier of the Marketplace of that specific item.
          example: SANDBOX_PRODUCT_3029_D4
        quantity:
          type: integer
          description: quantity ordered for that item
          example: 3
        warehouse_name:
          type: string
          description: '-'
          example: My Warehouse
        warehouse_id:
          type: integer
          description: Neteven internal id for that warehouse
          example: 3
        merchant_item_serial_number:
          type: string
          description: '-'
          example: ABCDX123
    OrderLinePrices:
      type: object
      description: >-
        An `OrderLinePrices` object describes the price value for that
        particular order line.
      properties:
        currency_id:
          type: string
          format: iso-4217
          example: EUR
        total_price_including_taxes_excluding_shipping:
          type: number
          format: decimal
          description: '-'
          example: 94.26
        total_price_excluding_taxes_excluding_shipping:
          type: number
          format: decimal
          description: '-'
          example: 78.55
        total_shipping_cost_including_taxes:
          type: number
          format: decimal
          description: '-'
          example: 15.21
        total_shipping_cost_excluding_taxes:
          type: number
          format: decimal
          description: '-'
          example: 12.32
        total_insurance_amount_excluding_taxes:
          type: number
          format: decimal
          description: '-'
          example: 15.21
        total_insurance_amount_including_taxes:
          type: number
          format: decimal
          description: '-'
          example: 12.32
        amount_refunded:
          type: number
          format: decimal
          description: '-'
          example: 10.1
        fee:
          type: number
          format: decimal
          description: '-'
          example: 10.1
        ecotax:
          type: number
          format: decimal
          description: '-'
          example: 10.1
        is_vat_calculated_by_marketplace:
          type: boolean
          description: >-
            Flag to indicate whether the vat amount was calculated directly by
            the marketplace. If `false`, Neteven is responsible for vat amount
            calculation.
        total_vat_amount_excluding_shipping:
          type: number
          format: decimal
          description: '-'
          example: 12.32
        total_vat_amount_for_shipping_cost:
          type: number
          format: decimal
          description: '-'
          example: 12.32
    OrderLineShippingInformation:
      required:
        - date_shipping
      type: object
      description: >-
        An `OrderLineShippingInformation` object describes the shipping
        information for a specific order line. It is NOT to be mistaken with the
        `OrderShippingInformation` which operates at a higher (order) level.
      properties:
        date_shipping:
          type: string
          format: date-time
          description: '-'
          example: '2012-08-28T00:00:00Z'
        date_estimated_delivery:
          type: string
          format: date-time
          description: ' only for specific marketplaces'
        return_tracking_number:
          type: string
          description: '-'
        return_tracking_url:
          type: string
          description: '-'
        return_carrier_name:
          type: string
          description: '-'
        return_reason:
          type: string
          description: '-'
        return_key:
          type: string
          description: '-'
        document_url:
          type: string
          description: '-'
        tracking_number:
          type: string
          description: '-'
          example: TestWS1-1-Order001-TrackingNumber-8205835
        shipper_id:
          type: string
          description: '-'
        shipping_mode:
          type: string
          description: '-'
        carrier_name:
          type: string
          description: '-'
          example: TestWS1-1-Order001-TrackingInfo-8205835
        tracking_url:
          type: string
          description: '-'
          example: TestWS1-1-Order001-TrackingURL-8205835
  responses:
    BadRequest:
      description: Returns an error if request is invalid.
      content:
        application/json:
          schema:
            oneOf:
              - $ref: '#/components/schemas/BodyError'
              - $ref: '#/components/schemas/QueryStringError'
              - $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: The specified resource was not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'

````

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