# Status Change Invoice Request

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v0/invoice/req-status-change-invoice:
    post:
      summary: Status Change Invoice Request
      deprecated: false
      description: ''
      tags:
        - Bharat Connect (BBPS)/APIs - BBPS/Vendor Payment/Webhook/Invoice
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InvoiceStatusChangeRequest'
            examples: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/ApplicationResponseStatusChangeInvoiceResponse
          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-18788119-run
components:
  schemas:
    InvoiceStatusChangeRequest:
      required:
        - b2bIds
        - invoiceStatus
      type: object
      properties:
        device:
          $ref: '#/components/schemas/Device'
        b2bIds: &ref_0
          $ref: '#/components/schemas/NbblB2BIdsModel'
        invoiceStatus: &ref_1
          $ref: '#/components/schemas/InvoiceStatus'
      x-apidog-orders:
        - device
        - b2bIds
        - invoiceStatus
      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: ''
    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: ''
    ApplicationResponseStatusChangeInvoiceResponse:
      type: object
      properties:
        response_code:
          type: integer
          format: int32
        response_message:
          type: string
        payload:
          $ref: '#/components/schemas/StatusChangeInvoiceResponse'
      x-apidog-orders:
        - response_code
        - response_message
        - payload
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    StatusChangeInvoiceResponse:
      required:
        - b2bIds
        - resp
        - invoiceStatus
      type: object
      properties:
        b2bIds: *ref_0
        resp:
          $ref: '#/components/schemas/Resp'
        invoiceStatus: *ref_1
        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: ''
    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: []

```
