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

# List customer portal orders

> Fetch a list of all orders associated with a customer authenticated through their portal login. Requires a bearer token in the `Authorization` header to authenticate the customer's access.

- **Responses:**
  - `200`: Returns a list of orders associated with the customer along with metadata.
  - `401`: Unauthorized if the Authorization token is not provided or invalid.



## OpenAPI

````yaml /api-reference/shopper-api.json get /portal/orders
openapi: 3.0.0
info:
  title: Shopper API
  description: Comprehensive API documentation for Blink.
  version: 1.0.0
servers:
  - url: https://api.blink.store/v1
security:
  - bearerAuth: []
paths:
  /portal/orders:
    get:
      tags:
        - Portal
      summary: List customer portal orders
      description: >-
        Fetch a list of all orders associated with a customer authenticated
        through their portal login. Requires a bearer token in the
        `Authorization` header to authenticate the customer's access.


        - **Responses:**
          - `200`: Returns a list of orders associated with the customer along with metadata.
          - `401`: Unauthorized if the Authorization token is not provided or invalid.
      parameters: []
      responses:
        '200':
          description: Portal orders retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PortalOrdersList'
        '401':
          description: Unauthorized - Customer token required.
      security:
        - bearerAuth: []
components:
  schemas:
    PortalOrdersList:
      type: object
      properties:
        meta:
          type: object
          properties:
            total:
              type: integer
        data:
          type: array
          items:
            type: object
            properties:
              order_id:
                type: string
              amount:
                type: number
              status:
                type: string
              created_at:
                type: string
                format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````