New Documents
The fastest way to upload data to Invopop is by creating an entry with thedata property containing the GOBL JSON of either a pre-built Envelope or a partial document like an Invoice or Party.
Use the key property in the request to ensure idempotency. If the same key is used in the same workspace in another silo entry, the request will be rejected with a 409 Conflict error code.
Invoice Payload Example
folder field in the request.
If there are any validation issues with the uploaded data, the service will respond with an error message including a key and message. Additionally, the fields property may include a nested structure to help identify the specific property with a validation fault.
Creating Entries from Previous Documents
You can create new entries based on a previous entry by using theprevious_id field. This allows you to provide patch data instead of a full new document by setting the patch type in the content_type field to one of the following:
application/json-patch+json- for JSON Patch (RFC 6902)application/merge-patch+json- for JSON Merge Patch (RFC 7396)
previous_id field can be used to create corrective documents by including corrective option data in the correct field. For more details, refer to the GOBL documentation on correction options.