Method GetInvoice
GetInvoice(String, String, InvoiceSettingsContract)
Get the invoice for the specified process-ID
Declaration
InvoiceResultContract GetInvoice(string connectionId, string processId, InvoiceSettingsContract invoiceSettings)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
System.String | processId | The object id |
InvoiceSettingsContract | invoiceSettings | Request settings, e.g. Language |
Returns
Type | Description |
---|---|
InvoiceResultContract | Returns an invoice |
Examples
PUT http://YourServerName/InfoShare/Json/Invoice/GetInvoice
Example for get an invoice.{
"connectionId": "b6742bb8-ef97-44ae-819b-a2fa2200908a",
"invoiceSettings":
{
"Language": "de",
"GetInvoiceContent": true,
"GetInvoiceAccountingLines": true,
"GetInvoiceLines": true,
},
"processId": "DD0BC593-E140-EA11-B622-00155D003A02"
}
Response:
{
"Invoice":
{
"Id": "DD0BC593-E140-EA11-B622-00155D003A02",
"AccountingTemplateDescription": "",
"CompanyNumber": "401",
...
..
.
"AccountingLines": [
{
"Id": "DD0BC593-E140-EA11-B622-00155D003A02",
"CostCenterNumber": "",
"CostUnitNumber": "",
...
..
.
},
],
"InvoiceLines": [
{
"Id": "DD0BC593-E140-EA11-B622-00155D003A02",
"CostCenterNumber": "",
"CostUnitNumber": "",
...
..
.
},
],
},
"HasEditedEntries": true,
"RequestResult":
{
"Error": null,
"Messages": null,
"Result": "Valid"
}
}
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |