POS365.VN APIs

<back to all web services

TaxDeclarationUpdate

Requires Authentication
The following routes are available for this service:
PUT/api/v2/tax-declarations/01cnkd/{Id}
TaxDeclarationUpdate Parameters:
NameParameterData TypeRequiredDescription
IdpathlongNo
TaxDeclaration01CNKDModel Parameters:
NameParameterData TypeRequiredDescription
TaxDeclarationIdformlongNo
DeclarationTypeformDeclarationTypeNo
PeriodYearformintNo
PeriodTypeformPeriodTypeNo
PeriodValueformintNo
IsEditedformboolNo
TaxDeclarationDtoformTaxDeclarationDtoNo
TaxDeclarationInfoDtoformTaxDeclarationInfoDtoNo
TaxDeclarationVatPitDtoformTaxDeclarationVatPitDtoNo
TaxDeclarationAutoDtosformList<TaxDeclarationAutoDto>No
TaxDeclarationAutoSummaryDtoformTaxDeclarationAutoSummaryDtoNo
TaxDeclarationCarryForwardDtoformTaxDeclarationCarryForwardDtoNo
TaxDeclarationReductionDtosformList<TaxDeclarationReductionDto>No
TaxDeclarationReductionSummaryDtosformList<TaxDeclarationReductionSummaryDto>No
TaxDeclarationBankAccountDtosformList<TaxDeclarationBankAccountDto>No
TaxDeclarationInventoryDtosformList<TaxDeclarationInventoryDto>No
TaxDeclarationMachineDtosformList<TaxDeclarationInventoryDto>No
TaxDeclarationInventorySummaryDtosformList<TaxDeclarationInventorySummaryDto>No
TaxDeclarationInventoryMachineDtoformTaxDeclarationInventoryMachineDtoNo
DeclarationType Enum:
NameValue
_01CNKD0Tờ khai 01/CNKD
_01TKNCNKD101.TKN-CNKD
_02CNKDTNCNQTT202.CNKD-TNCN-QTT
PeriodType Enum:
NameValue
Monthly1enum_Monthly
Quarterly2enum_Quarterly
Yearly3enum_Yearly
TaxDeclarationDto Parameters:
NameParameterData TypeRequiredDescription
BranchIdformintNo
RetailerIdformintNo
TaxCodeformstringNo
PeriodTypeformbyteNo
PeriodYearformintNo
PeriodValueformbyteNo
DueDateformDateTimeNo
TaxAmountformstringNo
SubmissionSequenceformintNo
DeclarationTypeformDeclarationTypeNo
CircularTypeformCircularTypeNo
CreatedDateformDateTimeNo
TaxDeclarationInfoDto Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
HouseholdTypesformList<HouseholdType>No
TaxpayerNameformstringNo
TaxpayerCodeformstringNo
OldTaxpayerCodeformstringNo
AgentNameformstringNo
AgentCodeformstringNo
AddressDetailformstringNo
ProvinceIdformint?No
WardIdformint?No
TaxDepartmentIdformint?No
TaxOfficeIdformint?No
TaxOfficeCodeformstringNo
TaxOfficeNameformstringNo
ProvinceCodeformstringNo
ProvinceNameformstringNo
WardCodeformstringNo
WardNameformstringNo
HouseholdType Enum:
NameValue
PitOnRevenue0Hộ kinh doanh, cá nhân kinh doanh thuộc đối tượng nộp thuế TNCN trên doanh thu tính thuế
PitOnTaxableIncome1Hộ kinh doanh, cá nhân kinh doanh thuộc đối tượng nộp thuế TNCN trên thu nhập tính thuế
PureECommerceNoPayment2Hộ kinh doanh, cá nhân kinh doanh chỉ có hoạt động kinh doanh trên nền tảng thương mại điện tử, nền tảng số khác không có chức năng đặt hàng trực tuyến và chức năng thanh toán
OtherTax3Hộ kinh doanh, cá nhân kinh doanh khai các loại thuế khác (thuế TTĐB, thuế tài nguyên, thuế/phí bảo vệ môi trường)
EInvoiceRequest4Trường hợp đề nghị cấp hóa đơn điện tử có mã của cơ quan thuế theo lần phát sinh khai theo Lần phát sinh
TaxDeclarationVatPitDto Parameters:
NameParameterData TypeRequiredDescription
TaxDeclarationVatPitBusinessActivityDtosformList<TaxDeclarationVatPitBusinessActivityDto>No
TaxDeclarationVatPitSummaryDtosformList<TaxDeclarationVatPitSummaryDto>No
TaxDeclarationVatPitBusinessActivityDto Parameters:
NameParameterData TypeRequiredDescription
BusinessActivityTypeformBusinessActivityTypeNo
TaxDeclarationVatPitBranchDtosformList<TaxDeclarationVatPitBranchDto>No
TaxDeclarationVatPitBranchDtoformTaxDeclarationVatPitBranchDtoNo
TaxDeclarationVatPitBranchDto Parameters:
NameParameterData TypeRequiredDescription
BranchIdformint?No
BranchCodeformstringNo
BranchNameformstringNo
IsBranchHOformboolNo
TaxDeclarationVatPitDetailDtosformList<TaxDeclarationVatPitDetailDto>No
TaxDeclarationVatPitDetailDto Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
TargetCodeformstringNo
VatTaxRevenueformstringNo
VatTaxAmountformstringNo
PitTaxRevenueformstringNo
PitTaxAmountformstringNo
PitDeductionRevenueformstringNo
BusinessLineGroupformBusinessLineGroupTypeNo
TaxDeclarationVatPitSummaryDto Parameters:
NameParameterData TypeRequiredDescription
TotalVatTaxRevenueformdecimalNo
TotalVatTaxRevenueTextformstringNo
TotalVatTaxAmountformdecimalNo
TotalVatTaxAmountTextformstringNo
TotalPitTaxRevenueformdecimalNo
TotalPitTaxRevenueTextformstringNo
TotalPitTaxAmountformdecimalNo
TotalPitTaxAmountTextformstringNo
TotalTaxAmountformdecimalNo
TotalTaxAmountTextformstringNo
TotalPitDeductionRevenueformdecimalNo
TotalPitDeductionRevenueTextformstringNo
SummaryTypeformSummaryTypeNo
SummaryType Enum:
NameValue
Total0Tổng cộng
Reduction1Số thuế được giảm
Remaining2Số thuế phải nộp sau khi đã giảm
Subtotal3Tổng cộng của từng mục
TotalRemaining4Tổng số thuế phải nộp
TaxDeclarationAutoDto Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
BranchCodeformstringNo
ContentOfPaymentIdformlongNo
ContentOfPaymentCodeformstringNo
ContentOfPaymentNameformstringNo
AmountformstringNo
ChapterformstringNo
TargetCodeformstringNo
AdministrativeAreaIdformlongNo
AdministrativeAreaCodeformstringNo
AdministrativeAreaNameformstringNo
TaxOfficeIdformlongNo
TaxOfficeCodeformstringNo
TaxOfficeNameformstringNo
TaxAuthorityIdformlongNo
TaxAuthorityCodeformstringNo
TaxAuthorityNameformstringNo
DueDateformDateTimeNo
TaxDeclarationAutoSummaryDto Parameters:
NameParameterData TypeRequiredDescription
SummaryTypeformSummaryTypeNo
TotalAmountformdecimalNo
TotalAmountTextformstringNo
TaxDeclarationCarryForwardDto Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
AmountformstringNo
TaxDeclarationReductionDto Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
ProductIdformlongNo
ProductCodeformstringNo
ProductNameformstringNo
TaxableRevenueformstringNo
StandardTaxRateformdoubleNo
ReducedTaxRateformdoubleNo
TaxReductionAmountformstringNo
BusinessLineGroupformBusinessLineGroupTypeNo
TaxDeclarationReductionSummaryDto Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
DeclarationIdformlongNo
TotalAmountformdecimalNo
TotalVatAmountformdecimalNo
ReductionTypeformReductionTypeNo
SummaryTypeformSummaryTypeNo
ReductionType Enum:
NameValue
Purchase0Mua vào
Sale1Bán ra
Difference2Chênh lệch
TaxDeclarationBankAccountDto Parameters:
NameParameterData TypeRequiredDescription
BranchIdformint?No
BranchCodeformstringNo
BranchNameformstringNo
AccountNumberformstringNo
AccountNameformstringNo
CardIssuerBinIdformlongNo
BinCodeformlongNo
IssuerNameformstringNo
AccountTypeformAccountTypeNo
AccountType Enum:
NameValue
FirstTime0Khai lần đầu
Change1Thay đổi
Close2Đóng tài khoản
TaxDeclarationInventoryDto Parameters:
NameParameterData TypeRequiredDescription
ProductIdformlong?No
ProductCodeformstringNo
ProductNameformstringNo
ProductUnitformstringNo
ClosingOnHandformstringNo
ClosingValueformstringNo
TaxDeclarationInventorySummaryDto Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
DeclarationIdformlongNo
TotalQuantityformdecimalNo
TotalAmountformdecimalNo
InventoryTypeformInventoryTypeNo
SummaryTypeformSummaryTypeNo
InventoryType Enum:
NameValue
Inventory0Hàng hóa, sản phẩm
Machine1Máy móc, thiết bị
Total2Total của Hàng hóa, sản phẩm
TaxDeclarationInventoryMachineDto Parameters:
NameParameterData TypeRequiredDescription
InventoryDtoformTaxDeclarationInventoryMachineSummaryDtoNo
MachineDtoformTaxDeclarationInventoryMachineSummaryDtoNo
TotalQuantityformdecimalNo
TotalQuantityTextformstringNo
TotalAmountformdecimalNo
TotalAmountTextformstringNo
TaxDeclarationInventoryMachineSummaryDto Parameters:
NameParameterData TypeRequiredDescription
TotalQuantityformdecimalNo
TotalQuantityTextformstringNo
TotalAmountformdecimalNo
TotalAmountTextformstringNo
DataformList<TaxDeclarationInventoryDto>No
HttpResult Parameters:
NameParameterData TypeRequiredDescription
ResponseTextformstringNo
FileInfoformFileInfoNo
ContentTypeformstringNo
HeadersformDictionary<string, string>No
CookiesformList<Cookie>No
ETagformstringNo
AgeformTimeSpan?No
MaxAgeformTimeSpan?No
ExpiresformDateTime?No
LastModifiedformDateTime?No
CacheControlformCacheControlNo
ResultScopeformFunc<IDisposable>No
AllowsPartialResponseformboolNo
OptionsformIDictionary<string, string>No
StatusformintNo
StatusCodeformHttpStatusCodeNo
StatusDescriptionformstringNo
ResponseformObjectNo
ResponseFilterformIContentTypeWriterNo
RequestContextformIRequestNo
ViewformstringNo
TemplateformstringNo
PaddingLengthformintNo
IsPartialRequestformboolNo
CacheControl Enum:
NameValue
None0
Public1
Private2
MustRevalidate4
NoCache8
NoStore16
NoTransform32
ProxyRevalidate64
IRequest Parameters:
NameParameterData TypeRequiredDescription
OriginalRequestformObjectNo
ResponseformIResponseNo
OperationNameformstringNo
VerbformstringNo
RequestAttributesformRequestAttributesNo
RequestPreferencesformIRequestPreferencesNo
DtoformObjectNo
ContentTypeformstringNo
IsLocalformboolNo
UserAgentformstringNo
CookiesformIDictionary<string, Cookie>No
ResponseContentTypeformstringNo
HasExplicitResponseContentTypeformboolNo
ItemsformDictionary<string, Object>No
HeadersformNameValueCollectionNo
QueryStringformNameValueCollectionNo
FormDataformNameValueCollectionNo
UseBufferedStreamformboolNo
RawUrlformstringNo
AbsoluteUriformstringNo
UserHostAddressformstringNo
RemoteIpformstringNo
AuthorizationformstringNo
IsSecureConnectionformboolNo
AcceptTypesformstring[]No
PathInfoformstringNo
OriginalPathInfoformstringNo
ContentLengthformlongNo
FilesformIHttpFile[]No
UrlReferrerformUriNo
IResponse Parameters:
NameParameterData TypeRequiredDescription
OriginalResponseformObjectNo
RequestformIRequestNo
StatusCodeformintNo
StatusDescriptionformstringNo
ContentTypeformstringNo
DtoformObjectNo
UseBufferedStreamformboolNo
IsClosedformboolNo
KeepAliveformboolNo
HasStartedformboolNo
ItemsformDictionary<string, Object>No
RequestAttributes Enum:
NameValue
None0
Localhost1
LocalSubnet2
External4
Secure8
InSecure16
AnySecurityMode24
HttpHead32
HttpGet64
HttpPost128
HttpPut256
HttpDelete512
HttpPatch1024
HttpOptions2048
HttpOther4096
AnyHttpMethod8160
OneWay8192
Reply16384
AnyCallStyle24576
Soap1132768
Soap1265536
Xml131072
Json262144
Jsv524288
ProtoBuf1048576
Csv2097152
Html4194304
Wire8388608
MsgPack16777216
FormatOther33554432
AnyFormat67076096
Http67108864
MessageQueue134217728
Tcp268435456
Grpc536870912
EndpointOther1073741824
AnyEndpoint2080374784
InProcess-2147483648
InternalNetworkAccess-2147483645
AnyNetworkAccessType-2147483641
Any-1
IRequestPreferences Parameters:
NameParameterData TypeRequiredDescription
AcceptsGzipformboolNo
AcceptsDeflateformboolNo
IHttpFile Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
FileNameformstringNo
ContentLengthformlongNo
ContentTypeformstringNo

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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /api/v2/tax-declarations/01cnkd/{Id} HTTP/1.1 
Host: api.pos365.vn 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Id":0,"TaxDeclarationId":0,"DeclarationType":0,"PeriodYear":0,"PeriodType":1,"PeriodValue":0,"IsEdited":false,"TaxDeclarationDto":{"BranchId":0,"RetailerId":0,"TaxCode":"String","PeriodType":0,"PeriodYear":0,"PeriodValue":0,"DueDate":"0001-01-01T00:00:00.0000000Z","TaxAmount":"String","SubmissionSequence":0,"DeclarationType":0,"CircularType":0,"CreatedDate":"0001-01-01T00:00:00.0000000Z"},"TaxDeclarationInfoDto":{"Id":0,"HouseholdTypes":[0],"TaxpayerName":"String","TaxpayerCode":"String","OldTaxpayerCode":"String","AgentName":"String","AgentCode":"String","AddressDetail":"String","ProvinceId":0,"WardId":0,"TaxDepartmentId":0,"TaxOfficeId":0,"TaxOfficeCode":"String","TaxOfficeName":"String","ProvinceCode":"String","ProvinceName":"String","WardCode":"String","WardName":"String"},"TaxDeclarationVatPitDto":{"TaxDeclarationVatPitBusinessActivityDtos":[{"BusinessActivityType":0,"TaxDeclarationVatPitBranchDtos":[{"BranchId":0,"BranchCode":"String","BranchName":"String","IsBranchHO":false,"TaxDeclarationVatPitDetailDtos":[{"Id":0,"TargetCode":"String","VatTaxRevenue":"String","VatTaxAmount":"String","PitTaxRevenue":"String","PitTaxAmount":"String","PitDeductionRevenue":"String","BusinessLineGroup":0}]}],"TaxDeclarationVatPitBranchDto":{"BranchId":0,"BranchCode":"String","BranchName":"String","IsBranchHO":false,"TaxDeclarationVatPitDetailDtos":[{"Id":0,"TargetCode":"String","VatTaxRevenue":"String","VatTaxAmount":"String","PitTaxRevenue":"String","PitTaxAmount":"String","PitDeductionRevenue":"String","BusinessLineGroup":0}]}}],"TaxDeclarationVatPitSummaryDtos":[{"TotalVatTaxRevenue":0,"TotalVatTaxRevenueText":"0","TotalVatTaxAmount":0,"TotalVatTaxAmountText":"0","TotalPitTaxRevenue":0,"TotalPitTaxRevenueText":"0","TotalPitTaxAmount":0,"TotalPitTaxAmountText":"0","TotalTaxAmount":0,"TotalTaxAmountText":"0","TotalPitDeductionRevenue":0,"TotalPitDeductionRevenueText":"0","SummaryType":0}]},"TaxDeclarationAutoDtos":[{"Id":0,"BranchCode":"String","ContentOfPaymentId":0,"ContentOfPaymentCode":"String","ContentOfPaymentName":"String","Amount":"String","Chapter":"String","TargetCode":"String","AdministrativeAreaId":0,"AdministrativeAreaCode":"String","AdministrativeAreaName":"String","TaxOfficeId":0,"TaxOfficeCode":"String","TaxOfficeName":"String","TaxAuthorityId":0,"TaxAuthorityCode":"String","TaxAuthorityName":"String","DueDate":"0001-01-01T00:00:00.0000000Z"}],"TaxDeclarationAutoSummaryDto":{"SummaryType":0,"TotalAmount":0,"TotalAmountText":"0"},"TaxDeclarationCarryForwardDto":{"Id":0,"Amount":"String"},"TaxDeclarationReductionDtos":[{"Id":0,"ProductId":0,"ProductCode":"String","ProductName":"String","TaxableRevenue":"String","StandardTaxRate":0,"ReducedTaxRate":0,"TaxReductionAmount":"String","BusinessLineGroup":0}],"TaxDeclarationReductionSummaryDtos":[{"Id":0,"DeclarationId":0,"TotalAmount":0,"TotalVatAmount":0,"ReductionType":0,"SummaryType":0}],"TaxDeclarationBankAccountDtos":[{"BranchId":0,"BranchCode":"String","BranchName":"String","AccountNumber":"String","AccountName":"String","CardIssuerBinId":0,"BinCode":0,"IssuerName":"String","AccountType":0}],"TaxDeclarationInventoryDtos":[{"ProductId":0,"ProductCode":"String","ProductName":"String","ProductUnit":"String","ClosingOnHand":"String","ClosingValue":"String"}],"TaxDeclarationMachineDtos":[{"ProductId":0,"ProductCode":"String","ProductName":"String","ProductUnit":"String","ClosingOnHand":"String","ClosingValue":"String"}],"TaxDeclarationInventorySummaryDtos":[{"Id":0,"DeclarationId":0,"TotalQuantity":0,"TotalAmount":0,"InventoryType":0,"SummaryType":0}],"TaxDeclarationInventoryMachineDto":{"InventoryDto":{"TotalQuantity":0,"TotalQuantityText":"0","TotalAmount":0,"TotalAmountText":"0","Data":[{"ProductId":0,"ProductCode":"String","ProductName":"String","ProductUnit":"String","ClosingOnHand":"String","ClosingValue":"String"}]},"MachineDto":{"TotalQuantity":0,"TotalQuantityText":"0","TotalAmount":0,"TotalAmountText":"0","Data":[{"ProductId":0,"ProductCode":"String","ProductName":"String","ProductUnit":"String","ClosingOnHand":"String","ClosingValue":"String"}]},"TotalQuantity":0,"TotalQuantityText":"0","TotalAmount":0,"TotalAmountText":"0"}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{}