Skip to main content
GET
/
parse
/
invoices
/
{job_id}
Get Invoice Processing Status
curl --request GET \
  --url https://api.invaro.ai/api/v1/parse/invoices/{job_id} \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.invaro.ai/api/v1/parse/invoices/{job_id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.invaro.ai/api/v1/parse/invoices/{job_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.invaro.ai/api/v1/parse/invoices/{job_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.invaro.ai/api/v1/parse/invoices/{job_id}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.invaro.ai/api/v1/parse/invoices/{job_id}")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.invaro.ai/api/v1/parse/invoices/{job_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "job_id": "job_123456789",
  "status": "completed",
  "file_id": "sample_invoice.pdf",
  "created_at": "2025-02-11T08:19:37Z",
  "updated_at": "2025-02-11T08:19:53Z",
  "result": {
    "bank_details": {
      "IFSC": "ABC0001234",
      "SWIFT_CODE": "ABCDINBB",
      "account_number": "123456789012",
      "bank_name": "XYZ Bank Ltd."
    },
    "buyer_details": {
      "GSTIN": "00AAAAA0000A1Z0",
      "name": "ABC Enterprises",
      "address": "123, Main Street, City, Country",
      "phone": "9876543210",
      "state_code": "XY"
    },
    "invoice_details": {
      "GR_date": "01/01/2025",
      "GR_number": "987654"
    },
    "tax_calculation": {
      "HSN": "12345678",
      "IGST_amount": "1000.00",
      "IGST_percentage": "10%",
      "reverse_charge_applicable": "Not applicable"
    },
    "total_calculation": {
      "IGST_at_10_percentage": "100.00"
    }
  }
}
{
"success": false,
"error": "Invalid job ID provided"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

job_id
string
required

ID of the processing job

Response

Job status retrieved successfully

job_id
string
Example:

"job_123456789"

status
enum<string>
Available options:
processing,
completed,
failed
Example:

"completed"

file_id
string
Example:

"sample_invoice.pdf"

created_at
string<date-time>
Example:

"2025-02-11T08:19:37Z"

updated_at
string<date-time>
Example:

"2025-02-11T08:19:53Z"

result
object