Authorizations
JWT token obtained from /api/auth/login endpoint
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
}
}
}Extract structured data from an uploaded receipt or invoice
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
}
}
}JWT token obtained from /api/auth/login endpoint