# Payment Confirmation Request Webhook

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v0/payment/req-pay-confirmation:
    post:
      summary: Payment Confirmation Request Webhook
      deprecated: false
      description: ''
      tags:
        - Bharat Connect (BBPS)/APIs - BBPS/Vendor Payment/Webhook/Payment
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PaymentConfirmationRequest'
            examples: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/ApplicationResponsePaymentConfirmationResponse
          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-18788130-run
components:
  schemas:
    PaymentConfirmationRequest:
      required:
        - device
        - b2bIds
        - paymentConfirmation
      type: object
      properties:
        device:
          $ref: '#/components/schemas/Device'
        b2bIds: &ref_0
          $ref: '#/components/schemas/NbblB2BIdsModel'
        paymentConfirmation: &ref_1
          $ref: '#/components/schemas/PaymentConfirmation'
      x-apidog-orders:
        - device
        - b2bIds
        - paymentConfirmation
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    PaymentConfirmation:
      required:
        - objectId
        - ts
        - type
        - supplierResponse
        - supplierRemarks
        - invoiceInfos
      type: object
      properties:
        objectId:
          type: string
          pattern: ^[PMT]{3}[A-Za-z0-9]{32,32}$
          description: |-
            Unique object ID for the
            payment transaction as per
            ReqPay
        ts:
          type: string
        type:
          type: string
          enum:
            - OFFPLATFORM
            - ONPLATFORM
        supplierResponse:
          type: string
          enum:
            - ACCEPT
            - REJECT
          x-apidog-enum:
            - value: ACCEPT
              name: ' '
              description: ''
            - value: REJECT
              name: ''
              description: ''
          description: |-
            Response of supplier
            Rule: REJECT is only for
            offplatform payment
        supplierRemarks:
          type: string
          pattern: ^([^\\\"]){1,100}$
        invoiceInfos:
          type: array
          items:
            $ref: '#/components/schemas/InvoiceInfo'
      x-apidog-orders:
        - objectId
        - ts
        - type
        - supplierResponse
        - supplierRemarks
        - invoiceInfos
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    InvoiceInfo:
      required:
        - objectId
        - supplierInvoiceNumber
        - objectVersion
        - statusTransition
      type: object
      properties:
        objectId:
          type: string
          pattern: ^[INV]{3}[A-Za-z0-9]{32,32}$
          x-apidog-mock: Invoice object ID on B2B Platform
        supplierInvoiceNumber:
          type: string
          pattern: '^([^\\\"]){1,50}$ '
        objectVersion:
          $ref: '#/components/schemas/ObjectVersion'
        statusTransition:
          $ref: '#/components/schemas/StatusTransition'
      x-apidog-orders:
        - objectId
        - supplierInvoiceNumber
        - objectVersion
        - statusTransition
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    StatusTransition:
      required:
        - currentStatus
        - newStatus
      type: object
      properties:
        currentStatus:
          type: string
          enum:
            - CREATED
            - SENT TO BUYER
            - ACCEPTED
            - REJECTED
            - UNDER REVIEW
            - CANCELLED
            - DELETED
            - PARTIALLY PAID
            - FULLY PAID
            - CLOSED
            - ABANDONED
            - PAYMENT INITIATED
            - PARTIALLY PAID AND PAYMENT INITIATED
          x-apidog-enum:
            - value: CREATED
              name: ''
              description: ''
            - value: SENT TO BUYER
              name: ''
              description: ''
            - value: ACCEPTED
              name: ''
              description: ''
            - value: REJECTED
              name: ''
              description: ''
            - value: UNDER REVIEW
              name: ''
              description: ''
            - value: CANCELLED
              name: ''
              description: ''
            - value: DELETED
              name: ''
              description: ''
            - value: PARTIALLY PAID
              name: ''
              description: ''
            - value: FULLY PAID
              name: ''
              description: ''
            - value: CLOSED
              name: ''
              description: ''
            - value: ABANDONED
              name: ''
              description: ''
            - value: PAYMENT INITIATED
              name: ''
              description: ''
            - value: PARTIALLY PAID AND PAYMENT INITIATED
              name: ''
              description: ''
        newStatus:
          type: string
          enum:
            - CREATED
            - SENT TO BUYER
            - ACCEPTED
            - REJECTED
            - UNDER REVIEW
            - CANCELLED
            - DELETED
            - PARTIALLY PAID
            - FULLY PAID
            - CLOSED
            - ABANDONED
            - PAYMENT INITIATED
            - PARTIALLY PAID AND PAYMENT INITIATED
          x-apidog-enum:
            - value: CREATED
              name: ''
              description: ''
            - value: SENT TO BUYER
              name: ''
              description: ''
            - value: ACCEPTED
              name: ''
              description: ''
            - value: REJECTED
              name: ''
              description: ''
            - value: UNDER REVIEW
              name: ''
              description: ''
            - value: CANCELLED
              name: ''
              description: ''
            - value: DELETED
              name: ''
              description: ''
            - value: PARTIALLY PAID
              name: ''
              description: ''
            - value: FULLY PAID
              name: ''
              description: ''
            - value: CLOSED
              name: ''
              description: ''
            - value: ABANDONED
              name: ''
              description: ''
            - value: PAYMENT INITIATED
              name: ''
              description: ''
            - value: PARTIALLY PAID AND PAYMENT INITIATED
              name: ''
              description: ''
      x-apidog-orders:
        - currentStatus
        - newStatus
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    ObjectVersion:
      required:
        - currentVersion
        - newVersion
      type: object
      properties:
        currentVersion:
          type: integer
          format: int32
          minimum: 1
          maximum: 100
          default: 1
        newVersion:
          type: integer
          format: int32
          minimum: 1
          maximum: 100
          default: 1
      x-apidog-orders:
        - currentVersion
        - newVersion
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    NbblB2BIdsModel:
      required:
        - buyerB2BId
        - supplierB2BId
      type: object
      properties:
        buyerB2BId:
          type: string
          pattern: '^([^\\\"]){1,100}$ '
        supplierB2BId:
          type: string
          pattern: '^([^\\\"]){1,100}$ '
      x-apidog-orders:
        - buyerB2BId
        - supplierB2BId
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    Device:
      type: object
      properties:
        tag:
          $ref: '#/components/schemas/Tag'
      x-apidog-orders:
        - tag
      required:
        - tag
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    Tag:
      type: object
      properties:
        name:
          type: string
          enum:
            - GEOCODE
            - IP
            - AGENTID
        value:
          type: string
          pattern: ^([^\\\"]){1,100}$
      x-apidog-orders:
        - name
        - value
      required:
        - name
        - value
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    ApplicationResponsePaymentConfirmationResponse:
      type: object
      properties:
        response_code:
          type: integer
          format: int32
        response_message:
          type: string
        payload:
          $ref: '#/components/schemas/PaymentConfirmationResponse'
      x-apidog-orders:
        - response_code
        - response_message
        - payload
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    PaymentConfirmationResponse:
      required:
        - resp
        - b2bIds
        - paymentConfirmation
      type: object
      properties:
        resp:
          $ref: '#/components/schemas/Resp'
        b2bIds: *ref_0
        paymentConfirmation: *ref_1
        additionalInfo:
          type: array
          items:
            $ref: '#/components/schemas/AdditionalInfo'
      x-apidog-orders:
        - resp
        - b2bIds
        - paymentConfirmation
        - additionalInfo
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    AdditionalInfo:
      type: object
      properties:
        name:
          type: string
        value:
          type: string
      x-apidog-orders:
        - name
        - value
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    Resp:
      required:
        - reqMsgId
        - result
      type: object
      properties:
        reqMsgId:
          type: string
        result:
          type: string
        errorCd:
          type: string
        errorDtl:
          type: string
        errorField:
          type: string
      x-apidog-orders:
        - reqMsgId
        - result
        - errorCd
        - errorDtl
        - errorField
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://ekpayout-uat.enkash.in
    description: Testing Env
security: []

```
