| PUT | /serial/update/invoice | update invoices |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| InvoiceIds | body | List<ulong> | No | |
| IsIncome | body | bool | No | |
| CategoryId | body | uint? | No | |
| CategoryName | body | string | No | |
| PaymentDueDate | body | DateTime? | No | |
| PaymentTypeId | body | uint? | No | |
| PaymentType | body | string | No | |
| PaymentTerms | body | ushort? | No | |
| JpkItemCodeId | body | int? | No | |
| JpkItemCodeCode | body | string | No | |
| JpkItemCodeName | body | string | No | |
| ListJpkProcedure | body | string | No | |
| JpkDocTypeId | body | int? | No | |
| JpkDocTypeCode | body | string | No | |
| JpkDocTypeName | 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 | |
| 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 | |
| Description | body | string | No | |
| RegistryVatPositionsPatch | body | RegistryVatPositionPatch | No | |
| DeleteSettlementRegulations | body | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CategoryId | form | uint? | No | |
| CategoryName | form | string | No | |
| KindId | form | int? | No | |
| KindName | form | string | 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 /serial/update/invoice HTTP/1.1
Host: api.chmuradokumentow.pl
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
invoiceIds:
[
0
],
isIncome: False,
categoryId: 0,
categoryName: String,
paymentDueDate: 0001-01-01,
paymentTypeId: 0,
paymentType: String,
paymentTerms: 0,
jpkItemCodeId: 0,
jpkItemCodeCode: String,
jpkItemCodeName: String,
listJpkProcedure: String,
jpkDocTypeId: 0,
jpkDocTypeCode: String,
jpkDocTypeName: String,
recId: 0,
recName: String,
recVatId: String,
recStreetName: String,
recStreetNumber: String,
recFlatNumber: String,
recPostalCode: String,
recTown: String,
recCountryId: 0,
recIsoCountry: String,
recCountry: String,
sellId: 0,
sellName: String,
sellVatId: String,
sellStreetName: String,
sellStreetNumber: String,
sellFlatNumber: String,
sellPostalCode: String,
sellTown: String,
sellCountryId: 0,
sellIsoCountry: String,
sellCountry: String,
description: String,
registryVatPositionsPatch:
{
categoryId: 0,
categoryName: String,
kindId: 0,
kindName: String
},
deleteSettlementRegulations: False
}
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
}