> ## 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.

# Get payments

> Get payments by receiptId.



## OpenAPI

````yaml openapi/payment-v1.json GET /v1/payments
openapi: 3.0.4
info:
  title: PaymentCoordinator.Api
  version: v1
servers:
  - url: https://{host}/payment
    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/payments:
    get:
      tags:
        - Service2Service
      summary: Get payments
      description: Get payments by receiptId.
      parameters:
        - name: receiptId
          in: query
          description: The receipt identifier
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/PaymentCoordinator.Api.Controllers.Service2Service.PaymentController.Payment
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/LoopFoundation.Commons.Contracts.WebServiceError
components:
  schemas:
    PaymentCoordinator.Api.Controllers.Service2Service.PaymentController.Payment:
      required:
        - amount
        - creationDate
        - memberId
        - operationId
        - paymentId
        - paymentMethods
        - state
        - type
      type: object
      properties:
        paymentId:
          minLength: 1
          type: string
          description: The payment identifier
        operationId:
          minLength: 1
          type: string
          description: >-
            The operationId for the current payment. Used to ensure
            transactional idempotency
        memberId:
          minLength: 1
          type: string
          description: The member identifier
        originalPaymentId:
          type: string
          description: The original payment identifier
          nullable: true
        amount:
          type: number
          description: The total amount used for the current transaction
          format: double
        type:
          $ref: >-
            #/components/schemas/PaymentCoordinator.Domain.Entities.TransactionType
        state:
          $ref: >-
            #/components/schemas/PaymentCoordinator.Domain.Entities.TransactionState
        creationDate:
          type: string
          description: The timestamp of the creation of the transaction
          format: date-time
        paymentMethods:
          type: array
          items:
            $ref: >-
              #/components/schemas/PaymentCoordinator.Api.Controllers.Service2Service.PaymentController.Payment.PaymentMethod
          description: The collection of the selected payment methods
      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
    PaymentCoordinator.Domain.Entities.TransactionType:
      enum:
        - Payment
        - Refund
      type: string
    PaymentCoordinator.Domain.Entities.TransactionState:
      enum:
        - WaitingMemberConfirmation
        - WaitingPosCapture
        - Captured
        - Canceled
        - WaitingRefund
        - Refunded
        - WaitingExternalAction
      type: string
    PaymentCoordinator.Api.Controllers.Service2Service.PaymentController.Payment.PaymentMethod:
      required:
        - state
        - type
      type: object
      properties:
        type:
          $ref: >-
            #/components/schemas/PaymentCoordinator.Domain.Entities.TransactionEntryType
        state:
          $ref: >-
            #/components/schemas/PaymentCoordinator.Domain.Entities.TransactionEntryState
        amount:
          type: number
          description: The amount specified for the current payment method
          format: double
          nullable: true
        metadata:
          type: object
          additionalProperties:
            type: string
            nullable: true
          description: >-
            Optional metadata assigned to the current payment method (e.g.
            selected card information on checkout flow)
          nullable: true
      additionalProperties: false
    PaymentCoordinator.Domain.Entities.TransactionEntryType:
      enum:
        - Bonus
        - Card
        - ExternalCard
        - LoyaltySubscription
      type: string
    PaymentCoordinator.Domain.Entities.TransactionEntryState:
      enum:
        - WaitingReservation
        - WaitingCapture
        - Captured
        - Canceled
        - WaitingRefund
        - Refunded
        - ReservationDeclined
      type: string
  securitySchemes:
    Bearer:
      type: apiKey
      description: >-
        JWT Authorization header using the Bearer scheme. Example:
        "Authorization: Bearer {token}"
      name: Authorization
      in: header

````