Skip to content

Retrieve Purchase Invoice Documents (Deprecated)
deprecated

Request

(deprecated, use /purchase-invoice/{id}/documents instead)

Security
oAuth2ClientCredentials
Path
idstring, (uuid)(Id)required
GET
/v1/accounting/purchase_invoice/{id}/documents
import requests

id = "YOUR_id_PARAMETER"
url = "https://api.qargo.com/v1/accounting/purchase_invoice/" + id + "/documents"

headers = {"Authorization": "Bearer <YOUR_TOKEN_HERE>"}

response = requests.get(url, headers=headers)

data = response.json()
print(data)

Responses

Successful Response

Bodyapplication/json
Array [
idstring, (uuid)(Id)required

Unique identifier of the document

namestring(Name)required

Name of the document

typestring(Type)required

Type of the document

download_urlstring(Download Url)

Relative URL from the base URL to download the document

Default:""
subject_typestring(Subject Type)required

Linked subject of the document

content_typestring or null(Content Type)
Any of:

Content type of the document

string
]
Response
[ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "type": "string", "download_url": "", "subject_type": "string", "content_type": "string" } ]