$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "document": "https://files.manuscdn.com/user_upload_by_module/session_file/310519663080398616/ATUpqEGiovUnQJOt.txt",
< "outputSchema": {
< "type": "object",
< "properties": {
< "invoiceNumber": {
< "type": [
< "string",
< "null"
< ],
< "description": "Invoice identifier exactly as printed"
< },
< "invoiceDate": {
< "type": [
< "string",
< "null"
< ],
< "description": "Invoice date in YYYY-MM-DD format"
< },
< "currency": {
< "type": [
< "string",
< "null"
< ],
< "description": "Three-letter ISO currency code"
< },
< "supplierName": {
< "type": [
< "string",
< "null"
< ]
< },
< "supplierVatId": {
< "type": [
< "string",
< "null"
< ]
< },
< "customerName": {
< "type": [
< "string",
< "null"
< ]
< },
< "subtotal": {
< "type": [
< "number",
< "null"
< ]
< },
< "tax": {
< "type": [
< "number",
< "null"
< ]
< },
< "total": {
< "type": [
< "number",
< "null"
< ]
< },
< "dueDate": {
< "type": [
< "string",
< "null"
< ],
< "description": "Payment due date in YYYY-MM-DD format"
< }
< },
< "required": [
< "invoiceNumber",
< "invoiceDate",
< "currency",
< "supplierName",
< "supplierVatId",
< "customerName",
< "subtotal",
< "tax",
< "total",
< "dueDate"
< ],
< "additionalProperties": false
< }
<}
<EOF
$curl "https://api.apify.com/v2/actors/scalogik~document-processing-api-pdf-ocr-validated-json/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'