Retrieve Data
To retrieve insights by Photon Commerce
Access extracted JSON of uploaded files
Fetch the JSON content of already processed files without needing to re-upload the document.
Fetch JSON content
GET
https://api.photoncommerce.com/api/v1/json
Fetch JSON content of a specific file by passing the file id as a query parameter. Send a GET request using the same authentication technique(using username, password, api key, client id and secret key) to fetch the json data for previously uploaded invoices/receipts using the photon_key.
Query Parameters
photon_key
string
The photon_key of the uploaded file to fetch the JSON of.
Headers
Secret key
string
The secret key of your account
Password
string
The password to your account
Authorization
string
Pass your email address and unique API key in the form 'apikey <your_email>:<your_api_key>'
Client_ID
string
Unique Client_ID for every user. Incorrect value will lead to an authorization error.
Field
Type
Description
Invoice_Number
string
Invoice number
PO_Number
string
Purchase Order number
Date
string <yyyy-MM-dd>
Document date as it appears in the document
Payment_Terms
string
Terms of payment, e.g., Net-30
Due_Date
string <yyyy-MM-dd>
Invoice due date
Currency_Code
string
Currency code, e.g., USD, EUR, CNY, etc.
Discount
decimal
Discount provided on the invoice or receipt
Vat_Number
string
The Value Added Tax number, e.g., 12-3456789
Total
decimal
Total of the invoice or receipt
The follow describes the complete fields and value types. For an example response, please see the above "Response" tab.
Last updated
Was this helpful?