> ## 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 Marketplace order returns.

> Retrieve multiple orders returns based on user filters. Only for marktplaces which support it.



## OpenAPI

````yaml /api-reference/openapi.yml get /merchant/orders/returns
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/returns:
    get:
      tags:
        - Orders
      summary: Retrieve Marketplace order returns.
      description: >-
        Retrieve multiple orders returns based on user filters. Only for
        marktplaces which support it.
      parameters:
        - $ref: '#/components/parameters/xtoken'
        - $ref: '#/components/parameters/accept'
        - $ref: '#/components/parameters/contenttype'
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/offset'
        - $ref: '#/components/parameters/marketplacedatecreatedfrom'
        - $ref: '#/components/parameters/marketplacedatecreatedto'
        - $ref: '#/components/parameters/marketplacedateupdatedfrom'
        - $ref: '#/components/parameters/marketplacedateupdatedto'
        - $ref: '#/components/parameters/marketplaceids'
        - $ref: '#/components/parameters/returnstatus'
        - $ref: '#/components/parameters/orderids'
        - $ref: '#/components/parameters/marketplaceorderids'
        - $ref: '#/components/parameters/marketplacereturnids'
      responses:
        '200':
          description: return an array of Marketplace order returns.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderReturnsResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
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
    limit:
      name: limit
      in: query
      description: Limit the number of results returned.
      required: false
      schema:
        type: integer
        default: 25
    offset:
      name: offset
      in: query
      description: >-
        offset of the query. Use in conjunction with limit to browse through
        results.
      required: false
      schema:
        type: integer
        default: 0
    marketplacedatecreatedfrom:
      name: marketplace_date_created_from
      in: query
      description: >-
        Mandatory if `marketplace_date_created_to` is used **Note:** you cannot
        retrieve returns older than 90 days. (based on
        marketplace_date_created).
      required: false
      schema:
        type: string
        format: date-time
    marketplacedatecreatedto:
      name: marketplace_date_created_to
      in: query
      description: 'Mandatory if `marketplace_date_created_from` is used '
      required: false
      schema:
        type: string
        format: date-time
    marketplacedateupdatedfrom:
      name: marketplace_date_updated_from
      in: query
      description: >-
        Mandatory if `marketplace_date_updated_to` is used **Note:** you cannot
        retrieve orders older than 90 days. (based on date_sale).
      required: false
      schema:
        type: string
        format: date-time
    marketplacedateupdatedto:
      name: marketplace_date_updated_to
      in: query
      description: 'Mandatory if `marketplace_date_updated_from` is used '
      required: false
      schema:
        type: string
        format: date-time
    marketplaceids:
      name: marketplace_ids
      in: query
      description: array of marketplace_ids separated by `;`
      required: false
      schema:
        type: array
        items:
          type: integer
    returnstatus:
      name: return_status
      in: query
      description: by default, returns order returns regardless of their status
      required: false
      schema:
        type: string
        enum:
          - PENDING
          - REJECTED
          - SHIPPED
          - NOT_RECEIVED
          - RECEIVED_REFUSED
          - RECEIVED_ACCEPTED
    orderids:
      name: order_ids
      in: query
      description: list of neteven `order_id`, separated by a `;`.
      required: false
      schema:
        type: array
        items:
          type: integer
    marketplaceorderids:
      name: marketplace_order_ids
      in: query
      description: list of `marketplace_order_id`, separated by a `;`.
      required: false
      schema:
        type: array
        items:
          type: string
    marketplacereturnids:
      name: marketplace_return_ids
      in: query
      description: list of `marketplace_return_id`, separated by a `;`.
      required: false
      schema:
        type: array
        items:
          type: string
  schemas:
    OrderReturnsResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            returns:
              type: array
              items:
                $ref: '#/components/schemas/OrderReturn'
        metadata:
          $ref: '#/components/schemas/MetaData'
    OrderReturn:
      type: object
      description: >-
        An `OrderReturn` is the highest level container for Marketplace order
        returns that Neteven pulled from Marketplaces. Its purpose is to expose
        which items within specific Marketplace orders are being returned.
      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
        marketplace_return_id:
          type: string
          description: >-
            The identifier generated by the Marketplace for this specific
            return.
          example: AHBC1289-B35
        return_status:
          type: string
          enum:
            - PENDING
            - REJECTED
            - SHIPPED
            - NOT_RECEIVED
            - RECEIVED_REFUSED
            - RECEIVED_ACCEPTED
          description: The Neteven standardized return status
          example: PENDING
        date_created:
          type: string
          format: date-time
          description: '-'
          example: '2014-12-30T17:51:00Z'
        date_updated:
          type: string
          format: date-time
          description: '-'
          example: '2014-12-30T17:51:25Z'
        stock_location:
          $ref: '#/components/schemas/StockLocation'
        return_address:
          $ref: '#/components/schemas/OrderReturnAddress'
        additional_information:
          type: object
          description: Various additional data depending on marketplaces.
          additionalProperties:
            type: string
        return_lines:
          type: array
          items:
            $ref: '#/components/schemas/OrderReturnLine'
          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'
    StockLocation:
      type: object
      description: >-
        A `StockLocation` is the virtual representation of a given shipping
        point or channel on the Marketplace side. It is only available on very
        specific Marketplaces.
      properties:
        stock_location_id:
          type: integer
          description: Unique Neteven identifier for a given stock location id
          example: 1
        name:
          type: string
          description: Name of the stock location
          example: My own stock location
        additional_information:
          type: object
          description: Various additional data depending on marketplaces.
          additionalProperties:
            type: string
    OrderReturnAddress:
      type: object
      description: >-
        An `OrderReturnAddress` object contains the address where the return
        will be sent (Only for specific Marketplaces).
      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: ''
        login:
          type: string
          description: '-'
          example: jmartin99
        company_name1:
          type: string
          description: '-'
          example: ' - '
        company_name2:
          type: string
          description: '-'
          example: ' - '
    OrderReturnLine:
      type: object
      description: >-
        A `OrderReturLine` is a given item associated to a return. It
        corresponds to one or several items ordered.
      properties:
        order_line_id:
          type: integer
          description: Unique Neteven identifier for a given order line id
          example: 123
        marketplace_order_line_id:
          type: string
          description: Marketplace internal identifier for a given order line id
          example: abc-123
        returned_quantity:
          type: integer
          description: Quantity returned for this specific return line item.
          example: 2
        item:
          type: object
          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_identifier:
              type: string
              description: >-
                The internal identifier of the Marketplace of that specific
                item.
              example: SANDBOX_PRODUCT_3029_D4
            additional_information:
              type: object
              description: Various additional data depending on marketplaces.
              additionalProperties:
                type: string
    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
  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'

````

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