| PUT | /registryvat | Update Registry Vat Item |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | body | ulong | No | |
| IsIncome | body | bool | No | |
| InvSrcId | body | uint | No | |
| InvSrcNumber | body | string | No | |
| InvSrcDate | body | DateTime | No | |
| InvSrcNetto | body | decimal | No | |
| InvSrcVat | body | decimal | No | |
| InvSrcGross | body | decimal | No | |
| Number | body | string | No | |
| SellCreationDate | body | DateTime | No | |
| SaleDate | body | DateTime | No | |
| SaleTaxDate | body | DateTime | No | |
| BuyIncomingDate | body | DateTime | No | |
| BuyDate | body | DateTime | No | |
| BuyCreationDate | body | DateTime | No | |
| BuyTaxDate | body | DateTime | No | |
| BuyTaxDiscountDate | body | DateTime | No | |
| CategoryId | body | uint | No | |
| CategoryName | body | string | No | |
| SellId | body | uint | No | |
| SellName | body | string | No | |
| SellVatId | body | string | No | |
| SellStreetName | body | string | No | |
| SellStreetNumber | body | string | No | |
| SellFlatNumber | body | string | No | |
| SellPostalCode | body | string | No | |
| SellTown | body | string | No | |
| SellCountryId | body | uint | No | |
| SellIsoCountry | body | string | No | |
| SellCountry | body | string | No | |
| RecId | body | uint | No | |
| RecName | body | string | No | |
| RecVatId | body | string | No | |
| RecStreetName | body | string | No | |
| RecStreetNumber | body | string | No | |
| RecFlatNumber | body | string | No | |
| RecPostalCode | body | string | No | |
| RecTown | body | string | No | |
| RecCountryId | body | uint | No | |
| RecIsoCountry | body | string | No | |
| RecCountry | body | string | No | |
| CurrencyId | body | uint | No | |
| Currency | body | string | No | |
| Net | body | decimal | No | |
| Vat | body | decimal | No | |
| Gross | body | decimal | No | |
| IsVatTaken | body | bool | No | |
| IsVatTakenDate | body | DateTime | No | |
| PaymentDueDate | body | DateTime | No | |
| PaymentTypeId | body | uint | No | |
| PaymentType | body | string | No | |
| PaymentTerms | body | ushort | No | |
| Paid | body | decimal | No | |
| ToPaid | body | decimal | No | |
| StatusId | body | int | No | |
| Status | body | string | No | |
| IsPaymentDivided | body | bool | No | |
| IsReverseCharged | body | bool | No | |
| IsImp | body | bool | No | |
| IsMpp | body | bool | No | |
| RegistryVatPosition | body | List<RegistryVatPositionDto> | No | |
| Description | body | string | No | |
| Remarks | body | string | No | |
| FileId | body | ulong | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CategoryId | form | uint | No | |
| CategoryName | form | string | No | |
| Description | form | string | No | |
| VatTypeId | form | uint | No | |
| VatTypeName | form | string | No | |
| Net | form | decimal | No | |
| Vat | form | decimal | No | |
| Gross | form | decimal | No | |
| KindId | form | int | No | |
| KindName | form | string | No | |
| IsTaxableId | form | int | No | |
| IsTaxableName | form | string | No | |
| TaxableTypeId | form | int | No | |
| TaxableTypeName | form | string | No | |
| PosCorrId | form | ulong | No | |
| IsBefore | form | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CreatedById | form | uint | No | |
| ModifiedById | form | uint | No | |
| CreatedDate | form | DateTime | No | |
| ModifiedDate | form | DateTime | No | |
| Id | form | ulong | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | T | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Code | form | string | No | |
| ResponseStatus | form | ResponseStatus | No | |
| Result | form | Object | No | |
| IsSuccess | form | bool | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /registryvat HTTP/1.1
Host: api.chmuradokumentow.pl
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
id: 0,
isIncome: False,
invSrcId: 0,
invSrcNumber: String,
invSrcDate: 0001-01-01,
invSrcNetto: 0,
invSrcVat: 0,
invSrcGross: 0,
number: String,
sellCreationDate: 0001-01-01,
saleDate: 0001-01-01,
saleTaxDate: 0001-01-01,
buyIncomingDate: 0001-01-01,
buyDate: 0001-01-01,
buyCreationDate: 0001-01-01,
buyTaxDate: 0001-01-01,
buyTaxDiscountDate: 0001-01-01,
categoryId: 0,
categoryName: String,
sellId: 0,
sellName: String,
sellVatId: String,
sellStreetName: String,
sellStreetNumber: String,
sellFlatNumber: String,
sellPostalCode: String,
sellTown: String,
sellCountryId: 0,
sellIsoCountry: String,
sellCountry: String,
recId: 0,
recName: String,
recVatId: String,
recStreetName: String,
recStreetNumber: String,
recFlatNumber: String,
recPostalCode: String,
recTown: String,
recCountryId: 0,
recIsoCountry: String,
recCountry: String,
currencyId: 0,
currency: String,
net: 0,
vat: 0,
gross: 0,
isVatTaken: False,
isVatTakenDate: 0001-01-01,
paymentDueDate: 0001-01-01,
paymentTypeId: 0,
paymentType: String,
paymentTerms: 0,
paid: 0,
toPaid: 0,
statusId: 0,
status: String,
isPaymentDivided: False,
isReverseCharged: False,
isImp: False,
isMpp: False,
registryVatPosition:
[
{
categoryId: 0,
categoryName: String,
description: String,
vatTypeId: 0,
vatTypeName: String,
net: 0,
vat: 0,
gross: 0,
kindId: 0,
kindName: String,
isTaxableId: 0,
isTaxableName: String,
taxableTypeId: 0,
taxableTypeName: String,
posCorrId: 0,
isBefore: False,
createdById: 0,
modifiedById: 0,
createdDate: 0001-01-01,
modifiedDate: 0001-01-01,
id: 0
}
],
description: String,
remarks: String,
fileId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
id: 0,
code: FAIL,
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
},
result: {},
isSuccess: False
}