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

# Returns both primary and related member links



## OpenAPI

````yaml openapi/member-v1.json GET /v1/linked-members/{memberId}
openapi: 3.0.4
info:
  title: MemberService.Api
  version: v1
servers:
  - url: https://{host}/member
    description: Your Lobyco environment
    variables:
      host:
        default: your-environment.lobyco.net
        description: >-
          The API host for your Lobyco environment. Replace it with the host you
          were given — this placeholder does not resolve.
security:
  - Bearer: []
paths:
  /v1/linked-members/{memberId}:
    get:
      tags:
        - Service2Service
      summary: Returns both primary and related member links
      parameters:
        - name: memberId
          in: path
          description: Primary or related member ID
          required: true
          schema:
            type: string
        - name: relationshipType
          in: query
          description: Type of relationship
          schema:
            $ref: >-
              #/components/schemas/MemberService.Domain.Entities.MemberRelationshipType
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/MemberService.Api.Controllers.DTOs.GetLinkedMemberResponse
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/LoopFoundation.Commons.Contracts.WebServiceError
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/LoopFoundation.Commons.Contracts.WebServiceError
components:
  schemas:
    MemberService.Domain.Entities.MemberRelationshipType:
      enum:
        - MergedMembership
        - AdditionalCardHolder
      type: string
    MemberService.Api.Controllers.DTOs.GetLinkedMemberResponse:
      type: object
      properties:
        primaryMemberId:
          type: string
          description: Primary member ID
          nullable: true
        relatedMemberId:
          type: string
          description: Related member ID
          nullable: true
        relationshipType:
          $ref: >-
            #/components/schemas/MemberService.Domain.Entities.MemberRelationshipType
        createdAt:
          type: string
          description: Date and time when the relationship was created
          format: date-time
      additionalProperties: false
    LoopFoundation.Commons.Contracts.WebServiceError:
      required:
        - message
        - name
      type: object
      properties:
        name:
          minLength: 1
          type: string
        message:
          minLength: 1
          type: string
        details:
          nullable: true
      additionalProperties: false
  securitySchemes:
    Bearer:
      type: apiKey
      description: >-
        JWT Authorization header using the Bearer scheme. Example:
        "Authorization: Bearer {token}"
      name: Authorization
      in: header

````