- Previous: RetrieveApproverCluster
- Up: Invoice Verification
- Next: Invoice Management
InvoicePostingPO
Transfer the invoice details from ServiceNow (SNOW) to SAP and post the invoice in SAP.
#### Request URI
#### Request Example
#### Response Structure
#### Response Example
#### Response Table
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 |
{
"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": []
}
}
| 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 |
{
"CompanyCode": "US20",
"AccountingDocNum": "5100225858",
"PostingDate": "20250319",
"FiscalYear": "2025",
"CommonResponse": {
"ResponseType": [
{
"Status": "S",
"Class": "ZFI_SNOW",
"Code": "301",
"Message": "Invoice posted successfully"
}
]
}
}
| 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 |
- Previous: RetrieveApproverCluster
- Up: Invoice Verification
- Next: Invoice Management
Docs Navigation
- Campari Open API
- Getting Started
- Connection Tester
- Accises
- Automatic GRC
- C4C Confirmation
- Coupa Integration
- Customer Master Data
- Dogana Connector
- EZFocus
- Group Reporting
- Indirect Customers
- Invoice Verification
- Invoice Management
- InvoicePACloud
- Journal Entries
- Logistics Operators
- Material Master Data
- Material
- Retrieve Access Token
- Create Material
- Retrieve Material by Id
- Retrieve Material Types Information
- Retrieve Specific Material Type
- Retrieve Material Unit of Measures by Id
- Update Material by Id
- Convert Unit of Measure
- Insert New Materials in CTS
- Retrieve Material Details from SAP and Interspec
- Retrieve Material Details from SAP
- Retrieve Product Hierarchy
- Retrieve Material SKU Code
- One Plan
- Payroll
- Payment
- Picklist
- Plant Utilities
- Purchase Orders
- Product
- Production Order
- Remittance Management
- Reversal Management
- Sales Order
- SAP Utils
- SedApta Connector
- SendLinkToSAP
- Shipment
- Stibo Integration
- Trade Promotion
- Transport Management System
- Vendor Purchase Orders
- Vendor
- Vistex
- Vulnerability Response
- Warehouse Management
- WBS Automation
- mdgreplicationrel
0 Comments
Please sign in to post a comment.