POST api/Invoices
Imports the invoice supplied into Sertica Invoice Management module
Required Headers:
Authorization: Basic Http Authorization with valid Sertica credentials
Returns:
200 OK - If received invoice is valid and is accepted
400 BadRequest - If validation fails. Reason is supplied in response.
401 Unauthorized - If credentials are invalid
Request Information
URI Parameters
None.
Body Parameters
The invoice to import
Invoice| Name | Description | Type | Additional information |
|---|---|---|---|
| ExternalReference1 | string |
Required Max length: 20 |
|
| ExternalReference2 | string |
Max length: 20 |
|
| ExternalReference3 | string |
Max length: 20 |
|
| SupplierInvoiceNo | string |
Required Max length: 20 |
|
| SupplierNo | string |
Max length: 20 |
|
| VendorNo | string |
Max length: 20 |
|
| PurchaseOrderNo | string |
Max length: 20 |
|
| InvoiceDate | date |
None. |
|
| InvoiceNetAmount | decimal number |
None. |
|
| VATAmount | decimal number |
None. |
|
| VATCode | string |
Max length: 20 |
|
| CurrencyCode | string |
Max length: 3 |
|
| SupplierDueDate | date |
None. |
|
| DueDate | date |
None. |
|
| RegisteredDate | date |
None. |
|
| BankAccountNo | string |
Max length: 50 |
|
| SourceSystem | string |
Max length: 20 |
|
| AmountInCompanyCurrency | decimal number |
None. |
|
| CompanyNo | string |
Max length: 20 |
|
| ResponsibleNo | string |
Max length: 20 |
|
| Description | string |
Max length: 255 |
|
| UnitNo | string |
Max length: 20 |
|
| SupplierVATNo | string |
Max length: 30 |
|
| MultiplePurchaseOrdersList | string |
Max length: 1000 |
Request Formats
application/json, text/json
{
"ExternalReference1": "sample string 1",
"ExternalReference2": "sample string 2",
"ExternalReference3": "sample string 3",
"SupplierInvoiceNo": "sample string 4",
"SupplierNo": "sample string 5",
"VendorNo": "sample string 6",
"PurchaseOrderNo": "sample string 7",
"InvoiceDate": "2026-01-11T09:34:48.1557282+02:00",
"InvoiceNetAmount": 9.0,
"VATAmount": 10.0,
"VATCode": "sample string 11",
"CurrencyCode": "sample string 12",
"SupplierDueDate": "2026-01-11T09:34:48.1557282+02:00",
"DueDate": "2026-01-11T09:34:48.1557282+02:00",
"RegisteredDate": "2026-01-11T09:34:48.1557282+02:00",
"BankAccountNo": "sample string 16",
"SourceSystem": "sample string 17",
"AmountInCompanyCurrency": 18.0,
"CompanyNo": "sample string 19",
"ResponsibleNo": "sample string 20",
"Description": "sample string 21",
"UnitNo": "sample string 22",
"SupplierVATNo": "sample string 23",
"MultiplePurchaseOrdersList": "sample string 24"
}
application/xml, text/xml
<Invoice xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ExternalReference1>sample string 1</ExternalReference1> <ExternalReference2>sample string 2</ExternalReference2> <ExternalReference3>sample string 3</ExternalReference3> <SupplierInvoiceNo>sample string 4</SupplierInvoiceNo> <SupplierNo>sample string 5</SupplierNo> <VendorNo>sample string 6</VendorNo> <PurchaseOrderNo>sample string 7</PurchaseOrderNo> <InvoiceDate>2026-01-11T09:34:48.1557282+02:00</InvoiceDate> <InvoiceNetAmount>9</InvoiceNetAmount> <VATAmount>10</VATAmount> <VATCode>sample string 11</VATCode> <CurrencyCode>sample string 12</CurrencyCode> <SupplierDueDate>2026-01-11T09:34:48.1557282+02:00</SupplierDueDate> <DueDate>2026-01-11T09:34:48.1557282+02:00</DueDate> <RegisteredDate>2026-01-11T09:34:48.1557282+02:00</RegisteredDate> <BankAccountNo>sample string 16</BankAccountNo> <SourceSystem>sample string 17</SourceSystem> <AmountInCompanyCurrency>18</AmountInCompanyCurrency> <CompanyNo>sample string 19</CompanyNo> <ResponsibleNo>sample string 20</ResponsibleNo> <Description>sample string 21</Description> <UnitNo>sample string 22</UnitNo> <SupplierVATNo>sample string 23</SupplierVATNo> <MultiplePurchaseOrdersList>sample string 24</MultiplePurchaseOrdersList> </Invoice>
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |