PUT V3/odata/VatCode({key})
Updates VatCode entity
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
key |
VatCodeId from VatCode entity |
integer |
Required |
Body Parameters
QicsUnity.Api.Areas.V3.Models.VatCodeName | Description | Type | Additional information |
---|---|---|---|
VatCodeId |
Gets or sets the VatCodeId |
integer |
Required 64-bit signed integer |
Code |
Gets or sets code of the VAT code |
string |
Required |
IsDefault |
Gets or sets a value indicating whether VAT code is default |
boolean |
Required |
Name |
Gets or sets name of the VAT code |
string |
Required |
Percentage |
Gets or sets the percentage |
decimal number |
Required |
ReverseCharge |
Gets or sets a value indicating whether VAT has reverse charge |
boolean |
Required |
IcpReturn |
Gets or sets IcpReturn |
QicsUnity.Api.Areas.V3.Models.IcpReturn |
Nullable |
Request Formats
application/json, text/json
Sample:
{ "VatCodeId": "1", "Code": "sample 2", "IsDefault": true, "Name": "sample 4", "Percentage": "5", "ReverseCharge": true, "IcpReturn": "Services" }
application/xml, text/xml
Sample:
<VatCode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QicsUnity.Api.Areas.V3.Models"> <Code>sample 2</Code> <IcpReturn>Services</IcpReturn> <IsDefault>true</IsDefault> <Name>sample 4</Name> <Percentage>5</Percentage> <ReverseCharge>true</ReverseCharge> <VatCodeId>1</VatCodeId> </VatCode>
Response Information
Resource Description
QicsUnity.Api.Areas.V3.Models.VatCodeName | Description | Type | Additional information |
---|---|---|---|
VatCodeId |
Gets or sets the VatCodeId |
integer |
Required 64-bit signed integer |
Code |
Gets or sets code of the VAT code |
string |
Required |
IsDefault |
Gets or sets a value indicating whether VAT code is default |
boolean |
Required |
Name |
Gets or sets name of the VAT code |
string |
Required |
Percentage |
Gets or sets the percentage |
decimal number |
Required |
ReverseCharge |
Gets or sets a value indicating whether VAT has reverse charge |
boolean |
Required |
IcpReturn |
Gets or sets IcpReturn |
QicsUnity.Api.Areas.V3.Models.IcpReturn |
Nullable |
Response Formats
application/json, text/json
Sample:
{ "VatCodeId": "1", "Code": "sample 2", "IsDefault": true, "Name": "sample 4", "Percentage": "5", "ReverseCharge": true, "IcpReturn": "Services" }
application/xml, text/xml
Sample:
<VatCode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QicsUnity.Api.Areas.V3.Models"> <Code>sample 2</Code> <IcpReturn>Services</IcpReturn> <IsDefault>true</IsDefault> <Name>sample 4</Name> <Percentage>5</Percentage> <ReverseCharge>true</ReverseCharge> <VatCodeId>1</VatCodeId> </VatCode>