Photon Commerce API
  • Getting Started with the Photon Commerce API
    • Register a new account
    • Capture an invoice or receipt in real time
    • Confidence Scores & Coordinates
  • Update Document
    • Update Fields
    • Update Line Items
    • Add Line Item
    • Delete Line Item
  • Retrieve Data
  • Async API
  • Async API Webhook
  • Bank Transaction Categorization
  • Invoice Approvals
  • Status Codes
Powered by GitBook
On this page

Was this helpful?

Invoice Approvals

As documents go through business workflows, capture the state and history of each document in an API.

Each document has a status within the larger business workflow of an organization. The history of the document can be edited, appended to, or deleted in the state as follows. The document's status is captured in the field called "status" as a list.

Document states

"Created":    <time stamp of when document was uploaded, by whom>,
"Routed":     <time stamp of when document was routed, rule applied, recipient>,
"Received":   <time stamp of when document was received, by whom>,
"Viewed":     <time stamp of when document was viewed, by whom>,
"Modified":   <time stamp of when document was modified, by whom>,
"Approved":   <time stamp of when document was approved, by whom>,
"Paid":       <time stamp of when document was paid, by whom>,
"Deposited":  <time stamp of when document was deposited, by whom>, 

An example of the status history of a document is:

"Status": [
    {"Created": "2021-02-03 09: 40: 03 GMT-7, user1@photoncommerce.com"},
    {"Routed": "2021-02-03 09: 40: 03 GMT-7, Balance Due > 2500, user2@photoncommerce.com"},
    {"Received": "2021-02-03 09: 40: 09 GMT-7, user2@photoncommerce.com"},
    {"Viewed": "2021-02-03 10: 04: 09 GMT-7, user2@photoncommerce.com"},
    {"Modified": "2021-02-03 10: 05: 03 GMT-7, user2@photoncommerce.com"},
    {"Modified": "2021-02-03 10: 05: 10 GMT-7, user2@photoncommerce.com"},
    {"Approved": "2021-02-03 10: 05: 17 GMT-7, user2@photoncommerce.com"},
    {"Paid": "2021-02-03 10: 05: 38 GMT-7, user2@photoncommerce.com"},
    {"Deposited": "2021-02-05 05: 13: 00 GMT-7, user2@photoncommerce.com"}
]

PreviousBank Transaction CategorizationNextStatus Codes

Last updated 3 years ago

Was this helpful?