Ir al contenido

Search issued documents

GET
/companies/{companyId}/documents
curl --request GET \
--url 'https://acme.gravitastec.com/api/v1/companies/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/documents?limit=50' \
--header 'Authorization: Bearer <token>'
companyId
required
string format: uuid
from
string format: date
to
string format: date
ecfType
integer
encf
string
/^E\d{12}$/
buyerRnc
string
status
string
cursor
string
limit
integer
default: 50 >= 1 <= 200

Page of documents

Media typeapplication/json
object
items
Array<object>
object
documentId
string format: uuid
companyId
string format: uuid
environment
string
Allowed values: testecf certecf ecf
ecfType
integer
status
string
encf
string | null
trackId
string | null
securityCode
string | null
dgiiMessages
Array<object>
object
createdAt
string format: date-time
finalizedAt
string | null format: date-time
delivery

Delivery to the buyer (R8); absent until the document is accepted

object
channel
string
Allowed values: electronic email none
status
string
Allowed values: pending delivered not_received failed not_applicable
reason
string | null
deliveredAt
string | null format: date-time
links
object
xml
string
printed
string
exchanges
string
nextCursor
string | null

Example

{
"items": [
{
"environment": "testecf",
"delivery": {
"channel": "electronic",
"status": "pending"
}
}
]
}

Not found or outside the credential scope

Media typeapplication/problem+json
object
type
string
title
string
status
integer
code
string
errors
Array<object>
object
path
string
message
string

Example generated

{
"type": "example",
"title": "example",
"status": 1,
"code": "example",
"errors": [
{
"path": "example",
"message": "example"
}
]
}