Retrieves the collection of Invoice resources.
Invoice collection
{- "hydra:member": [
- {
- "@context": "string",
- "@id": "string",
- "@type": "string",
- "uuid": "string",
- "direction": "outgoing",
- "format": "UBL 2.1 XML",
- "number": "string",
- "date": "string",
- "sender": {
- "@context": "string",
- "@id": "string",
- "@type": "string",
- "name": "string",
- "identifier": "string"
}, - "recipient": {
- "@context": "string",
- "@id": "string",
- "@type": "string",
- "name": "string",
- "identifier": "string"
}, - "createdAt": "string",
- "downloaded": true,
- "peppolMessage": {
- "@context": "string",
- "@id": "string",
- "@type": "string",
- "uuid": "string",
- "createdAt": "string",
- "requestSentAt": "string",
- "responseReceivedAt": "string",
- "success": true,
- "errorCode": "string"
}
}
], - "hydra:totalItems": 0,
- "hydra:view": {
- "@id": "/entity/1",
- "@type": "string",
- "hydra:first": "/entity/1",
- "hydra:last": "/entity/1",
- "hydra:previous": "/entity/1",
- "hydra:next": "/entity/1"
}, - "hydra:search": {
- "@type": "string",
- "hydra:template": "string",
- "hydra:variableRepresentation": "string",
- "hydra:mapping": [
- {
- "@type": "string",
- "variable": "string",
- "property": "string",
- "required": true
}
]
}
}
Mark the document as downloaded. This is useful to keep track of the documents that have been received by the user.
Invoice resource created
Invalid input
Unprocessable entity
{- "downloaded": true,
- "uuids": [
- "string"
]
}
null
Import a received UBL 2.1 invoice in either the original XML format or the JSON transposition.
You must send the XML or JSON as the request body along with the right Content-Type
header (application/xml
or application/json
).
The new Invoice resource
Invoice resource created
Invalid input
Unprocessable entity
null
{- "uuid": "string",
- "direction": "outgoing",
- "format": "UBL 2.1 XML",
- "number": "string",
- "date": "string",
- "sender": {
- "name": "string",
- "identifier": "string"
}, - "recipient": {
- "name": "string",
- "identifier": "string"
}, - "createdAt": "string",
- "downloaded": true,
- "peppolMessage": {
- "uuid": "string",
- "createdAt": "string",
- "requestSentAt": "string",
- "responseReceivedAt": "string",
- "success": true,
- "errorCode": "string"
}
}
Send a UBL 2.1 invoice in either the original XML format or the JSON transposition.
You must send the XML or JSON as the request body along with the right Content-Type
header (application/xml
or application/json
).
Optionally you can send the X-Validation-Rule: {validation-rule-code}
where {validation-rule-code}
is one of the available validation rules you can use.
You can retrieve a list of the available validation rules using the API GET /validation-rules
.
By default the validation rule is autodetected using the latest rule available for the given document.
See here for more information about UBL.
The new Invoice resource
Invoice resource created
Invalid input
Unprocessable entity
null
{- "uuid": "string",
- "direction": "outgoing",
- "format": "UBL 2.1 XML",
- "number": "string",
- "date": "string",
- "sender": {
- "name": "string",
- "identifier": "string"
}, - "recipient": {
- "name": "string",
- "identifier": "string"
}, - "createdAt": "string",
- "downloaded": true,
- "peppolMessage": {
- "uuid": "string",
- "createdAt": "string",
- "requestSentAt": "string",
- "responseReceivedAt": "string",
- "success": true,
- "errorCode": "string"
}
}
Retrieves a Invoice resource.
Invoice resource
Resource not found
{- "@context": "string",
- "@id": "string",
- "@type": "string",
- "uuid": "string",
- "direction": "outgoing",
- "format": "UBL 2.1 XML",
- "number": "string",
- "date": "string",
- "sender": {
- "@context": "string",
- "@id": "string",
- "@type": "string",
- "name": "string",
- "identifier": "string"
}, - "recipient": {
- "@context": "string",
- "@id": "string",
- "@type": "string",
- "name": "string",
- "identifier": "string"
}, - "createdAt": "string",
- "downloaded": true,
- "peppolMessage": {
- "@context": "string",
- "@id": "string",
- "@type": "string",
- "uuid": "string",
- "createdAt": "string",
- "requestSentAt": "string",
- "responseReceivedAt": "string",
- "success": true,
- "errorCode": "string"
}
}
If you specify header Accept equal to 'application/pdf' or 'text/html' you will receive a 302 redirect response with the Location header pointing to the downloadable file. Additionally you get the URL to the downloaded file in the JSON response body.
If you specify header Accept equal to 'application/json' you will receive 200 status code and the JSON response containing the URL to follow manually.
You can avoid the 302 redirect response by sending header X-WithRedirect: false
Invoice resource
Resource not found