| POST | /registryvat | Create RegistryVat Item |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| 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 .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /registryvat HTTP/1.1
Host: api.chmuradokumentow.pl
Accept: application/json
Content-Type: application/json
Content-Length: length
{"isIncome":false,"invSrcId":0,"invSrcNumber":"String","invSrcDate":"0001-01-01T00:00:00.0000000Z","invSrcNetto":0,"invSrcVat":0,"invSrcGross":0,"number":"String","sellCreationDate":"0001-01-01T00:00:00.0000000Z","saleDate":"0001-01-01T00:00:00.0000000Z","saleTaxDate":"0001-01-01T00:00:00.0000000Z","buyIncomingDate":"0001-01-01T00:00:00.0000000Z","buyDate":"0001-01-01T00:00:00.0000000Z","buyCreationDate":"0001-01-01T00:00:00.0000000Z","buyTaxDate":"0001-01-01T00:00:00.0000000Z","buyTaxDiscountDate":"0001-01-01T00:00:00.0000000Z","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-01T00:00:00.0000000Z","paymentDueDate":"0001-01-01T00:00:00.0000000Z","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-01T00:00:00.0000000Z","modifiedDate":"0001-01-01T00:00:00.0000000Z","id":0}],"description":"String","remarks":"String","fileId":0}
HTTP/1.1 200 OK
Content-Type: application/json
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}