The API allows access to PDF files from the Pramata system for a given Pramata number.
API Request
Request type : GET
API End point: https://{customer}-api-{environment}.pramata.com/services/data/v1/documents/{pramata_number}/pdf
Example: https://demos-api.pramata.com/services/data/v1/documents/10814/pdf
Query Parameters
pramata_number: required
API Response
HTTP status code 200
PDF document can be accessed after saving the file with relevant PDF file name.
HTTP status code 404
{ "errors": [
{
"status": "404",
"source": {
"pointer": "https://demos.pramata.com/api/v1/contracts/10000/pdf_download"
},
"title": "Invalid Pramata Number",
"detail": "No matching Contracts found in the repository for the given Pramata Number"
}
]
}
HTTP status code 400
{
"errors": [
{
"status": "400",
"source": {
"pointer": "http://demos.pramata.com/api/v1/contracts/dsfds/pdf_download"
},
"title": "Bad Request Error",
"detail": "Please contact support@pramata.com with the URL"
}
]
}