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

# Get Payment Session Status

> Get a payment session (public polling endpoint). Returns non-sensitive fields only — used by the shopper approval page to display payment details and poll for status changes.



## OpenAPI

````yaml get /v1/payment-sessions/{id}
openapi: 3.1.0
info:
  title: BKey API
  description: Biometric approval infrastructure for AI agents — OAuth 2.1 + CIBA
  version: 1.0.0
  contact:
    name: BKey
    url: https://bkey.id
    email: dev@bkey.id
  license:
    name: Apache-2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
  - url: https://api.bkey.id
    description: Production
security:
  - bearerAuth: []
tags:
  - name: OAuth
    description: OAuth 2.1 token, device auth, CIBA, revocation
  - name: Checkout
    description: Agent-initiated checkout with biometric approval
  - name: Vault
    description: Encrypted secret storage with biometric access
  - name: Payments
    description: Payment methods and shared payment tokens
  - name: Identity
    description: DID and identity management
paths:
  /v1/payment-sessions/{id}:
    get:
      tags:
        - Payments
      summary: Get Payment Session Status
      description: >-
        Get a payment session (public polling endpoint). Returns non-sensitive
        fields only — used by the shopper approval page to display payment
        details and poll for status changes.
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  paymentSession:
                    type: object
                    properties:
                      id:
                        type: string
                      status:
                        type: string
                        description: >-
                          One of: pending, awaiting_approval, approved,
                          completed, rejected, failed, expired, refunded
                      approvalUrl:
                        type: string
                        description: URL the shopper visits to approve payment
                      amount:
                        type: integer
                        minimum: 0
                      currency:
                        type: string
                        minLength: 3
                        maxLength: 3
                      merchantName:
                        type: string
                      lineItems:
                        type: array
                        items:
                          type: object
                          properties:
                            title:
                              type: string
                            quantity:
                              type: integer
                              exclusiveMinimum: true
                              minimum: 0
                            price:
                              type: integer
                              minimum: 0
                              description: Price in smallest currency unit (e.g., cents)
                          required:
                            - title
                            - quantity
                            - price
                          additionalProperties: false
                      expiresAt:
                        type: string
                        format: date-time
                    required:
                      - id
                      - status
                      - approvalUrl
                      - amount
                      - currency
                      - expiresAt
                    additionalProperties: false
                required:
                  - success
                  - paymentSession
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code
                      message:
                        type: string
                        description: Human-readable error message
                    required:
                      - code
                      - message
                    additionalProperties: false
                required:
                  - success
                  - error
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code
                      message:
                        type: string
                        description: Human-readable error message
                    required:
                      - code
                      - message
                    additionalProperties: false
                required:
                  - success
                  - error
                additionalProperties: false
      security: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: EdDSA-signed JWT obtained via OAuth 2.1 client_credentials or CIBA

````