# Initiate Bill Payment via EnKash PG

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v0/payment:
    post:
      summary: Initiate Bill Payment via EnKash PG
      deprecated: false
      description: >-

        :::highlight purple 📌

        Use this API to initiate a payment gateway

        This allows you to generate a payment request and direct your customer
        to a secure EnKash checkout interface to complete the transaction,
        offering flexibility and an additional layer of payment option.

        :::
      tags:
        - Bharat Connect (BBPS)/APIs - BBPS/Bill Payment/Payment
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              required:
                - paymentType
                - paymentIds
              type: object
              properties:
                paymentIds:
                  type: array
                  items:
                    type: string
                  description: list of utility bill's ids
                paymentType:
                  type: string
                  enum:
                    - UTILITY
                  x-apidog-enum:
                    - value: UTILITY
                      name: ''
                      description: ''
                  default: UTILITY
                  description: 'Fix value: UTILITY'
                paymentRemarks:
                  type: string
                  description: Optional remark
              x-apidog-orders:
                - paymentIds
                - paymentType
                - paymentRemarks
            examples: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  response_code:
                    type: integer
                  response_message:
                    type: string
                  payload:
                    type: string
                    description: It will contain the checkout url for making payment
                required:
                  - response_code
                  - response_message
                x-apidog-orders:
                  - response_code
                  - response_message
                  - payload
              example:
                response_code: 1
                response_message: Failure
                payload: Url
          headers: {}
          x-apidog-name: Success
      security:
        - bearer: []
      x-apidog-folder: Bharat Connect (BBPS)/APIs - BBPS/Bill Payment/Payment
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/616243/apis/api-10664796-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://ekpayout-uat.enkash.in
    description: Testing Env
security: []

```
