curl --request POST \
--url https://api.sandbox.tesouro.com/finops/v1/ocr-tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-finops-version: <x-finops-version>' \
--data '
{
"file_url": "<string>",
"document_type": "invoice"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"status": "processing",
"document_type": "invoice",
"recognized_data": {
"recipient": {
"address": {
"city": "<string>",
"country": "AF",
"postal_code": "<string>",
"state": "<string>",
"street_and_number": "<string>"
},
"bank_account": {
"bank_account_number": "<string>",
"iban": "<string>",
"swift_bic": "<string>"
},
"email": "<string>",
"name": "<string>",
"tax_number": "<string>",
"vat_number": "<string>"
},
"sender": {
"address": {
"city": "<string>",
"country": "AF",
"postal_code": "<string>",
"state": "<string>",
"street_and_number": "<string>"
},
"bank_account": {
"bank_account_number": "<string>",
"iban": "<string>",
"swift_bic": "<string>"
},
"email": "<string>",
"name": "<string>",
"tax_number": "<string>",
"vat_number": "<string>"
},
"amount_paid": 123,
"currency": "AED",
"document_number": "<string>",
"due_date": "2023-12-25",
"issue_date": "2023-12-25",
"line_items": [
{
"description": "<string>",
"line_reference": "<string>",
"name": "<string>",
"quantity": 123,
"subtotal": 123,
"tax_amount": 123,
"tax_rate": 123,
"total_amount": 123,
"unit": "<string>",
"unit_price": 123
}
],
"payment_terms": "<string>",
"subtotal": 123,
"tax_amount": 123,
"tax_rate": 123,
"total_amount": 123,
"type": "invoice"
}
}curl --request POST \
--url https://api.sandbox.tesouro.com/finops/v1/ocr-tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-finops-version: <x-finops-version>' \
--data '
{
"file_url": "<string>",
"document_type": "invoice"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"status": "processing",
"document_type": "invoice",
"recognized_data": {
"recipient": {
"address": {
"city": "<string>",
"country": "AF",
"postal_code": "<string>",
"state": "<string>",
"street_and_number": "<string>"
},
"bank_account": {
"bank_account_number": "<string>",
"iban": "<string>",
"swift_bic": "<string>"
},
"email": "<string>",
"name": "<string>",
"tax_number": "<string>",
"vat_number": "<string>"
},
"sender": {
"address": {
"city": "<string>",
"country": "AF",
"postal_code": "<string>",
"state": "<string>",
"street_and_number": "<string>"
},
"bank_account": {
"bank_account_number": "<string>",
"iban": "<string>",
"swift_bic": "<string>"
},
"email": "<string>",
"name": "<string>",
"tax_number": "<string>",
"vat_number": "<string>"
},
"amount_paid": 123,
"currency": "AED",
"document_number": "<string>",
"due_date": "2023-12-25",
"issue_date": "2023-12-25",
"line_items": [
{
"description": "<string>",
"line_reference": "<string>",
"name": "<string>",
"quantity": 123,
"subtotal": 123,
"tax_amount": 123,
"tax_rate": 123,
"total_amount": 123,
"unit": "<string>",
"unit_price": 123
}
],
"payment_terms": "<string>",
"subtotal": 123,
"tax_amount": 123,
"tax_rate": 123,
"total_amount": 123,
"type": "invoice"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the entity that owns the requested resource.
"9d2b4c8f-2087-4738-ba91-7359683c49a4"
OCR task has been accepted for execution.
processing, success, error invoice, credit_note, receipt Show child attributes
Was this page helpful?