• Register

InvoicePostingFI

This API is used for trasmission of non-PO based AP Invoice details from the SNOW to SAP public cloud and post it in SAP Public cloud and send back the accounting document details to SNOW.

1. InvoicePostingFI v1

#### Request URI
``` POST /campari.com/esb/invoiceverification/invoicepostingfi/v1 ```
#### Request Structure
API field Type Mandatory Description
DocumentHeader
CompanyCode String Y Campari Company Code
AccountNumVendCred String Y Campari Account Number
DocumentDate String Y Document date in format YYYYMMDD
PostingDate String N Posting date
Reference String Y Reference number
AmountDocCurr String Y Amount document currency value
Currency String Y Currency name
CalcTax String N Tax calculated
TaxCode Sting N Tax code
CalcTax String N Tax calculated
Text String N Text
TaxAmount String Y Tax amount
DocumentType String N Document type
PayMethod String N Payment method
TermsPayKey String N Tems of payment key
DocHeaderText String Y Document header text identification
PayBlockKey String N PayBlockKey
ItemGL
#### Request Example
``` { "DocumentHeader": { "CompanyCode": "AR20", "ListBusinTrans": "R", "AccountNumVendCred": "1000033769", "DocumentDate": "20190926", "PostingDate": "", "Reference": "0005A00003685", "AmountDocCurr": 30300.0, "Currency": "ARS", "CalcTax": "", "TaxCode": "", "Text": "", "TaxAmount": 5300.0, "DocumentType": "", "PayMethod": "", "TermsPayKey": "", "DocHeaderText": "AR20190011845", "PayBlockKey": "" }, "ItemGL": {} } ```
#### Response Structure
API field Type Description
CompanyCode String Company Code
AccountingDocNum String Accounting Document Number
PostingDate String Posting Date
FiscalYear String Fiscal Year
CommonResponse
ResponseType (0..∞)
Status String Possible value are “S”, “E”
Class String Class
Code String Code
Message String This field is provided in case of error status and represents a description of the error
#### Response Example
``` { "CompanyCode":"", "AccountingDocNum":"", "PostingDate":"00000000", "FiscalYear":"0000", "CommonResponse":{ "ResponseType": [ { "Status": "S", "Class": "", "Code": "", "Message": "" } ] } } ```
#### 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
E Fill Mandatory Fields in case of empty mandatory fields

2. InvoicePostingFI v2

#### Request URI
``` POST /campari.com/esb/invoiceverification/invoicepostingfi/v2 ```
#### Request Structure
API field Type Mandatory Description
DocumentHeader
CompanyCode String Y Campari Company Code
AccountNumVendCred String Y Campari Account Number
DocumentDate String Y Document date in format YYYYMMDD
PostingDate String N Posting date
Reference String Y Reference number
AmountDocCurr String Y Amount document currency value
Currency String Y Currency name
CalcTax String N Tax calculated
TaxCode Sting N Tax code
CalcTax String N Tax calculated
Text String N Text
TaxAmount String Y Tax amount
DocumentType String N Document type
PayMethod String N Payment method
TermsPayKey String N Tems of payment key
DocHeaderText String Y Document header text identification
PayBlockKey String N PayBlockKey
SPIRIT_CALL String N Spirit Call
ItemGL
#### Request Example
``` { "DocumentHeader": { "CompanyCode": "AR20", "ListBusinTrans": "R", "AccountNumVendCred": "1000033769", "DocumentDate": "20190926", "PostingDate": "", "Reference": "0005A00003685", "AmountDocCurr": 30300.0, "Currency": "ARS", "CalcTax": "", "TaxCode": "", "Text": "", "TaxAmount": 5300.0, "DocumentType": "", "PayMethod": "", "TermsPayKey": "", "DocHeaderText": "AR20190011845", "PayBlockKey": "", "SPIRIT_CALL":"" }, "ItemGL": {} } ```
#### Response Structure
API field Type Description
CompanyCode String Company Code
AccountingDocNum String Accounting Document Number
PostingDate String Posting Date
FiscalYear String Fiscal Year
CommonResponse
ResponseType (0..∞)
Status String Possible value are “S”, “E”
Class String Class
Code String Code
Message String This field is provided in case of error status and represents a description of the error
#### Response Example
``` { "CompanyCode":"", "AccountingDocNum":"", "PostingDate":"00000000", "FiscalYear":"0000", "CommonResponse":{ "ResponseType": [ { "Status": "S", "Class": "", "Code": "", "Message": "" } ] } } ```
#### 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
E Fill Mandatory Fields in case of empty mandatory fields

Docs Navigation