> ## 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 payment state

> Get payment state by paymentId.



## OpenAPI

````yaml openapi/payment-v1.json GET /v1/payments/{paymentId}
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/{paymentId}:
    get:
      tags:
        - Service2Service
      summary: Get payment state
      description: Get payment state by paymentId.
      parameters:
        - name: paymentId
          in: path
          description: The payment identifier
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PaymentCoordinator.Api.CQRS.Payment.Dto.GetPaymentStateResponse
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/LoopFoundation.Commons.Contracts.WebServiceError
components:
  schemas:
    PaymentCoordinator.Api.CQRS.Payment.Dto.GetPaymentStateResponse:
      required:
        - state
      type: object
      properties:
        state:
          $ref: >-
            #/components/schemas/PaymentCoordinator.Domain.Entities.TransactionState
      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.TransactionState:
      enum:
        - WaitingMemberConfirmation
        - WaitingPosCapture
        - Captured
        - Canceled
        - WaitingRefund
        - Refunded
        - WaitingExternalAction
      type: string
  securitySchemes:
    Bearer:
      type: apiKey
      description: >-
        JWT Authorization header using the Bearer scheme. Example:
        "Authorization: Bearer {token}"
      name: Authorization
      in: header

````