# Status Change Invoice Response Webhook

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v0/invoice/resp-status-change-invoice:
    post:
      summary: Status Change Invoice Response Webhook
      deprecated: false
      description: ''
      tags:
        - Bharat Connect (BBPS)/APIs - BBPS/Vendor Payment/Webhook/Invoice
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StatusChangeInvoiceResponse'
            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/Invoice
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/616243/apis/api-18788120-run
components:
  schemas:
    StatusChangeInvoiceResponse:
      required:
        - b2bIds
        - resp
        - invoiceStatus
      type: object
      properties:
        b2bIds:
          $ref: '#/components/schemas/NbblB2BIdsModel'
        resp:
          $ref: '#/components/schemas/Resp'
        invoiceStatus:
          $ref: '#/components/schemas/InvoiceStatus'
        additionalInfos:
          type: array
          items:
            $ref: '#/components/schemas/AdditionalInfo'
      x-apidog-orders:
        - b2bIds
        - resp
        - invoiceStatus
        - additionalInfos
      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: ''
    InvoiceStatus:
      required:
        - objectId
        - supplierInvoiceNumber
        - objectVersion
        - supplierAction
        - supplierRemarks
        - statusTransition
      type: object
      properties:
        objectId:
          type: string
        supplierInvoiceNumber:
          type: string
        objectVersion:
          $ref: '#/components/schemas/ObjectVersion'
        supplierAction:
          type: string
        supplierRemarks:
          type: string
        statusTransition:
          $ref: '#/components/schemas/StatusTransition'
      x-apidog-orders:
        - objectId
        - supplierInvoiceNumber
        - objectVersion
        - supplierAction
        - supplierRemarks
        - 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: ''
    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: ''
    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: ''
  securitySchemes: {}
servers:
  - url: https://ekpayout-uat.enkash.in
    description: Testing Env
security: []

```
