Get the card statement of a 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/card-statements/scan/{scanId}

Returns the statement and its transaction lines, or 204 when the scan is not a card statement.

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

  • scanId integer(int64) Required

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • id integer(int64)
    • purchaseInvoiceScanId integer(int64)
    • purchaseInvoiceId integer(int64)
    • issuerContactId integer(int64)
    • extractionStatus string

      Values are PENDING, EXTRACTING, EXTRACTED, or FAILED.

    • extractionMessage string
    • statementTotal number
    • periodFrom string(date-time)
    • periodTo string(date-time)
    • linesTotal number
    • compensationTotal number
    • awaitingExpenseCount integer(int32)
    • readOnly boolean
    • lines array[object]
      Hide lines attributes Show lines attributes object
      • id integer(int64)
      • position integer(int32)
      • transactionDate string(date-time)
      • bookingDate string(date-time)
      • merchant string
      • description string
      • amount number
      • originalCurrency string
      • originalAmount number
      • cardLastDigits string
      • companyCardId integer(int64)
      • lineType string

        Values are PURCHASE, REFUND, FEE, INTEREST, FX_FEE, ANNUAL_FEE, PAYMENT, or OTHER.

      • status string

        Values are AWAITING_EXPENSE, MATCHED, BOOKED_DIRECTLY, ALLOCATED, or EXCLUDED.

      • chartOfAccountsId integer(int64)
      • departmentId integer(int64)
      • vatType string

        Values are NO_VAT, NATIVE, or IMPORT_OF_SERVICE.

      • vatTypeCodeId integer(int64)
      • vatRateId integer(int64)
      • receiptDocumentFileId integer(int64)
      • expenseId integer(int64)
      • isManual boolean
      • holderContactId integer(int64)
      • holderName string
  • 400

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    500 Internal Server Error

GET /api-v1/card-statements/scan/{scanId}
curl \
 --request GET 'https://wyzio.app/api-v1/card-statements/scan/{scanId}'
Response examples (200)
{
  "id": 42,
  "purchaseInvoiceScanId": 42,
  "purchaseInvoiceId": 42,
  "issuerContactId": 42,
  "extractionStatus": "PENDING",
  "extractionMessage": "string",
  "statementTotal": 42.0,
  "periodFrom": "2026-05-04T09:42:00Z",
  "periodTo": "2026-05-04T09:42:00Z",
  "linesTotal": 42.0,
  "compensationTotal": 42.0,
  "awaitingExpenseCount": 42,
  "readOnly": true,
  "lines": [
    {
      "id": 42,
      "position": 42,
      "transactionDate": "2026-05-04T09:42:00Z",
      "bookingDate": "2026-05-04T09:42:00Z",
      "merchant": "string",
      "description": "string",
      "amount": 42.0,
      "originalCurrency": "string",
      "originalAmount": 42.0,
      "cardLastDigits": "string",
      "companyCardId": 42,
      "lineType": "PURCHASE",
      "status": "AWAITING_EXPENSE",
      "chartOfAccountsId": 42,
      "departmentId": 42,
      "vatType": "NO_VAT",
      "vatTypeCodeId": 42,
      "vatRateId": 42,
      "receiptDocumentFileId": 42,
      "expenseId": 42,
      "isManual": true,
      "holderContactId": 42,
      "holderName": "string"
    }
  ]
}