Generate PDF/A3 e-Invoice

Get the PDF/A3 version of an E-Invoice with the XML attached based on the invoice identifiers of the invoice data already sent to Clear earlier.

Request Method

POST

Request URL

{{BASE_URL}}/api/EInvoice/GeneratePDFA3Base64

Replace the {{BASE_URL}} with the one mentioned here based on whether you are using sandbox or production.

Replace the {Your_Invoice_Number} with Invoice Number.

Request Authorization

Parameter
Data Type
Validations and Example
Description

Bearer token

String

Cannot be empty.

Mandatory

Request Body

Parameter
Data Type
Validations and Example
Description

PDFBase64

String

Mandatory. Base64 of PDF

XMLBase64

string

Mandatory. Base64 of invoiceXML

Sample Request

{
    "PDFBase64": "JVBERi0xLjMNCjEgMCBvYmoN...",
    "XMLBase64": "PD94bWwgdmVyc2lvbj0iMS4w..."
}

Response Status Codes

HTTP Status Code
Description

200

For a successful A3 PDF E-Invoice.

400

For any kind of validation issues or invalid Invoice Number.

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

Parameter
Data Type
Description

base64EncodedPdfFile

String

Mandatory

Sample Response

Success - HTTP Status Code - 200

{
    "base64EncodedPdfFile": "JVBERi0xLjcKJeLjz9MKOSAwIG9i..."
}

Error - HTTP Status Code - 400

{
    "errorCode": "00400",
    "errorMessage": "PDFBase64 and XMLBase64 is Required",
    "errorSource": "EVS_Engine"
}

Last updated