Generate Report A3 PDF
Read PDF in Base64 format string and Convert it into PDF A-3 with attached xml file, the Output PDF is also in Base64 string Format.
Request Method
POST
Request URL
{{BASE_URL}}/api/v1/einvoices/A3PDF
Request Headers
x-evs-auth-token
String
Required
Mandatory. User auth token.
vat
String
Required
Mandatory. VAT or Group VAT of the entity.
Request Body
PDFBase64
String
PDF in Base64 string format
XMLBase64
String
Invoice XML is base 64 format.
Sample Request
{
"PDFBase64": "JVBERi0xLjcNCiW1tbW1DQ...",
"XMLBase64": "PD94bWwgdmVyc2lvbj0iMS..."
}
Response Status Codes
200
For a successful Get E-Invoice PDF
400
For any kind of validation issues.
401
If the user is not authenticated for the operation.
403
If the user is not authorized for the operation.
500
HTTP Internal Server Error. Returned when the service faces internal errors.
Response Schema
Base64EncodedPdfFile
String
A3 PDF with attach XML in base 64
Sample Response
Success - HTTP Status Code - 200
{
"Base64EncodedPdfFile": "JVBERi0xLjcKJe..."
}
Error - HTTP Status Code - 400
{
"ErrorCode": "00400",
"ErrorMessage": "PDFBase64 and XMLBase64 is Required",
"ErrorSource": "EVS_Engine"
}
Error - HTTP Status Code - 401
{
"ErrorCode": "100401",
"ErrorMessage": "Authentication Failed",
"ErrorSource": "EVS_Engine"
}
Error - HTTP Status Code - 403
{
"ErrorCode": "100403",
"ErrorMessage": "Authorization Failed",
"ErrorSource": "EVS_Engine"
}
Error - HTTP Status Code - 500
{
"ErrorCode": "00500",
"ErrorMessage": "Something Went wrong While Generating PDF A-3",
"ErrorSource": "EVS_Engine"
}
API Validations
PDF base 64 is Required.
XML base 64 is Required.
API Constraints
This API needs to be authenticated with a valid user authentication token. If the auth token is not present or is invalid, the API will return HTTP Status Code 401.
If the auth token is valid, but the user does not have the authorization to generate device ID, then the API will return HTTP Status Code 403. The user, whose auth token is used, should have an Admin role for the particular VAT used in the request.
Last updated