Loading…
Loading…
Accounting API · write, waits for approval · 100% field coverage
Your agent can create invoice in SAP S/4HANA Cloud through Apideck's Accounting API, the same call it makes for every Accounting app. It changes data in the customer's SAP S/4HANA Cloud account, so it stops with the exact request until a person approves it. Apideck adds the customer's SAP S/4HANA Cloud credentials, so no token ever reaches the agent.
POST https://unify.apideck.com/accounting/invoices
Headers: x-apideck-service-id: sap-s4hana-cloud, plus your app id and the customer's consumer id. Apideck MCP tool: accounting-invoices-add. Agent operation id: unified.accounting.invoicesAdd.
| Field | Type | Description |
|---|---|---|
| display_id | string | Id to be displayed. |
| type | string | Invoice type |
| number | string | Invoice number. |
| customer | object | The customer this entity is linked to. |
| company_id | string | The company ID the transaction belongs to |
| subsidiary | object | |
| location_id | string | The ID of the location |
| department_id | string | The ID of the department |
| invoice_date | string | Date invoice was issued - YYYY-MM-DD. |
| due_date | string | The invoice due date is the date on which a payment or invoice is scheduled to be received by the seller - YYYY-MM-DD. |
| terms | string | Terms of payment. |
| terms_id | string | The ID of the payment terms |
| po_number | string | A PO Number uniquely identifies a purchase order and is generally defined by the buyer. The buyer will match the PO numb |
| reference | string | Optional reference identifier for the transaction. |
| status | string | Invoice status |
| invoice_sent | boolean | Invoice sent to contact/customer. |
| currency | string | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ |
| currency_rate | number | Currency Exchange Rate at the time entity was recorded/generated. |
| tax_inclusive | boolean | Amounts are including tax |
| sub_total | number | Sub-total amount, normally before tax. |
| total_tax | number | Total tax amount applied to this invoice. |
| tax_code | string | Applicable tax id/code override if tax is not supplied on a line item basis. |
| discount_percentage | number | Discount percentage applied to this invoice. |
| discount_amount | number | Discount amount applied to this invoice. |
| total | number | Total amount of invoice, including tax. |
| balance | number | Balance of invoice due. |
| deposit | number | Amount of deposit made to this invoice. |
| customer_memo | string | Customer memo |
| tracking_category | object | |
| tracking_categories | array | A list of linked tracking categories. |
| line_items | array | |
| billing_address | object | |
| shipping_address | object | |
| template_id | string | Optional invoice template |
| source_document_url | string | URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero. |
| payment_allocations | array | IDs of payments made on the invoice |
| payment_method | string | Payment method used for the transaction, such as cash, credit card, bank transfer, or check |
| channel | string | The channel through which the transaction is processed. |
| language | string | language code according to ISO 639-1. For the United States - EN |
| accounting_by_row | boolean | Indicates if accounting by row is used (true) or not (false). Accounting by row means that a separate ledger transaction |
| bank_account | object | |
| ledger_account | object | |
| custom_fields | array | |
| row_version | string | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is m |
The same call works for each of these; only the service id changes.
Access FinancialsAcumaticaAFAS SoftwareAlegraCampfireDualentryExact OnlineExact Online NLExact Online UKFortnoxFreeAgentFreshBooksHoldedIntuit Enterprise SuiteMicrosoft Dynamics 365 Business CentralMoneybirdMYOBMYOB AcumaticaNetSuiteOdooPennylaneProcountorQuickBooksRilletSage Business Cloud AccountingSage IntacctSage Intacct RESTSnelStartSpirisStripeVisma eAccountingVisma NetvisorWafeqWaveXeroZoho Books