To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
HTTP + XML
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /api/taxonboard HTTP/1.1
Host: api.pos365.vn
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<TaxOnboardingSave xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.Services">
<TaxOnboard xmlns:d2p1="http://schemas.datacontract.org/2004/07/POS.Data">
<d2p1:AddressDetail>String</d2p1:AddressDetail>
<d2p1:BankAccount>String</d2p1:BankAccount>
<d2p1:BorderBusiness>false</d2p1:BorderBusiness>
<d2p1:BorderMarketName>String</d2p1:BorderMarketName>
<d2p1:BranchId>0</d2p1:BranchId>
<d2p1:BrandName>String</d2p1:BrandName>
<d2p1:BusinessArea>0</d2p1:BusinessArea>
<d2p1:BusinessSectorIds>String</d2p1:BusinessSectorIds>
<d2p1:CreatedBy>0</d2p1:CreatedBy>
<d2p1:CreatedDate>0001-01-01T00:00:00</d2p1:CreatedDate>
<d2p1:Email>String</d2p1:Email>
<d2p1:IsActive>false</d2p1:IsActive>
<d2p1:IsRevised>false</d2p1:IsRevised>
<d2p1:ModifiedBy>0</d2p1:ModifiedBy>
<d2p1:ModifiedDate>0001-01-01T00:00:00</d2p1:ModifiedDate>
<d2p1:NewTaxpayerCode>String</d2p1:NewTaxpayerCode>
<d2p1:NumberOfEmployees>0</d2p1:NumberOfEmployees>
<d2p1:OnboardingDate>0001-01-01T00:00:00</d2p1:OnboardingDate>
<d2p1:PeriodType>0</d2p1:PeriodType>
<d2p1:PhoneNumber>String</d2p1:PhoneNumber>
<d2p1:PremisesType>false</d2p1:PremisesType>
<d2p1:ProvinceId>0</d2p1:ProvinceId>
<d2p1:ResidentialAddress>String</d2p1:ResidentialAddress>
<d2p1:ResidentialProvinceId>0</d2p1:ResidentialProvinceId>
<d2p1:ResidentialWardId>0</d2p1:ResidentialWardId>
<d2p1:RetailerId>0</d2p1:RetailerId>
<d2p1:TaxCode>String</d2p1:TaxCode>
<d2p1:TaxDepartmentId>0</d2p1:TaxDepartmentId>
<d2p1:TaxOfficeId>0</d2p1:TaxOfficeId>
<d2p1:TaxpayerCode>String</d2p1:TaxpayerCode>
<d2p1:TaxpayerName>String</d2p1:TaxpayerName>
<d2p1:WardId>0</d2p1:WardId>
<d2p1:WorkingHourFrom>PT0S</d2p1:WorkingHourFrom>
<d2p1:WorkingHourTo>PT0S</d2p1:WorkingHourTo>
</TaxOnboard>
</TaxOnboardingSave>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<TaxOnboard xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.Data">
<AddressDetail>String</AddressDetail>
<BankAccount>String</BankAccount>
<BorderBusiness>false</BorderBusiness>
<BorderMarketName>String</BorderMarketName>
<BranchId>0</BranchId>
<BrandName>String</BrandName>
<BusinessArea>0</BusinessArea>
<BusinessSectorIds>String</BusinessSectorIds>
<CreatedBy>0</CreatedBy>
<CreatedDate>0001-01-01T00:00:00</CreatedDate>
<Email>String</Email>
<IsActive>false</IsActive>
<IsRevised>false</IsRevised>
<ModifiedBy>0</ModifiedBy>
<ModifiedDate>0001-01-01T00:00:00</ModifiedDate>
<NewTaxpayerCode>String</NewTaxpayerCode>
<NumberOfEmployees>0</NumberOfEmployees>
<OnboardingDate>0001-01-01T00:00:00</OnboardingDate>
<PeriodType>0</PeriodType>
<PhoneNumber>String</PhoneNumber>
<PremisesType>false</PremisesType>
<ProvinceId>0</ProvinceId>
<ResidentialAddress>String</ResidentialAddress>
<ResidentialProvinceId>0</ResidentialProvinceId>
<ResidentialWardId>0</ResidentialWardId>
<RetailerId>0</RetailerId>
<TaxCode>String</TaxCode>
<TaxDepartmentId>0</TaxDepartmentId>
<TaxOfficeId>0</TaxOfficeId>
<TaxpayerCode>String</TaxpayerCode>
<TaxpayerName>String</TaxpayerName>
<WardId>0</WardId>
<WorkingHourFrom>PT0S</WorkingHourFrom>
<WorkingHourTo>PT0S</WorkingHourTo>
</TaxOnboard>