PUT api/invoice-settings/{invoiceSettingsId}/corrections

Updates an InvoiceCorrection entity.



Request Information

URI Parameters

NameDescriptionTypeAdditional information
invoiceSettingsId

The id of the InvoiceSettings to which the InvoiceCorrection is related.

integer

Required



Body Parameters

The model describing the InvoiceCorrection to update.

InvoiceCorrectionViewModel
NameDescriptionTypeAdditional information
BeforeCommissionCalculation

boolean

None.

Correction

decimal number

None.

CorrectionType

InvoiceCorrectionType

None.

Description

string

None.

Id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "BeforeCommissionCalculation": true,
  "Correction": 2.0,
  "CorrectionType": 0,
  "Description": "sample string 3",
  "Id": 4
}

application/xml, text/xml

Sample:
<InvoiceCorrectionViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VobeSoft.Shared.Models.ViewModels">
  <BeforeCommissionCalculation>true</BeforeCommissionCalculation>
  <Correction>2</Correction>
  <CorrectionType>Undecided</CorrectionType>
  <Description>sample string 3</Description>
  <Id>4</Id>
</InvoiceCorrectionViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.



Response Information

Resource Description

A model describing the updated InvoiceCommissionConfigPart.

InvoiceCorrectionViewModel

NameDescriptionTypeAdditional information
BeforeCommissionCalculation

boolean

None.

Correction

decimal number

None.

CorrectionType

InvoiceCorrectionType

None.

Description

string

None.

Id

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "BeforeCommissionCalculation": true,
  "Correction": 2.0,
  "CorrectionType": 0,
  "Description": "sample string 3",
  "Id": 4
}

application/xml, text/xml

Sample:
<InvoiceCorrectionViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VobeSoft.Shared.Models.ViewModels">
  <BeforeCommissionCalculation>true</BeforeCommissionCalculation>
  <Correction>2</Correction>
  <CorrectionType>Undecided</CorrectionType>
  <Description>sample string 3</Description>
  <Id>4</Id>
</InvoiceCorrectionViewModel>