> ## 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 the status of an asynchroneous status update request.

> This endpoint is used to check the status of the asynchroneous status update request send previously via the `PATCH confirm, cancel, ship, refund` endpoints.



## OpenAPI

````yaml /api-reference/openapi.yml get /merchant/orders/{order-id}/lines/{order-line-id}/status
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}/lines/{order-line-id}/status:
    get:
      tags:
        - OrderLines
      summary: Retrieve the status of an asynchroneous status update request.
      description: >-
        This endpoint is used to check the status of the asynchroneous status
        update request send previously via the `PATCH confirm, cancel, ship,
        refund` endpoints.
      parameters:
        - $ref: '#/components/parameters/xtoken'
        - $ref: '#/components/parameters/accept'
        - $ref: '#/components/parameters/contenttype'
        - $ref: '#/components/parameters/orderId'
        - $ref: '#/components/parameters/orderLineId'
      responses:
        '200':
          description: >-
            The response in itself does NOT confirm that the status update
            request send previously was accepted by the Marketplace. In order to
            know the actual status feedback, one must read the
            `status_request.state` value.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderLineStatusResult'
        '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
    orderLineId:
      name: order-line-id
      in: path
      description: >-
        Neteven internal identifier of an order's specific order_line to
        retrieve.
      required: true
      schema:
        type: integer
  schemas:
    OrderLineStatusResult:
      type: object
      properties:
        data:
          type: object
          properties:
            order_line_status:
              $ref: '#/components/schemas/OrderLineStatus'
        metadata:
          $ref: '#/components/schemas/MetaData'
    OrderLineStatus:
      type: object
      description: >-
        An `OrderLineStatus` object is returned by `GET /order_lines/status`. It
        is used as a light object to verify to state of order lines and ensure
        that they are properly being updated.
      properties:
        order_line_id:
          type: integer
          description: The Neteven internal identifier for a specific order line.
          example: 10402404
        marketplace_order_line_id:
          type: string
          description: '-'
          example: SANDBOX_8205835_4
        merchant_order_line_id:
          type: string
          description: '-'
        sku:
          type: string
          description: '-'
          example: D4
        ean:
          type: string
          format: ean 13
          example: '1234567891230'
        status_current:
          type: string
          enum:
            - RETURNED
            - REFUNDED
            - CANCELED
            - SHIPPED
            - SHIPPING
            - TO SHIP
            - AWAITING PAYMENT CONFIRMATION
            - TO CONFIRM
            - PRODUCT UNKNOWN
            - UNDETERMINED
          description: '-'
          example: SHIPPED
        status_request:
          $ref: '#/components/schemas/OrderLineStatusRequest'
    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'
    OrderLineStatusRequest:
      type: object
      description: >-
        An `OrderLineStatusRequest` object describes the last found action
        requested on a given order line, in the form of a change of status
        (cancelation, shipping confirmation, etc). It is by essence a temporary
        object: it is bound to a given action and will disappear a few hours
        after the action is done (either in success or failure).
      properties:
        action_id:
          type: integer
          description: Neteven internal id of the action. Useful for debugging.
          example: 342090635
        action_label:
          type: string
          enum:
            - CONFIRMATION REQUEST
            - CANCELATION REQUEST
            - SHIPPING CONFIRMATION REQUEST
            - REFUND REQUEST
        date_start:
          type: string
          format: date-time
          nullable: true
          description: ' the date when the action was recorded by the Neteven system'
        date_end:
          type: string
          format: date-time
          nullable: true
          description: ' the date when the action was finished, either succeeding or failing'
        state:
          type: string
          description: >-
            This does NOT correspond to the `order_line_status` but to the state
            of the requested status change.
          enum:
            - PENDING
            - CANCELED
            - FAILED
            - SUCCESS
            - UNDETERMINED
          example: SUCCESS
        message:
          type: string
          description: ' the message linked to the action, if any.'
    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'
    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.