# Confirm C/N Request Webhook

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v0/cd-note/req-confirm:
    post:
      summary: Confirm C/N Request Webhook
      deprecated: false
      description: ''
      tags:
        - Bharat Connect (BBPS)/APIs - BBPS/Vendor Payment/Webhook/Credit Note
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConfirmCdNoteRequest'
            examples: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApplicationResponseConfirmCdNoteResponse'
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: Bharat Connect (BBPS)/APIs - BBPS/Vendor Payment/Webhook/Credit Note
      x-apidog-status: developing
      x-run-in-apidog: https://app.apidog.com/web/project/616243/apis/api-18788150-run
components:
  schemas:
    ConfirmCdNoteRequest:
      type: object
      properties:
        device:
          type: object
          properties:
            tag:
              type: object
              properties:
                name:
                  type: string
                  enum:
                    - GEOCODE
                    - IP
                    - AGENTID
                  x-apidog-enum:
                    - value: GEOCODE
                      name: ''
                      description: ''
                    - value: IP
                      name: ''
                      description: ''
                    - value: AGENTID
                      name: ''
                      description: ''
                value:
                  type: string
              required:
                - name
                - value
              x-apidog-orders:
                - name
                - value
              x--orders:
                - name
                - value
              x--ignore-properties: []
          required:
            - tag
          x-apidog-orders:
            - tag
          x--orders:
            - tag
          x--ignore-properties: []
        b2bIds:
          type: object
          properties:
            buyerB2BId:
              type: string
            supplierB2BId:
              type: string
          required:
            - buyerB2BId
            - supplierB2BId
          x-apidog-orders:
            - buyerB2BId
            - supplierB2BId
          x--orders:
            - buyerB2BId
            - supplierB2BId
          x--ignore-properties: []
        cdNoteConfirmation:
          type: object
          properties:
            objectId:
              type: string
            noteType:
              type: string
            supplierCDNoteNumber:
              type: string
            objectVersion:
              type: object
              properties:
                currentVersion:
                  type: integer
                newVersion:
                  type: integer
              required:
                - currentVersion
                - newVersion
              x-apidog-orders:
                - currentVersion
                - newVersion
              x--orders:
                - currentVersion
                - newVersion
              x--ignore-properties: []
            buyerResponse:
              type: string
            buyerRemarks:
              type: string
            cdNoteStatusTransition:
              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: ''
              required:
                - currentStatus
                - newStatus
              x-apidog-orders:
                - currentStatus
                - newStatus
              x--orders:
                - currentStatus
                - newStatus
              x--ignore-properties: []
          required:
            - objectId
            - noteType
            - supplierCDNoteNumber
            - objectVersion
            - buyerResponse
            - buyerRemarks
            - cdNoteStatusTransition
          x-apidog-orders:
            - objectId
            - noteType
            - supplierCDNoteNumber
            - objectVersion
            - buyerResponse
            - buyerRemarks
            - cdNoteStatusTransition
          x--orders:
            - objectId
            - noteType
            - supplierCDNoteNumber
            - objectVersion
            - buyerResponse
            - buyerRemarks
            - cdNoteStatusTransition
          x--ignore-properties: []
        additionalInfos:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              value:
                type: string
            x-apidog-orders:
              - name
              - value
            x--orders:
              - name
              - value
            x--ignore-properties: []
      required:
        - device
        - b2bIds
        - cdNoteConfirmation
        - additionalInfos
      x-apidog-orders:
        - device
        - b2bIds
        - cdNoteConfirmation
        - additionalInfos
      x--orders:
        - device
        - b2bIds
        - cdNoteConfirmation
        - additionalInfos
      x--ignore-properties: []
      x-apidog-folder: ''
    ApplicationResponseConfirmCdNoteResponse:
      type: object
      properties:
        response_code:
          type: integer
        response_message:
          type: string
        payload:
          $ref: '#/components/schemas/ConfirmCdNoteResponse'
      x-apidog-orders:
        - response_code
        - response_message
        - payload
      required:
        - response_code
        - response_message
        - payload
      x--orders:
        - response_code
        - response_message
        - payload
      x--ignore-properties: []
      x-apidog-folder: ''
    ConfirmCdNoteResponse:
      type: object
      properties:
        device:
          type: object
          properties:
            tag:
              type: object
              properties:
                name:
                  type: string
                value:
                  type: string
              required:
                - name
                - value
              x-apidog-orders:
                - name
                - value
              x--orders:
                - name
                - value
              x--ignore-properties: []
          required:
            - tag
          x-apidog-orders:
            - tag
          x--orders:
            - tag
          x--ignore-properties: []
        b2bIds:
          type: object
          properties:
            buyerB2BId:
              type: string
            supplierB2BId:
              type: string
          required:
            - buyerB2BId
            - supplierB2BId
          x-apidog-orders:
            - buyerB2BId
            - supplierB2BId
          x--orders:
            - buyerB2BId
            - supplierB2BId
          x--ignore-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--orders:
            - reqMsgId
            - result
            - errorCd
            - errorDtl
            - errorField
          x--ignore-properties: []
        cdNoteConfirmation:
          type: object
          properties:
            objectId:
              type: string
            noteType:
              type: string
            supplierCDNoteNumber:
              type: string
            objectVersion:
              type: object
              properties:
                currentVersion:
                  type: integer
                newVersion:
                  type: integer
              required:
                - currentVersion
                - newVersion
              x-apidog-orders:
                - currentVersion
                - newVersion
              x--orders:
                - currentVersion
                - newVersion
              x--ignore-properties: []
            buyerResponse:
              type: string
            buyerRemarks:
              type: string
            cdNoteStatusTransition:
              type: object
              properties:
                currentStatus:
                  type: string
                newStatus:
                  type: string
              required:
                - currentStatus
                - newStatus
              x-apidog-orders:
                - currentStatus
                - newStatus
              x--orders:
                - currentStatus
                - newStatus
              x--ignore-properties: []
          required:
            - objectId
            - noteType
            - supplierCDNoteNumber
            - objectVersion
            - buyerResponse
            - buyerRemarks
            - cdNoteStatusTransition
          x-apidog-orders:
            - objectId
            - noteType
            - supplierCDNoteNumber
            - objectVersion
            - buyerResponse
            - buyerRemarks
            - cdNoteStatusTransition
          x--orders:
            - objectId
            - noteType
            - supplierCDNoteNumber
            - objectVersion
            - buyerResponse
            - buyerRemarks
            - cdNoteStatusTransition
          x--ignore-properties: []
        additionalInfos:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              value:
                type: string
            x-apidog-orders:
              - name
              - value
            x--orders:
              - name
              - value
            x--ignore-properties: []
      required:
        - device
        - b2bIds
        - resp
        - cdNoteConfirmation
        - additionalInfos
      x-apidog-orders:
        - device
        - b2bIds
        - resp
        - cdNoteConfirmation
        - additionalInfos
      x--orders:
        - device
        - b2bIds
        - resp
        - cdNoteConfirmation
        - additionalInfos
      x--ignore-properties: []
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://ekpayout-uat.enkash.in
    description: Testing Env
security: []

```
