Skip to main content
POST
/
accounts
/
{accountId}
/
receipts
/
scan
OCR scan receipt
curl --request POST \
  --url https://api.opencard.io/api/v1/application/accounts/{accountId}/receipts/scan \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "receipt": "base64-image...",
  "include": [
    "line_items"
  ]
}
'
{
  "merchant": "ICA",
  "total_amount": 109.38,
  "currency": "SEK",
  "line_items": [
    {
      "description": "Coffee",
      "amount": 45
    }
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

accountId
integer
required

Your account ID

Body

application/json
receipt
string
required
include
string[]

Response

200 - application/json

OCR result