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

# Close transaction



## OpenAPI

````yaml /payment.openapi.json put /api/transactions/{transactionId}/status
openapi: 3.1.0
info:
  title: payment hub
  description: |
    Focused OpenAPI 3.1 contract for the **launch-payment** endpoint
    (`POST /api/transactions`). The request body is polymorphic on
    `paymentGatewayType`; each gateway sub-schema documents the gateway-specific
    fields. Highlights:

      * `onlineScenario=true` → customer-initiated, Hosted-Checkout / redirect flow
      * `onlineScenario=false` → merchant-initiated debit using a previously
        stored payment method (only valid on gateways that support offline)
      * `supportOfflineScenario` (Stripe / PayerMax only) — when `true` and
        `onlineScenario=true`, the gateway is instructed to remember the card
        so a future off-session (merchant-initiated) charge can succeed.
  version: 1.0.0
  summary: ''
servers:
  - url: https://sbx.api.easybilling.cloud/payment-hub
    description: SBX
  - url: https://api.easybilling.cloud/payment-hub
    description: Production-AWS
security:
  - token: []
tags:
  - name: Payment Hub
paths:
  /api/transactions/{transactionId}/status:
    put:
      tags:
        - Payment Hub
      summary: Close transaction
      parameters:
        - name: transactionId
          in: path
          description: ''
          required: true
          example: '100053'
          schema:
            type: string
        - name: targetStatus
          in: query
          description: ''
          required: false
          example: closed
          schema:
            type: string
        - name: trace-id
          in: header
          description: ''
          required: false
          example: '{{$string.uuid}}'
          schema:
            type: string
            default: '{{$string.uuid}}'
      responses:
        '200':
          description: ''
          content:
            application/octet-stream:
              schema: {}
          headers: {}
      deprecated: false
      security:
        - token: []
components:
  securitySchemes:
    token:
      type: http
      scheme: bearer

````