x402

Receipt Categorize (x402)

Extract and categorize receipt data. Returns vendor, date, amount, tax, currency, expense category, line items. Ready for expense reports.

get/x402/v2/receipt-categorize

Request

  • Base URL: https://api.strale.io
  • URL: https://api.strale.io/x402/v2/receipt-categorize
  • Auth: none required

Query parameters

textstring
base64string
image_urlstring

Response

Success

categorystring
currencystring
vendor_namestring
total_amountnumber

Example response

{
  "date": "2024-01-15",
  "category": "meals",
  "currency": "USD",
  "subtotal": 5.5,
  "line_items": [
    {
      "amount": 5.5,
      "quantity": 1,
      "unit_price": 5.5,
      "description": "Caffe Latte"
    }
  ],
  "tax_amount": null,
  "tip_amount": null,
  "vendor_name": "Starbucks Coffee",
  "total_amount": 5.5,
  "card_last_four": "4242",
  "payment_method": "card",
  "expense_report_fields": {
    "date": "2024-01-15",
    "amount": 5.5,
    "vendor": "Starbucks Coffee",
    "category": "meals",
    "currency": "USD",
    "description": "Caffe Latte"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.