The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /api/declarations/taxdetail HTTP/1.1
Host: api.pos365.vn
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Id: 0,
DeclarationInfo:
{
DeclarationId: 0,
RetailerId: 0,
BranchId: 0,
TaxpayerName: String,
BrandName: String,
PhoneNumber: String,
Email: String,
TaxpayerCode: String,
NewTaxpayerCode: String,
BusinessSectorIds: String,
IsRevised: False,
AddressDetail: String,
ProvinceId: 0,
WardId: 0,
BusinessArea: 0,
PremisesType: False,
BorderBusiness: False,
BorderMarketName: String,
TaxDepartmentId: 0,
TaxOfficeId: 0,
ResidentialAddress: String,
ResidentialProvinceId: 0,
ResidentialWardId: 0,
NumberOfEmployees: 0,
WorkingHourFrom: PT0S,
WorkingHourTo: PT0S,
BankAccount: String
},
DeclarationVatPit:
{
DeclarationId: 0,
BranchId: 0,
RetailerId: 0,
DistributionTargetCode: String,
DistributionVatTaxRevenue: 0,
DistributionVatTaxAmount: 0,
DistributionPitTaxRevenue: 0,
DistributionPitTaxAmount: 0,
ServiceTargetCode: String,
ServiceVatTaxRevenue: 0,
ServiceVatTaxAmount: 0,
ServicePitTaxRevenue: 0,
ServicePitTaxAmount: 0,
ManufactureTargetCode: String,
ManufactureVatTaxRevenue: 0,
ManufactureVatTaxAmount: 0,
ManufacturePitTaxRevenue: 0,
ManufacturePitTaxAmount: 0,
OtherTargetCode: String,
OtherVatTaxRevenue: 0,
OtherVatTaxAmount: 0,
OtherPitTaxRevenue: 0,
OtherPitTaxAmount: 0,
TotalVatTaxRevenue: 0,
TotalVatTaxAmount: 0,
TotalPitTaxRevenue: 0,
TotalPitTaxAmount: 0,
Declaration:
{
Id: 0,
BranchId: 0,
RetailerId: 0,
TaxCode: String,
PeriodType: 0,
PeriodYear: 0,
PeriodValue: 0,
DueDate: 0001-01-01,
TaxAmount: 0,
Status: 0,
PaymentStatus: 0,
SubmissionSequence: 0,
RequestId: 00000000000000000000000000000000,
CreatedBy: 0,
CreatedDate: 0001-01-01,
ModifiedBy: 0,
ModifiedDate: 0001-01-01,
DeclarationInfo:
{
DeclarationId: 0,
RetailerId: 0,
BranchId: 0,
TaxpayerName: String,
BrandName: String,
PhoneNumber: String,
Email: String,
TaxpayerCode: String,
NewTaxpayerCode: String,
BusinessSectorIds: String,
IsRevised: False,
AddressDetail: String,
ProvinceId: 0,
WardId: 0,
BusinessArea: 0,
PremisesType: False,
BorderBusiness: False,
BorderMarketName: String,
TaxDepartmentId: 0,
TaxOfficeId: 0,
ResidentialAddress: String,
ResidentialProvinceId: 0,
ResidentialWardId: 0,
NumberOfEmployees: 0,
WorkingHourFrom: PT0S,
WorkingHourTo: PT0S,
BankAccount: String
},
DeclarationSync:
{
DeclarationId: 0,
BranchId: 0,
RetailerId: 0,
RequestId: 00000000000000000000000000000000,
Status: 0,
SignStatus: 0,
TvanStatus: 0,
SignValue: String,
ProviderCode: String,
MaCqt: String,
RequestPayload: String,
ResponsePayload: String,
ErrorMessage: String,
CreatedDate: 0001-01-01,
CreatedBy: 0,
ModifiedBy: 0,
ModifiedDate: 0001-01-01
}
}
},
DeclarationInventorys:
[
{
Id: 0,
DeclarationId: 0,
BranchId: 0,
RetailerId: 0,
ProductId: 0,
ProductCode: String,
ProductName: String,
ProductUnit: String,
OpeningOnHand: 0,
OpeningValue: 0,
InboundQuantity: 0,
InboundValue: 0,
OutboundQuantity: 0,
OutboundValue: 0,
ClosingOnHand: 0,
ClosingValue: 0,
Declaration:
{
Id: 0,
BranchId: 0,
RetailerId: 0,
TaxCode: String,
PeriodType: 0,
PeriodYear: 0,
PeriodValue: 0,
DueDate: 0001-01-01,
TaxAmount: 0,
Status: 0,
PaymentStatus: 0,
SubmissionSequence: 0,
RequestId: 00000000000000000000000000000000,
CreatedBy: 0,
CreatedDate: 0001-01-01,
ModifiedBy: 0,
ModifiedDate: 0001-01-01,
DeclarationInfo:
{
DeclarationId: 0,
RetailerId: 0,
BranchId: 0,
TaxpayerName: String,
BrandName: String,
PhoneNumber: String,
Email: String,
TaxpayerCode: String,
NewTaxpayerCode: String,
BusinessSectorIds: String,
IsRevised: False,
AddressDetail: String,
ProvinceId: 0,
WardId: 0,
BusinessArea: 0,
PremisesType: False,
BorderBusiness: False,
BorderMarketName: String,
TaxDepartmentId: 0,
TaxOfficeId: 0,
ResidentialAddress: String,
ResidentialProvinceId: 0,
ResidentialWardId: 0,
NumberOfEmployees: 0,
WorkingHourFrom: PT0S,
WorkingHourTo: PT0S,
BankAccount: String
},
DeclarationSync:
{
DeclarationId: 0,
BranchId: 0,
RetailerId: 0,
RequestId: 00000000000000000000000000000000,
Status: 0,
SignStatus: 0,
TvanStatus: 0,
SignValue: String,
ProviderCode: String,
MaCqt: String,
RequestPayload: String,
ResponsePayload: String,
ErrorMessage: String,
CreatedDate: 0001-01-01,
CreatedBy: 0,
ModifiedBy: 0,
ModifiedDate: 0001-01-01
}
}
}
],
DeclarationReductions:
[
{
Id: 0,
DeclarationId: 0,
BranchId: 0,
RetailerId: 0,
ProductId: 0,
ProductCode: String,
ProductName: String,
TaxableRevenue: 0,
StandardTaxRate: 0,
ReducedTaxRate: 0,
TaxReductionAmount: 0,
IndustryGroup: 0,
Declaration:
{
Id: 0,
BranchId: 0,
RetailerId: 0,
TaxCode: String,
PeriodType: 0,
PeriodYear: 0,
PeriodValue: 0,
DueDate: 0001-01-01,
TaxAmount: 0,
Status: 0,
PaymentStatus: 0,
SubmissionSequence: 0,
RequestId: 00000000000000000000000000000000,
CreatedBy: 0,
CreatedDate: 0001-01-01,
ModifiedBy: 0,
ModifiedDate: 0001-01-01,
DeclarationInfo:
{
DeclarationId: 0,
RetailerId: 0,
BranchId: 0,
TaxpayerName: String,
BrandName: String,
PhoneNumber: String,
Email: String,
TaxpayerCode: String,
NewTaxpayerCode: String,
BusinessSectorIds: String,
IsRevised: False,
AddressDetail: String,
ProvinceId: 0,
WardId: 0,
BusinessArea: 0,
PremisesType: False,
BorderBusiness: False,
BorderMarketName: String,
TaxDepartmentId: 0,
TaxOfficeId: 0,
ResidentialAddress: String,
ResidentialProvinceId: 0,
ResidentialWardId: 0,
NumberOfEmployees: 0,
WorkingHourFrom: PT0S,
WorkingHourTo: PT0S,
BankAccount: String
},
DeclarationSync:
{
DeclarationId: 0,
BranchId: 0,
RetailerId: 0,
RequestId: 00000000000000000000000000000000,
Status: 0,
SignStatus: 0,
TvanStatus: 0,
SignValue: String,
ProviderCode: String,
MaCqt: String,
RequestPayload: String,
ResponsePayload: String,
ErrorMessage: String,
CreatedDate: 0001-01-01,
CreatedBy: 0,
ModifiedBy: 0,
ModifiedDate: 0001-01-01
}
}
}
],
DeclarationExpense:
{
DeclarationId: 0,
BranchId: 0,
RetailerId: 0,
LaborCost: 0,
ElectricityCost: 0,
WaterCost: 0,
TelecomCost: 0,
RentalCost: 0,
ManagementCost: 0,
OtherCost: 0,
TotalCost: 0,
Declaration:
{
Id: 0,
BranchId: 0,
RetailerId: 0,
TaxCode: String,
PeriodType: 0,
PeriodYear: 0,
PeriodValue: 0,
DueDate: 0001-01-01,
TaxAmount: 0,
Status: 0,
PaymentStatus: 0,
SubmissionSequence: 0,
RequestId: 00000000000000000000000000000000,
CreatedBy: 0,
CreatedDate: 0001-01-01,
ModifiedBy: 0,
ModifiedDate: 0001-01-01,
DeclarationInfo:
{
DeclarationId: 0,
RetailerId: 0,
BranchId: 0,
TaxpayerName: String,
BrandName: String,
PhoneNumber: String,
Email: String,
TaxpayerCode: String,
NewTaxpayerCode: String,
BusinessSectorIds: String,
IsRevised: False,
AddressDetail: String,
ProvinceId: 0,
WardId: 0,
BusinessArea: 0,
PremisesType: False,
BorderBusiness: False,
BorderMarketName: String,
TaxDepartmentId: 0,
TaxOfficeId: 0,
ResidentialAddress: String,
ResidentialProvinceId: 0,
ResidentialWardId: 0,
NumberOfEmployees: 0,
WorkingHourFrom: PT0S,
WorkingHourTo: PT0S,
BankAccount: String
},
DeclarationSync:
{
DeclarationId: 0,
BranchId: 0,
RetailerId: 0,
RequestId: 00000000000000000000000000000000,
Status: 0,
SignStatus: 0,
TvanStatus: 0,
SignValue: String,
ProviderCode: String,
MaCqt: String,
RequestPayload: String,
ResponsePayload: String,
ErrorMessage: String,
CreatedDate: 0001-01-01,
CreatedBy: 0,
ModifiedBy: 0,
ModifiedDate: 0001-01-01
}
}
},
SpecialTaxDetails:
[
{
Id: 0,
DeclarationId: 0,
BranchId: 0,
RetailerId: 0,
SpecialConsumerId: 0,
SpecialConsumerName: String,
IndicatorCode: String,
UnitOfMeasureFinal: String,
TaxableRevenueFinal: 0,
TaxRateFinal: 0,
TaxAmountFinal: 0,
Declaration:
{
Id: 0,
BranchId: 0,
RetailerId: 0,
TaxCode: String,
PeriodType: 0,
PeriodYear: 0,
PeriodValue: 0,
DueDate: 0001-01-01,
TaxAmount: 0,
Status: 0,
PaymentStatus: 0,
SubmissionSequence: 0,
RequestId: 00000000000000000000000000000000,
CreatedBy: 0,
CreatedDate: 0001-01-01,
ModifiedBy: 0,
ModifiedDate: 0001-01-01,
DeclarationInfo:
{
DeclarationId: 0,
RetailerId: 0,
BranchId: 0,
TaxpayerName: String,
BrandName: String,
PhoneNumber: String,
Email: String,
TaxpayerCode: String,
NewTaxpayerCode: String,
BusinessSectorIds: String,
IsRevised: False,
AddressDetail: String,
ProvinceId: 0,
WardId: 0,
BusinessArea: 0,
PremisesType: False,
BorderBusiness: False,
BorderMarketName: String,
TaxDepartmentId: 0,
TaxOfficeId: 0,
ResidentialAddress: String,
ResidentialProvinceId: 0,
ResidentialWardId: 0,
NumberOfEmployees: 0,
WorkingHourFrom: PT0S,
WorkingHourTo: PT0S,
BankAccount: String
},
DeclarationSync:
{
DeclarationId: 0,
BranchId: 0,
RetailerId: 0,
RequestId: 00000000000000000000000000000000,
Status: 0,
SignStatus: 0,
TvanStatus: 0,
SignValue: String,
ProviderCode: String,
MaCqt: String,
RequestPayload: String,
ResponsePayload: String,
ErrorMessage: String,
CreatedDate: 0001-01-01,
CreatedBy: 0,
ModifiedBy: 0,
ModifiedDate: 0001-01-01
}
}
}
],
EnvironmentTaxDetails:
[
{
Id: 0,
DeclarationId: 0,
BranchId: 0,
RetailerId: 0,
SectionType: 0,
ResourceProductName: String,
IndicatorCode: String,
UnitOfMeasureFinal: String,
QuantityFinal: 0,
TaxPriceFinal: 0,
TaxRateFinal: 0,
TaxAmountFinal: 0,
Declaration:
{
Id: 0,
BranchId: 0,
RetailerId: 0,
TaxCode: String,
PeriodType: 0,
PeriodYear: 0,
PeriodValue: 0,
DueDate: 0001-01-01,
TaxAmount: 0,
Status: 0,
PaymentStatus: 0,
SubmissionSequence: 0,
RequestId: 00000000000000000000000000000000,
CreatedBy: 0,
CreatedDate: 0001-01-01,
ModifiedBy: 0,
ModifiedDate: 0001-01-01,
DeclarationInfo:
{
DeclarationId: 0,
RetailerId: 0,
BranchId: 0,
TaxpayerName: String,
BrandName: String,
PhoneNumber: String,
Email: String,
TaxpayerCode: String,
NewTaxpayerCode: String,
BusinessSectorIds: String,
IsRevised: False,
AddressDetail: String,
ProvinceId: 0,
WardId: 0,
BusinessArea: 0,
PremisesType: False,
BorderBusiness: False,
BorderMarketName: String,
TaxDepartmentId: 0,
TaxOfficeId: 0,
ResidentialAddress: String,
ResidentialProvinceId: 0,
ResidentialWardId: 0,
NumberOfEmployees: 0,
WorkingHourFrom: PT0S,
WorkingHourTo: PT0S,
BankAccount: String
},
DeclarationSync:
{
DeclarationId: 0,
BranchId: 0,
RetailerId: 0,
RequestId: 00000000000000000000000000000000,
Status: 0,
SignStatus: 0,
TvanStatus: 0,
SignValue: String,
ProviderCode: String,
MaCqt: String,
RequestPayload: String,
ResponsePayload: String,
ErrorMessage: String,
CreatedDate: 0001-01-01,
CreatedBy: 0,
ModifiedBy: 0,
ModifiedDate: 0001-01-01
}
}
}
],
BranchId: 0,
RetailerId: 0,
TaxCode: String,
PeriodType: 0,
PeriodYear: 0,
PeriodValue: 0,
DueDate: 0001-01-01,
TaxAmount: 0,
Status: 0,
PaymentStatus: 0,
SubmissionSequence: 0,
RequestId: 00000000000000000000000000000000,
CreatedBy: 0,
CreatedDate: 0001-01-01,
ModifiedBy: 0,
ModifiedDate: 0001-01-01,
DeclarationSync:
{
DeclarationId: 0,
BranchId: 0,
RetailerId: 0,
RequestId: 00000000000000000000000000000000,
Status: 0,
SignStatus: 0,
TvanStatus: 0,
SignValue: String,
ProviderCode: String,
MaCqt: String,
RequestPayload: String,
ResponsePayload: String,
ErrorMessage: String,
CreatedDate: 0001-01-01,
CreatedBy: 0,
ModifiedBy: 0,
ModifiedDate: 0001-01-01
}
}