> ## Documentation Index
> Fetch the complete documentation index at: https://adp-doc.laiye.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Verify domestic invoice

> Verify an invoice from its invoice number, issue date, and tax-inclusive total.



## OpenAPI

````yaml /en/api-reference/preset-domestic-bills.yaml post /open/agentic_doc_processor/{tenant_name}/v1/app/invoice/verify
openapi: 3.1.0
info:
  title: Domestic general bills
  version: 1.0.0
  description: ADP preset application API for extracting domestic general bills.
  license:
    name: MIT
    identifier: MIT
servers:
  - url: https://adp-global.laiye.com
    description: ADP global production endpoint
security: []
tags:
  - name: Domestic bill extraction
    description: Extract fields from domestic general bills.
  - name: Domestic invoice verification
    description: Verify domestic invoices from invoice details.
paths:
  /open/agentic_doc_processor/{tenant_name}/v1/app/invoice/verify:
    post:
      tags:
        - Domestic invoice verification
      summary: Verify domestic invoice
      description: >-
        Verify an invoice from its invoice number, issue date, and tax-inclusive
        total.
      operationId: verifyDomesticInvoice
      parameters:
        - $ref: '#/components/parameters/TenantName'
      requestBody:
        $ref: '#/components/requestBodies/InvoiceVerifyRequest'
      responses:
        '200':
          $ref: '#/components/responses/InvoiceVerifyResponse'
        '400':
          $ref: '#/components/responses/ValidationError'
        '422':
          $ref: '#/components/responses/ValidationError'
      security:
        - ApiKeyAuth: []
components:
  parameters:
    TenantName:
      name: tenant_name
      in: path
      required: true
      description: 'Tenant name. Default: laiye.'
      schema:
        type: string
        default: laiye
  requestBodies:
    InvoiceVerifyRequest:
      required: true
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/InvoiceVerifyRequest'
          examples:
            electronicInvoice:
              summary: Verify a VAT electronic invoice
              value:
                fpNumber: '0123456789'
                fpDate: '2026-06-01'
                fpAmount: '100.00'
  responses:
    InvoiceVerifyResponse:
      description: Invoice verification result.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/InvoiceVerifyResponse'
          examples:
            verifiedInvoice:
              summary: Successfully verified invoice
              value:
                code: success
                message: ''
                data:
                  result:
                    type_key: vat_electronic_invoice_new
                    fpVerification: Invoice verified and matched
                    fpVerificationMsg: ''
                    fpIsVoided: Not voided
                    fpNumber: '0123456789'
                    fpDate: '2026-06-01'
                    fpAmount: '100.00'
                  metadata:
                    trace_id: 94fe9b74e0e311f091505e345594c618
                    attempt_verify_page_count: 1
                    actual_consume_page_count: 1
                    billable_pages:
                      - 1
    ValidationError:
      description: Validation error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SimpleResponse'
  schemas:
    InvoiceVerifyRequest:
      type: object
      additionalProperties: false
      required:
        - fpNumber
        - fpDate
        - fpAmount
      properties:
        fpNumber:
          type: string
          description: Invoice number.
        fpDate:
          type: string
          format: date
          description: Invoice issue date in YYYY-MM-DD format.
        fpAmount:
          type: string
          description: Tax-inclusive total.
    InvoiceVerifyResponse:
      allOf:
        - $ref: '#/components/schemas/SimpleResponse'
        - type: object
          properties:
            data:
              type: object
              properties:
                result:
                  $ref: '#/components/schemas/InvoiceVerifyResult'
                metadata:
                  $ref: '#/components/schemas/InvoiceVerifyMetadata'
    SimpleResponse:
      type: object
      properties:
        code:
          oneOf:
            - type: string
            - type: integer
        message:
          type: string
        tips:
          type:
            - string
            - 'null'
    InvoiceVerifyResult:
      type: object
      properties:
        type_key:
          type: string
          description: Invoice type.
        instance_id:
          type: string
          description: Your business instance ID.
        fpVerification:
          type: string
          description: Verification status.
        fpVerificationMsg:
          type: string
          description: Verification message or error details.
        fpIsVoided:
          type: string
          description: Void status.
        fpType:
          type: string
          description: Invoice type name.
        fpCode:
          type: string
          description: Invoice code.
        fpNumber:
          type: string
          description: Invoice number.
        fpDate:
          type: string
          description: Invoice issue date, creation date, or travel date.
        fpAmount:
          type: string
          description: Tax-inclusive total, fare, or total amount.
        fpNoTaxAmount:
          type: string
          description: Tax-exclusive amount.
        fpTotalTaxAmount:
          type: string
          description: Total tax amount.
        fpSellerName:
          type: string
          description: Seller name.
        fpSellerID:
          type: string
          description: Seller taxpayer ID.
        fpPayerName:
          type: string
          description: Buyer name.
        fpPayerID:
          type: string
          description: Buyer taxpayer ID.
        fpRemarks:
          type: string
          description: Remarks.
        fpItems:
          type: array
          description: Invoice line items.
          items:
            type: object
            additionalProperties: true
    InvoiceVerifyMetadata:
      type: object
      properties:
        trace_id:
          type: string
          description: Trace ID.
        attempt_verify_page_count:
          type: integer
          description: Number of pages submitted for verification.
        actual_consume_page_count:
          type: integer
          description: Number of pages charged.
        billable_pages:
          type: array
          description: Charged page numbers.
          items:
            type: integer
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY

````