Entries
Create an entry (non-idempotent)
Entries
Create an entry (non-idempotent)
Create a new silo entry non-idempotently without an explicit UUID. Only recommended for testing purposes, production environments should use the PUT method.
POST
/silo/v1/entries
Bearer*
curl --request POST \
--url https://api.invopop.com/silo/v1/entries \
--header 'Authorization: Bearer <token>'
{
"attachments": [
{
"created_at": "2018-01-01T00:00:00.000Z",
"desc": "Invoice for January 2021.",
"hash": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6",
"id": "string",
"meta": "object",
"mime": "application/pdf",
"name": "invoice.pdf",
"size": "12345",
"stored": true,
"url": "string"
}
],
"created_at": "2018-01-01T00:00:00.000Z",
"data": null,
"digest": {
"alg": "string",
"val": "string"
},
"doc_schema": "https://gobl.org/draft-0/bill/invoice",
"draft": true,
"env_schema": "https://gobl.org/draft-0/envelope",
"folder": "sales",
"id": "347c5b04-cde2-11ed-afa1-0242ac120002",
"meta": "object",
"snippet": null,
"tags": [
"string"
],
"updated_at": "2018-01-01T00:00:00.000Z"
}
Body
data
Data contents to upload which may either be a GOBL Envelope or Document. Any partial data will be calculated and validated automatically.
folder
string
In which folder the entry should be associated, leave empty to use the automatic rules.
Response
attachments
array
List of attachments for this entry.
created_at
string
The date and time the silo entry was created.
data
JSON envelope contents when specifically requested.
digest
object
doc_schema
string
Schema URL for the document.
draft
boolean
When true, indicates that the envelope is a draft.
env_schema
string
Schema URL for the envelope.
folder
string
Key for the folder where the entry is located.
id
string
The UUIDv1 (other versions not supported) of the silo entry.
meta
object
snippet
JSON object containing a snippet of the document.
tags
string[]
Tags
updated_at
string
The date and time the silo entry was last updated.
curl --request POST \
--url https://api.invopop.com/silo/v1/entries \
--header 'Authorization: Bearer <token>'
{
"attachments": [
{
"created_at": "2018-01-01T00:00:00.000Z",
"desc": "Invoice for January 2021.",
"hash": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6",
"id": "string",
"meta": "object",
"mime": "application/pdf",
"name": "invoice.pdf",
"size": "12345",
"stored": true,
"url": "string"
}
],
"created_at": "2018-01-01T00:00:00.000Z",
"data": null,
"digest": {
"alg": "string",
"val": "string"
},
"doc_schema": "https://gobl.org/draft-0/bill/invoice",
"draft": true,
"env_schema": "https://gobl.org/draft-0/envelope",
"folder": "sales",
"id": "347c5b04-cde2-11ed-afa1-0242ac120002",
"meta": "object",
"snippet": null,
"tags": [
"string"
],
"updated_at": "2018-01-01T00:00:00.000Z"
}