Skip to main content
POST
/
api
/
receipts
/
analyze
Analyze receipt asset
curl --request POST \
  --url https://api.ai2fin.com/api/receipts/analyze \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "assetUrl": "<string>",
  "mimeType": "<string>",
  "size": 123,
  "sha256": "<string>"
}'
{
  "success": true,
  "data": {
    "extracted": {
      "merchant": "<string>",
      "dateISO": "2023-12-25",
      "currency": "<string>",
      "total": 123,
      "tax": 123,
      "tip": 123,
      "lineItems": [
        {
          "description": "<string>",
          "quantity": 123,
          "unitPrice": 123,
          "amount": 123
        }
      ]
    },
    "candidates": [
      {
        "id": "<string>",
        "date": "2023-12-25",
        "amount": 123
      }
    ],
    "asset": {
      "assetUrl": "<string>",
      "mimeType": "<string>",
      "size": 123
    }
  }
}

Authorizations

Authorization
string
header
required

JWT token obtained from /api/auth/login endpoint

Body

application/json
assetUrl
string
required
mimeType
string
required
size
integer
required
sha256
string

Response

200 - application/json

Receipt analyzed

success
boolean
data
object