# Payment Response Webhook

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v0/payment/resp-pay:
    post:
      summary: Payment Response Webhook
      deprecated: false
      description: ''
      tags:
        - Bharat Connect (BBPS)/APIs - BBPS/Vendor Payment/Webhook/Payment
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PaymentResponse'
            examples: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  payload:
                    type: string
                  response_code:
                    type: integer
                  response_message:
                    type: string
                required:
                  - payload
                  - response_code
                  - response_message
                x-apidog-orders:
                  - payload
                  - response_code
                  - response_message
                x-apidog-ignore-properties: []
              example:
                payload: SUCCESS
                response_code: 0
                response_message: SUCCESS
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: Bharat Connect (BBPS)/APIs - BBPS/Vendor Payment/Webhook/Payment
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/616243/apis/api-18788127-run
components:
  schemas:
    PaymentResponse:
      type: object
      properties:
        resp:
          type: object
          properties:
            reqMsgId:
              type: string
            result:
              type: string
            errorCd:
              type: string
            errorDtl:
              type: string
            errorField:
              type: string
          required:
            - reqMsgId
            - result
            - errorCd
            - errorDtl
            - errorField
          x-apidog-orders:
            - reqMsgId
            - result
            - errorCd
            - errorDtl
            - errorField
          x-apidog-ignore-properties: []
        b2bIds:
          type: object
          properties:
            buyerB2BId:
              type: string
            supplierB2BId:
              type: string
          required:
            - buyerB2BId
            - supplierB2BId
          x-apidog-orders:
            - buyerB2BId
            - supplierB2BId
          x-apidog-ignore-properties: []
        payment:
          type: object
          properties:
            objectId:
              type: string
            ts:
              type: string
            type:
              type: string
            mode:
              type: string
            utr:
              type: string
            currency:
              type: string
            paymentAmount:
              type: object
              properties:
                netPaidAmount:
                  type: integer
                netAdjustmentAmount:
                  type: integer
                totalAmount:
                  type: integer
                currency:
                  type: string
              required:
                - netPaidAmount
                - netAdjustmentAmount
                - totalAmount
                - currency
              x-apidog-orders:
                - netPaidAmount
                - netAdjustmentAmount
                - totalAmount
                - currency
              x-apidog-ignore-properties: []
            invoicesPayInfos:
              type: array
              items:
                type: object
                properties:
                  objectId:
                    type: string
                  supplierInvoiceNumber:
                    type: string
                  objectVersion:
                    type: object
                    properties:
                      currentVersion:
                        type: integer
                      newVersion:
                        type: integer
                    required:
                      - currentVersion
                      - newVersion
                    x-apidog-orders:
                      - currentVersion
                      - newVersion
                    x-apidog-ignore-properties: []
                  statusTransition:
                    type: object
                    properties:
                      currentStatus:
                        type: string
                      newStatus:
                        type: string
                    required:
                      - currentStatus
                      - newStatus
                    x-apidog-orders:
                      - currentStatus
                      - newStatus
                    x-apidog-ignore-properties: []
                  invoiceAmount:
                    type: object
                    properties:
                      dueAmount:
                        type: integer
                      totalAmount:
                        type: integer
                      currency:
                        type: string
                    required:
                      - dueAmount
                      - totalAmount
                      - currency
                    x-apidog-orders:
                      - dueAmount
                      - totalAmount
                      - currency
                    x-apidog-ignore-properties: []
                  invoicePaymentAmount:
                    type: object
                    properties:
                      netPaidAmount:
                        type: integer
                      netAdjustmentAmount:
                        type: integer
                      totalAmount:
                        type: integer
                      currency:
                        type: string
                      splits:
                        type: array
                        items:
                          type: object
                          properties:
                            name:
                              type: string
                            value:
                              type: integer
                            refNo:
                              type: string
                          x-apidog-orders:
                            - name
                            - value
                            - refNo
                          x-apidog-ignore-properties: []
                    required:
                      - netPaidAmount
                      - netAdjustmentAmount
                      - totalAmount
                      - currency
                      - splits
                    x-apidog-orders:
                      - netPaidAmount
                      - netAdjustmentAmount
                      - totalAmount
                      - currency
                      - splits
                    x-apidog-ignore-properties: []
                  supplierBankAccountDetails:
                    type: object
                    properties:
                      maskedAccountNumber:
                        type: string
                      ifsc:
                        type: string
                      beneficiaryName:
                        type: string
                      businessVPA:
                        type: string
                    required:
                      - maskedAccountNumber
                      - ifsc
                      - beneficiaryName
                      - businessVPA
                    x-apidog-orders:
                      - maskedAccountNumber
                      - ifsc
                      - beneficiaryName
                      - businessVPA
                    x-apidog-ignore-properties: []
                x-apidog-orders:
                  - objectId
                  - supplierInvoiceNumber
                  - objectVersion
                  - statusTransition
                  - invoiceAmount
                  - invoicePaymentAmount
                  - supplierBankAccountDetails
                x-apidog-ignore-properties: []
          required:
            - objectId
            - ts
            - type
            - mode
            - utr
            - currency
            - paymentAmount
            - invoicesPayInfos
          x-apidog-orders:
            - objectId
            - ts
            - type
            - mode
            - utr
            - currency
            - paymentAmount
            - invoicesPayInfos
          x-apidog-ignore-properties: []
        additionalInfos:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              value:
                type: string
            x-apidog-orders:
              - name
              - value
            x-apidog-ignore-properties: []
      required:
        - resp
        - b2bIds
        - payment
        - additionalInfos
      x-apidog-orders:
        - resp
        - b2bIds
        - payment
        - additionalInfos
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://ekpayout-uat.enkash.in
    description: Testing Env
security: []

```
