All values are returned as strings. Please view all key-value pairs in our documentation. Scroll to bottom and select DocumentResponse: https://digi.costpocket.com/docs/
Please keep in mind that the following data is made up, and therefore not gone through actual validation by robot.
{ "documentId": "ATS-dd-233232", "documentType": "RECEIPT", "documentDirection": "DEBIT", "orderId": "OA123123", "country": "EE", "issued": "2022-01-23", "due": "2022-01-25", "currency": "EUR", "subtotal": "100.00", "rounding": "0.01", "VAT": "20", "total": "120.00", "refNumber": "123123321", "cardLast4": "1234", "suppliers": [ { "name": "Circle K Eesti AS", "address": "A. H. Tammsaare tee 47", "postalCode": "10115", "entityId": "10180925", "vatId": "EE100305317", "phone": "511234567", "email": "[email protected]" }, { "name": "Tallinna Kaubamaja Grupp AS", "address": "Kaubamaja tn 1", "postalCode": "10143", "entityId": "10223439", "vatId": "EE100050109" } ], "VATRows": [ { "subtotal": "12.50", "VAT": "2.50", "total": "15.00", "VATRate": "20" }, { "subtotal": "100.00", "VAT": "5.00", "total": "105.00", "VATRate": "5" } ], "lines": [ { "code": "6959655469806", "comment": "235/40R19 SAIL IBlaz EVO Rehv 96T XL RP", "type": "product", "unit": "tk", "unitPrice": "3", "unitPriceWithVAT": "3.6", "amount": "10", "subtotal": "30", "VATRate": "20", "VAT": "6", "total": "36", "isDiscount": "false", "totalNoDiscount": "50", "orderId": "OA123444" }, { "code": "235401902110843496", "comment": "Banana", "type": "product", "unit": "tk", "unitPrice": "3", "unitPriceWithVAT": "3.6", "amount": "10", "subtotal": "30", "VATRate": "20", "VAT": "6", "total": "36", "isDiscount": "false", "totalNoDiscount": "40", "orderId": "OA123444" }, { "comment": "Discount", "type": "product", "unit": "tk", "unitPrice": "5", "unitPriceWithVAT": "5", "amount": "1", "subtotal": "5", "total": "5", "isDiscount": "true" } ], "bankAccounts": [ "EE631010220007574011", "EE631010220007574012" ] }
Fields can be modified in the self-serve portal at https://digi.costpocket.com/portal/#/login
For most cases, robot validates all fields with several checks and different subsystems (AI, machine learning, databases, language collections). Usually, post-processing by you is not necessary.
Here are some tips on how to make parsing the values most efficient:
Supplier
Grand total
VAT rows
Item lines
ID-s (document number, order number etc)
Bank accounts
Document type
Document direction
Country code