# Settle Payment

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /settle:
    post:
      summary: Settle Payment
      deprecated: false
      description: Verifies payment authorization AND executes settlement on blockchain.
      tags:
        - Kobaru.io Gateway API/API Reference
        - Facilitator
      parameters: []
      responses:
        '200':
          description: Payment settled successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SettleSuccessResponse'
          headers: {}
          x-apidog-name: ''
        '400':
          description: Invalid payment or validation error
          content:
            application/json:
              schema: &ref_0
                $ref: '#/components/schemas/SettleErrorResponse'
          headers: {}
          x-apidog-name: ''
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedResponse'
          headers: {}
          x-apidog-name: ''
        '500':
          description: Internal server error
          content:
            application/json:
              schema: *ref_0
          headers: {}
          x-apidog-name: ''
      security: []
      x-apidog-folder: Kobaru.io Gateway API/API Reference
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1156261/apis/api-26199663-run
components:
  schemas:
    SettleSuccessResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - true
        transaction:
          type: string
        network:
          type: string
        payer:
          type: string
      required:
        - success
        - transaction
        - network
      x-apidog-orders:
        - success
        - transaction
        - network
        - payer
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    SettleErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - false
        errorReason:
          type: string
      required:
        - success
        - errorReason
      x-apidog-orders:
        - success
        - errorReason
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    UnauthorizedResponse:
      type: object
      properties:
        error:
          type: string
      required:
        - error
      x-apidog-orders:
        - error
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://gateway.kobaru.io
    description: Prod Env
security: []

```
