The documentType (set to INVOICE, BOARDING_PASS, CONFIRMATION, or MISCELLANEOUS depending on the type of document)
The entityType (set to PNR)
The entityId (containing the pnrId obtained from step 1)
The entityMetadata containing the details of the document (e.g., invoice number)
The document name
The file attachment that needs to be uploaded.
Note: Since this API uses a multipart/form-data content type, the file field must contain the absolute path of the file’s location (e.g., file=@/Documents/Invoice.pdf).
Once you have received a successful response, you can use the document field in the get PNR API to view the uploaded document. You can also use the list documents API to get a list of all documents uploaded for a PNR.