• Register

InvoicePostingPO

Transfer the invoice details from ServiceNow (SNOW) to SAP and post the invoice in SAP. #### Request URI
POST /campari.com/esb/invoiceverification/invoicepostingpo/v1
#### Request Structure
API field Type Mandatory Description
DocumentHeader
CompanyCode String (max 4 chars) Y Campari Company Code
ListFieldTransEvent String (max 1 char) N Indicator for invoice posting transaction
AccountNumVendCred String (max 10 chars) Y Vendor/Creditor account number
DocumentDate String (max 8 chars) Y Document date in format YYYYMMDD
PostingDate String (max 8 chars) N Posting date in format YYYYMMDD
Reference String (max 16 chars) Y Reference document number
AmountDocCurr Decimal (23,2) Y Amount in document currency. Maximum 23 total digits, including 2 decimal digits
Currency String (max 5 chars) Y Currency key
CalcTax String (max 1 char) N Calculate tax automatically indicator
TaxCode String (max 2 chars) N Tax code
Text String (max 50 chars) N Item text
TaxAmount Decimal (23,2) Y Tax amount in document currency. Maximum 23 total digits, including 2 decimal digits
DocumentType String (max 2 chars) N Document type
ReferenceDocCategory String (max 1 char) N Reference document category
PayMethod String (max 1 char) N Payment method. The value is mapped to SAP field ZLSCH, which accepts a maximum of 1 character
TermsPayKey String (max 4 chars) N Terms of payment key
DocHeaderText String (max 25 chars) Y Document header text
PayBlockKey String (max 1 char) N Payment block key
ItemPO
PurchDoc String (max 10 chars) N Purchasing document number
ItemDDT
NumExternalDelivNote String (max 16 chars) N Number of external delivery note
ItemGL
GLAccount String (max 10 chars) N General Ledger account
AmountDocCurr Decimal (23,2) N Amount in document currency. Maximum 23 total digits, including 2 decimal digits
TaxCode String (max 2 chars) N Tax on sales/purchases code
CostCenter String (max 10 chars) N Cost center
WorkBreakStrucElement String (max 8 chars) N Work Breakdown Structure element (WBS element)
Order String (max 12 chars) N Order number
AssignNumber String (max 18 chars) N Assignment number
Text String (max 50 chars) N Item text
PostingKey String (max 2 chars) N Posting key
SubBrand String (max 18 chars) N Sub-brand
Material String (max 40 chars) N Material number
SubArea String (max 3 chars) N Sub-area
Channel String (max 3 chars) N Channel
KeyCustumer String (max 10 chars) N Key customer
ConsolidTransType String (max 3 chars) N Consolidation transaction type
ReferenceKey1 String (max 12 chars) N Business partner reference key
ReferenceKey3 String (max 20 chars) N Reference key for line item
#### Request Example
{
    "DocumentHeader": {
        "CompanyCode": "US20",
        "ListFieldTransEvent": "1",
        "AccountNumVendCred": "1100103761",
        "DocumentDate": "20250313",
        "PostingDate": "",
        "Reference": "31180975",
        "AmountDocCurr": "17436.23",
        "Currency": "USD",
        "CalcTax": "",
        "TaxCode": "I0",
        "Text": "",
        "TaxAmount": "0",
        "DocumentType": "RE",
        "ReferenceDocCategory": "",
        "PayMethod": "",
        "TermsPayKey": "",
        "DocHeaderText": "US20250223041",
        "PayBlockKey": ""
    },
    "ItemPO": {
        "item": [
            {
                "PurchDoc": "4500854977"
            }
        ]
    },
    "ItemDDT": {
        "item": []
    },
    "ItemGL": {
        "item": []
    }
}
#### Response Structure
API field Type Description
CompanyCode String (max 4 chars) Campari Company Code
AccountingDocNum String (max 10 chars) Accounting document number
PostingDate String (max 8 chars) Posting date in format YYYYMMDD
FiscalYear String (max 4 chars) Fiscal year
CommonResponse
ResponseType (0..∞)
Status String (max 1 char) Message type. Possible SAP values include S (Success), E (Error), W (Warning), I (Information), A (Abort)
Class String (max 20 chars) SAP message class
Code String (max 3 chars) SAP message number
Message String (max 220 chars) Message returned by SAP
#### Response Example
{
    "CompanyCode": "US20",
    "AccountingDocNum": "5100225858",
    "PostingDate": "20250319",
    "FiscalYear": "2025",
    "CommonResponse": {
        "ResponseType": [
            {
                "Status": "S",
                "Class": "ZFI_SNOW",
                "Code": "301",
                "Message": "Invoice posted successfully"
            }
        ]
    }
}
#### Response Table
Status Message Description
S Request processed successfully
E Error on internal Campari's system - SAP Error while connecting to or processing the request in SAP
E Fill Mandatory Fields One or more mandatory fields are empty

Docs Navigation