• Register

InsertPDF

This api is consumed by a user to insert an invoice in PDF format. #### Request URI
``` POST /campari.com/esb/invoiceverification/insertpdf/v1 ```
#### Request Structure
API field Type Mandatory Description
PDFObj
CompanyCode String Y Campari Company Code
DocumentNumber String Y Campari Document Number
FiscalYear String Y Fiscal Year
HeaderText String Y - da Verificare
PDFDocB64 String Y The PDF in base64 format
#### Request Example
``` { "PDFObj":{ "CompanyCode":"US20", "DocumentNumber":"107556", "FiscalYear":"2019", "HeaderText":"US20190039198" }, "PDFDocB64":"" } ```
#### Response Structure
API field Type Description
ResponseType (0..∞)
Status String Possible value are “S”, “E”
Class String RFC Table queried
Code String Response Code from the RFC Table
Message String This field is a message description of the action status
#### Response Example
``` { "CommonResponse": { "ResponseType": [ { "Status": "S", "Class": "ZFI_SNOW", "Code": "216", "Message": "PDF attached" } ] } } ```
#### Response Table:
Status Message Description
S In case of request processed successfully
E Error on internal Campari’s system - SAP In case of error while connecting to SAP
S PDF attached The following message refers to a success response
E Fill Mandatory Fields Some of the mandatory field is empty

Docs Navigation