Get details of purchase invoice scan

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://restapi.wyzio.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Wyzio MCP server": {
    "url": "https://restapi.wyzio.com/mcp"
  }
}

Close
GET /api-v1/purchase-invoice-scan/{id}

Returns details of the specified purchase invoice scan.

Headers

  • WEAL-TOKEN Required

    API token (can be retrieved from account settings)

  • TARGET-ORGANIZATION-ID

    ID of organization, for which the operation must be performed

Path parameters

  • id integer(int64) Required

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • id integer(int64)
    • organizationId integer(int64)
    • date string(date-time) Required

      Date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')

      Minimum length is 1.

    • supplierId integer(int64) Required
    • currencyId integer(int64) Required
    • reference string
    • description string
    • comment string
    • validated boolean
    • vatType string

      Values are NO_VAT, NATIVE, or IMPORT_OF_SERVICE.

    • vatTypeCodeId integer(int64)
    • amounts array[object]
      Hide amounts attributes Show amounts attributes object
      • id integer(int64)
      • vatRateId integer(int64)
      • amountType string

        Values are NO_VAT, VAT_RATE, or MANUAL.

      • net string

        Numeric value represented as string

      • vat string

        Numeric value represented as string

      • vatType string

        Values are NO_VAT, NATIVE, or IMPORT_OF_SERVICE.

      • vatTypeCodeId integer(int64)
    • attributions array[object]
      Hide attributions attributes Show attributions attributes object
      • id integer(int64)
      • chartOfAccountsId integer(int64) Required
      • dateFrom string(date-time) Required

        Date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')

        Minimum length is 1.

      • dateTo string(date-time) Required

        Date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')

        Minimum length is 1.

      • net string

        Numeric value represented as string

      • percent string

        Numeric value represented as string

      • departmentId integer(int64)
      • orderId integer(int64)
      • orderIdToDisplay string
      • reBillDate string(date-time)
      • reBill boolean
      • articleId integer(int64)
      • quantity string

        Numeric value represented as string

      • shipments array[object]
        Hide shipments attributes Show shipments attributes object
        • id integer(int64)
        • shipmentDate string(date-time)

          Date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')

        • articleId integer(int64)
        • quantity string

          Numeric value represented as string

        • currencyCode string
        • totalCost number
        • generatedStockMovementId integer(int64)
        • articleName object
          Hide articleName attributes Show articleName attributes object
          • en string
          • fr string
          • de string
          • it string
        • articleIdSku string
        • officeId integer(int64)
        • attributionId integer(int64)
      • appliedAllocationRules array[string]
      • officeId integer(int64)
      • readOnly boolean
    • payments array[object]
      Hide payments attributes Show payments attributes object
      • id integer(int64)
      • requestedDate string(date-time) Required

        Date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')

        Minimum length is 1.

      • plannedDate string(date-time)

        Date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')

      • sentDate string(date-time)

        Date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')

      • valueDate string(date-time)

        Date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')

      • requestedAmount string

        Numeric value represented as string

      • paidAmount string

        Numeric value represented as string

      • bankCharges string

        Numeric value represented as string

      • payableByAccountId integer(int64)
      • paymentType string Required

        Values are BANK_TRANSFER, BVR, or QR_BILL.

      • payableToBankId integer(int64)
      • lineCode string
      • accountNumber string
      • referenceNumber string
      • qrBillData string
      • isFromLockedAccountingPeriod boolean
    • document object
      Hide document attributes Show document attributes object
      • id integer(int64)
      • entityId integer(int64) Required
      • name string Required

        Minimum length is 1.

      • fileId integer(int64) Required
      • date string(date-time) Required

        Date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')

        Minimum length is 1.

      • tags array[object]
        Hide tags attributes Show tags attributes object
        • id integer(int64)
        • name string
      • contact object
        Hide contact attributes Show contact attributes object
        • id integer(int64)
        • name string
        • email string
      • module string

        Values are ALL, NONE, CONTACTS, CONTACTS_DETAILS, CONTACTS_SUPPLIER, CONTACTS_CLIENT, CONTACTS_BALANCE, CONTACTS_STAFF, CONTACTS_STAFF_DOCUMENTS, CONTACTS_USER, CONTACTS_MAIN_USER, CONTACTS_USER_SECURITY, CONTACTS_USER_PERMISSIONS, CONTACTS_SYSTEM, CONTACTS_DOCUMENTS, CONTACTS_ROLES, CONTACTS_ROLES_SUPPLIER, CONTACTS_ROLES_CLIENT, CONTACTS_ROLES_STAFF, CONTACTS_ROLES_USER, CONTACTS_COMMUNICATIONS, ORGANIZATIONS_USERS_MANAGER, ORGANIZATIONS, ORGANIZATIONS_DETAILS, ORGANIZATIONS_TEMPLATES, ORGANIZATIONS_ACCOUNTING, ORGANIZATIONS_INVOICES, ORGANIZATIONS_SYSTEM, ORGANIZATIONS_SYSTEM_ALLOCATION_KEYS, ORGANIZATIONS_SYSTEM_CODES, ORGANIZATIONS_SYSTEM_EBICS, ORGANIZATIONS_SYSTEM_INVENTORY, ORGANIZATIONS_DOCUMENTS, ORGANIZATIONS_DETAILS_INVOICING, PERMISSION_ROLES, PERMISSION_ROLES_DETAILS, BUSINESS_UNITS, ARTICLE_CATEGORIES, CHART_OF_ACCOUNTS, CHART_OF_ACCOUNTS_DETAILS, ACTIVITY_LOG, CURRENCIES, CURRENCIES_DETAILS, JOURNAL, JOURNAL_DETAILS, JOURNAL_DOCUMENTS, DOCUMENTS, DOCUMENTS_DETAILS, RECONCILIATION, PURCHASE_INVOICES, PURCHASE_INVOICES_DETAILS, PURCHASE_INVOICES_VALIDATION, PURCHASE_INVOICES_ACCOUNTING, PURCHASE_INVOICES_SHIPMENTS, PURCHASE_INVOICES_DOCUMENTS, PURCHASE_INVOICES_ALLOCATION_RULES, PURCHASE_INVOICES_WORKFLOW, SALES_INVOICES, SALES_INVOICES_DETAILS, SALES_INVOICES_VALIDATION, SALES_INVOICES_ACCOUNTING, SALES_INVOICES_DOCUMENTS, SALES_INVOICES_SHIPMENTS, SALES_INVOICES_REPORT, SALES_INVOICES_ALLOCATION_RULES, SALES_INVOICES_WORKFLOW, SALARIES, STOCK_REPORT, STOCK_MOVEMENTS, STOCK_MOVEMENTS_DETAILS, ORDERS, ORDERS_DETAILS, ORDERS_VALIDATION, ORDERS_SHIPMENT, ORDERS_INVOICES, ORDERS_EXPENSES, ORDERS_DOCUMENTS, ORDERS_WORKFLOW, ADVANCED_INVOICING, ADVANCED_INVOICING_GENERATE, ACCOUNTING_PERIODS, ACCOUNTING_PERIODS_DETAILS, ACCOUNTING_PERIODS_LOCK, ACCOUNTING_PERIODS_OPEN_CLOSE, GENERAL_LEDGER, GENERAL_LEDGER_STAFF, REPORT_TEMPLATE, ARTICLES, ARTICLES_DETAILS, PURCHASE_INVOICES_SCAN, PURCHASE_INVOICES_SCAN_DETAILS, RECOGNIZER, BALANCE, BALANCE_SHEET, BALANCE_SHEET_STAFF, PL_REPORT, PL_REPORT_STAFF, CASH_FLOW_REPORT, MY_TIMESHEETS, MY_ACCOUNT, TIME_DETAILS, TIME_DETAILS_DETAILS, TIME_DETAILS_WORKFLOW, TEAM_REVIEW, BUDGETING, BUDGETING_DETAILS, SALARY_CONFIG, SALARY_CONFIG_DETAILS, RECEIVABLES, PAYABLES, PAYABLES_PAYMENT_FILE, PDF_TEMPLATES, PDF_TEMPLATES_DETAILS, DASHBOARD, LATE_NOTICES, MY_DOCUMENTS, MY_DOCUMENTS_PAYROLL, MY_DOCUMENTS_OTHER, MY_DOCUMENTS_EXPORT_FILES, PAYROLL, PAYROLL_DETAILS, PAYROLL_ACCOUNTING, PAYROLL_SWISSDEC, VAT_REPORT, ORDER_REPORTS, ORDER_REPORTS_DETAILS, RATIOS_REPORT, VACATIONS, TRASH_CAN, USER_GROUPS, USER_GROUPS_DETAILS, WORKFLOW, WORKFLOW_DETAILS, MY_WORKFLOW_NOTIFICATIONS, FIXED_ASSETS, UNASSIGNED, EXPENSES, EXPENSES_DETAILS, EXPENSES_DRAFT, EXPENSES_DRAFT_DETAILS, CONTACT_BALANCE_REPORT, ORGANIZATION_CURRENCIES, ORGANIZATION_CURRENCIES_DETAILS, FINANCIAL_STATEMENTS, ALLOCATIONS, or ALLOCATIONS_DETAILS.

      • comments string
      • createdBy string
      • createdOn string(date-time)
      • fileExtension string
      • size integer(int64)
      • isSystem boolean
      • self boolean
    • warnings string
    • isFromLockedAccountingPeriod boolean
    • paymentChartId integer(int64)
    • status string

      Values are NEW, PROCESS, CONVERT, or RECOGNIZING.

    • isOrganizationNameIncluded boolean
    • isTreatedByManagingOrganization boolean
  • 400

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    500 Internal Server Error

GET /api-v1/purchase-invoice-scan/{id}
curl \
 --request GET 'https://wyzio.app/api-v1/purchase-invoice-scan/{id}'
Response examples (200)
{
  "id": 42,
  "organizationId": 42,
  "date": "2026-01-01T00:00:00.000Z",
  "supplierId": 42,
  "currencyId": 42,
  "reference": "string",
  "description": "string",
  "comment": "string",
  "validated": true,
  "vatType": "NO_VAT",
  "vatTypeCodeId": 42,
  "amounts": [
    {
      "id": 42,
      "vatRateId": 42,
      "amountType": "NO_VAT",
      "net": "100.55",
      "vat": "100.55",
      "vatType": "NO_VAT",
      "vatTypeCodeId": 42
    }
  ],
  "attributions": [
    {
      "id": 42,
      "chartOfAccountsId": 42,
      "dateFrom": "2026-01-01T00:00:00.000Z",
      "dateTo": "2026-01-01T00:00:00.000Z",
      "net": "100.55",
      "percent": "100.55",
      "departmentId": 42,
      "orderId": 42,
      "orderIdToDisplay": "string",
      "reBillDate": "2026-05-04T09:42:00Z",
      "reBill": true,
      "articleId": 42,
      "quantity": "100.55",
      "shipments": [
        {
          "id": 42,
          "shipmentDate": "2026-01-01T00:00:00.000Z",
          "articleId": 42,
          "quantity": "100.55",
          "currencyCode": "string",
          "totalCost": 42.0,
          "generatedStockMovementId": 42,
          "articleName": {
            "en": "string",
            "fr": "string",
            "de": "string",
            "it": "string"
          },
          "articleIdSku": "string",
          "officeId": 42,
          "attributionId": 42
        }
      ],
      "appliedAllocationRules": [
        "string"
      ],
      "officeId": 42,
      "readOnly": true
    }
  ],
  "payments": [
    {
      "id": 42,
      "requestedDate": "2026-01-01T00:00:00.000Z",
      "plannedDate": "2026-01-01T00:00:00.000Z",
      "sentDate": "2026-01-01T00:00:00.000Z",
      "valueDate": "2026-01-01T00:00:00.000Z",
      "requestedAmount": "100.55",
      "paidAmount": "100.55",
      "bankCharges": "100.55",
      "payableByAccountId": 42,
      "paymentType": "BANK_TRANSFER",
      "payableToBankId": 42,
      "lineCode": "string",
      "accountNumber": "string",
      "referenceNumber": "string",
      "qrBillData": "string",
      "isFromLockedAccountingPeriod": true
    }
  ],
  "document": {
    "id": 42,
    "entityId": 42,
    "name": "string",
    "fileId": 42,
    "date": "2026-01-01T00:00:00.000Z",
    "tags": [
      {
        "id": 42,
        "name": "string"
      }
    ],
    "contact": {
      "id": 42,
      "name": "string",
      "email": "string"
    },
    "module": "ALL",
    "comments": "string",
    "createdBy": "string",
    "createdOn": "2026-05-04T09:42:00Z",
    "fileExtension": "string",
    "size": 42,
    "isSystem": true,
    "self": true
  },
  "warnings": "string",
  "isFromLockedAccountingPeriod": true,
  "paymentChartId": 42,
  "status": "NEW",
  "isOrganizationNameIncluded": true,
  "isTreatedByManagingOrganization": true
}