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

# H2H Payment Processing

> Process Host-to-Host payment endpoint



## OpenAPI

````yaml POST /payments/h2h/{id}
openapi: 3.0.4
info:
  title: FinHub API
  description: >-
    FinHub API provides services for the Caibo platform to support client's
    applications
  version: v1
servers:
  - url: https://apay.caibo.digital
    description: Caibo APay server (Test and Production share base; method IDs differ)
security: []
paths:
  /payments/h2h/{id}:
    post:
      tags:
        - Payments
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
            format: int64
          examples:
            adyenTest:
              summary: Adyen H2H - Test
              value: 35
            adyenLive:
              summary: Adyen H2H - Live
              value: 36
      requestBody:
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/H2hCreditCardPayment'
          application/json:
            schema:
              $ref: '#/components/schemas/H2hCreditCardPayment'
          text/json:
            schema:
              $ref: '#/components/schemas/H2hCreditCardPayment'
          application/*+json:
            schema:
              $ref: '#/components/schemas/H2hCreditCardPayment'
      responses:
        '200':
          description: OK
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '424':
          description: Failed Dependency
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
components:
  schemas:
    H2hCreditCardPayment:
      required:
        - address
        - amount
        - city
        - country
        - cvv
        - email
        - expiration
        - name
        - number
        - phoneNumber
        - postalCode
        - state
        - unit
      type: object
      properties:
        name:
          maxLength: 100
          minLength: 0
          type: string
        number:
          maxLength: 19
          minLength: 8
          type: string
        expiration:
          minLength: 1
          pattern: ^\d{2}\/\d{2}$
          type: string
        cvv:
          maxLength: 4
          minLength: 3
          pattern: ^\d+$
          type: string
        email:
          maxLength: 100
          minLength: 0
          type: string
          format: email
        phoneNumber:
          maxLength: 14
          minLength: 10
          pattern: ^\d+$
          type: string
        address:
          maxLength: 100
          minLength: 0
          type: string
        city:
          maxLength: 50
          minLength: 0
          type: string
        state:
          minLength: 1
          type: string
        postalCode:
          maxLength: 10
          minLength: 0
          type: string
        country:
          maxLength: 2
          minLength: 2
          type: string
        captureDelayHours:
          maximum: 7
          minimum: 0
          type: integer
          format: int32
        browserInfo:
          $ref: '#/components/schemas/BrowserInfo'
        wallet:
          $ref: '#/components/schemas/CreditCardWallet'
        is3ds:
          type: boolean
        isSandbox:
          type: boolean
        ipAddress:
          type: string
          nullable: true
        amount:
          minimum: 0
          type: number
          format: double
        unit:
          maxLength: 20
          minLength: 0
          type: string
        referenceId:
          maxLength: 100
          minLength: 0
          type: string
          nullable: true
        notifyUrl:
          maxLength: 2048
          minLength: 0
          type: string
          nullable: true
        successUrl:
          maxLength: 2048
          minLength: 0
          type: string
          nullable: true
        failureUrl:
          maxLength: 2048
          minLength: 0
          type: string
          nullable: true
        originDomain:
          maxLength: 2048
          minLength: 0
          type: string
          nullable: true
      additionalProperties: false
    ProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
      additionalProperties: {}
    BrowserInfo:
      type: object
      properties:
        acceptHeader:
          type: string
          nullable: true
        colorDepth:
          type: string
          nullable: true
        ip:
          type: string
          nullable: true
        javaEnabled:
          type: boolean
        javascriptEnabled:
          type: boolean
        language:
          type: string
          nullable: true
        screenHeight:
          type: string
          nullable: true
        screenWidth:
          type: string
          nullable: true
        timezone:
          type: string
          nullable: true
        userAgent:
          type: string
          nullable: true
      additionalProperties: false
    CreditCardWallet:
      type: object
      properties:
        walletType:
          type: string
          nullable: true
        authenticationValue:
          type: string
          nullable: true
        xid:
          type: string
          nullable: true
        eci:
          type: string
          nullable: true
      additionalProperties: false

````