Track document status
TrustWeaver provides operations to check invoice status and manage the lifecycle of storage sections.
In TrustWeaver, a document status is determined by the state of the storage section that holds the document and by the metadata returned when you retrieve or search for it.
A storage section represents a single transacting party (invoicing party or user organization) within a storage area. The section lifecycle controls which storage operations are available.
Storage section states
A storage section can be in one of the following states:
- Registered
-
The section exists but hasn't been enabled for storage. Invoices can't be stored on behalf of this party.
GetInvoiceandSearchInvoicesare not available. - Enabled
- The section is active. All operations are available: StoreInvoice, UpdateInvoice, GetInvoice, SearchInvoices, and Corroborate.
- LockedForArchiving
- The section is locked. StoreInvoice and UpdateInvoice are not available. GetInvoice, SearchInvoices, and Corroborate remain available. Use this state for bulk retrieval before offboarding.
- ClosedForArchiving
-
The section is closed. StoreInvoice,
UpdateInvoice, GetInvoice, and SearchInvoices are not available.Corroborateand branch key operations remain available. This state begins the grace period before permanent deletion.
Invoice metadata and status information
When you retrieve or search for an invoice, the response includes metadata you can use to determine its status. Key fields include:
- Reference
- A unique identifier for the stored invoice. Use this reference to retrieve the full invoice document with the GetInvoice operation.
- InvoiceInfo
- Invoice metadata such as invoice number, invoice date, and purchase order numbers.
- StoragePeriodEndDate
- The date when the stored invoice expires based on current configuration. This value might change over time due to configuration updates.
- StoredTime
- The date and time the document was stored, in UTC.
Check invoice status through the API
Before checking invoice status:
-
Your application must be authenticated with a valid X.509v3 client certificate.
-
The storage section for the invoicing party must be enabled.
-
You must have the invoice reference or enough search criteria (invoice number, date, or party information) to locate the invoice.
Use SearchInvoices to locate invoices and retrieve their references and metadata. Then use GetInvoice to retrieve the full invoice document and all attached files.
You have retrieved the invoice status and metadata. If the section is locked or closed, some operations might not be available. See Lock and close a section for details on how the section state affects the available operations.
