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/returntosuppliers HTTP/1.1
Host: api.pos365.vn
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<PurchaseOrderReturnSave xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.Services">
<PurchaseOrderReturn xmlns:d2p1="http://schemas.datacontract.org/2004/07/POS.Data">
<d2p1:Account>
<d2p1:AccountingTransactions i:nil="true" />
<d2p1:CreatedBy>0</d2p1:CreatedBy>
<d2p1:CreatedDate>0001-01-01T00:00:00</d2p1:CreatedDate>
<d2p1:Description>String</d2p1:Description>
<d2p1:Id>0</d2p1:Id>
<d2p1:ModifiedBy>0</d2p1:ModifiedBy>
<d2p1:ModifiedDate>0001-01-01T00:00:00</d2p1:ModifiedDate>
<d2p1:Name>String</d2p1:Name>
<d2p1:Orders i:nil="true" />
<d2p1:PurchaseOrderReturns i:nil="true" />
<d2p1:PurchaseOrders i:nil="true" />
<d2p1:RetailerId>0</d2p1:RetailerId>
<d2p1:Returns i:nil="true" />
</d2p1:Account>
<d2p1:AccountId>0</d2p1:AccountId>
<d2p1:AccountingTransactions i:nil="true" />
<d2p1:BranchId>0</d2p1:BranchId>
<d2p1:Code>String</d2p1:Code>
<d2p1:CreatedBy>0</d2p1:CreatedBy>
<d2p1:CreatedDate>0001-01-01T00:00:00</d2p1:CreatedDate>
<d2p1:Description>String</d2p1:Description>
<d2p1:Discount>0</d2p1:Discount>
<d2p1:Id>0</d2p1:Id>
<d2p1:ModifiedBy>0</d2p1:ModifiedBy>
<d2p1:ModifiedDate>0001-01-01T00:00:00</d2p1:ModifiedDate>
<d2p1:Partner>
<d2p1:AccountingTransactions i:nil="true" />
<d2p1:Address>String</d2p1:Address>
<d2p1:Code>String</d2p1:Code>
<d2p1:Company>String</d2p1:Company>
<d2p1:CreatedBy>0</d2p1:CreatedBy>
<d2p1:CreatedDate>0001-01-01T00:00:00</d2p1:CreatedDate>
<d2p1:DOB>0001-01-01T00:00:00</d2p1:DOB>
<d2p1:DeliveryOrderDeliveryByNavigations i:nil="true" />
<d2p1:DeliveryOrderPartners i:nil="true" />
<d2p1:Department>String</d2p1:Department>
<d2p1:Description>String</d2p1:Description>
<d2p1:Email>String</d2p1:Email>
<d2p1:Gender>0</d2p1:Gender>
<d2p1:Id>0</d2p1:Id>
<d2p1:IdentifyNo>String</d2p1:IdentifyNo>
<d2p1:Image>String</d2p1:Image>
<d2p1:LeadOwner>
<d2p1:AccountingTransactions i:nil="true" />
<d2p1:Address>String</d2p1:Address>
<d2p1:AdminGroup>0</d2p1:AdminGroup>
<d2p1:CdKeys i:nil="true" />
<d2p1:CreatedBy>0</d2p1:CreatedBy>
<d2p1:CreatedDate>0001-01-01T00:00:00</d2p1:CreatedDate>
<d2p1:DOB>0001-01-01T00:00:00</d2p1:DOB>
<d2p1:Email>String</d2p1:Email>
<d2p1:Id>0</d2p1:Id>
<d2p1:IdentityCardNumber>String</d2p1:IdentityCardNumber>
<d2p1:InverseManagedByNavigation i:nil="true" />
<d2p1:IsActive>false</d2p1:IsActive>
<d2p1:IsAdmin>false</d2p1:IsAdmin>
<d2p1:ManagedBy>0</d2p1:ManagedBy>
<d2p1:ManagedByNavigation>
<d2p1:AccountingTransactions i:nil="true" />
<d2p1:Address>String</d2p1:Address>
<d2p1:AdminGroup>0</d2p1:AdminGroup>
<d2p1:CdKeys i:nil="true" />
<d2p1:CreatedBy>0</d2p1:CreatedBy>
<d2p1:CreatedDate>0001-01-01T00:00:00</d2p1:CreatedDate>
<d2p1:DOB>0001-01-01T00:00:00</d2p1:DOB>
<d2p1:Email>String</d2p1:Email>
<d2p1:Id>0</d2p1:Id>
<d2p1:IdentityCardNumber>String</d2p1:IdentityCardNumber>
<d2p1:InverseManagedByNavigation i:nil="true" />
<d2p1:IsActive>false</d2p1:IsActive>
<d2p1:IsAdmin>false</d2p1:IsAdmin>
<d2p1:ManagedBy>0</d2p1:ManagedBy>
<d2p1:ManagedByNavigation>
<d2p1:AccountingTransactions i:nil="true" />
<d2p1:Address>String</d2p1:Address>
<d2p1:AdminGroup>0</d2p1:AdminGroup>
<d2p1:CdKeys i:nil="true" />
<d2p1:CreatedBy>0</d2p1:CreatedBy>
<d2p1:CreatedDate>0001-01-01T00:00:00</d2p1:CreatedDate>
<d2p1:DOB>0001-01-01T00:00:00</d2p1:DOB>
<d2p1:Email>String</d2p1:Email>
<d2p1:Id>0</d2p1:Id>
<d2p1:IdentityCardNumber>String</d2p1:IdentityCardNumber>
<d2p1:InverseManagedByNavigation i:nil="true" />
<d2p1:IsActive>false</d2p1:IsActive>
<d2p1:IsAdmin>false</d2p1:IsAdmin>
<d2p1:ManagedBy>0</d2p1:ManagedBy>
<d2p1:ManagedByNavigation i:nil="true" />
<d2p1:Name>String</d2p1:Name>
<d2p1:ObjectAccesses i:nil="true" />
<d2p1:Partners i:nil="true" />
<d2p1:Password>String</d2p1:Password>
<d2p1:Phone>String</d2p1:Phone>
<d2p1:PlainPassword>String</d2p1:PlainPassword>
<d2p1:RetailerId>0</d2p1:RetailerId>
<d2p1:UserName>String</d2p1:UserName>
</d2p1:ManagedByNavigation>
<d2p1:Name>String</d2p1:Name>
<d2p1:ObjectAccesses i:nil="true" />
<d2p1:Partners i:nil="true" />
<d2p1:Password>String</d2p1:Password>
<d2p1:Phone>String</d2p1:Phone>
<d2p1:PlainPassword>String</d2p1:PlainPassword>
<d2p1:RetailerId>0</d2p1:RetailerId>
<d2p1:UserName>String</d2p1:UserName>
</d2p1:ManagedByNavigation>
<d2p1:Name>String</d2p1:Name>
<d2p1:ObjectAccesses i:nil="true" />
<d2p1:Partners i:nil="true" />
<d2p1:Password>String</d2p1:Password>
<d2p1:Phone>String</d2p1:Phone>
<d2p1:PlainPassword>String</d2p1:PlainPassword>
<d2p1:RetailerId>0</d2p1:RetailerId>
<d2p1:UserName>String</d2p1:UserName>
</d2p1:LeadOwner>
<d2p1:LeadOwnerId>0</d2p1:LeadOwnerId>
<d2p1:Loyalty>0</d2p1:Loyalty>
<d2p1:MemberJoinDate>0001-01-01T00:00:00</d2p1:MemberJoinDate>
<d2p1:ModifiedBy>0</d2p1:ModifiedBy>
<d2p1:ModifiedDate>0001-01-01T00:00:00</d2p1:ModifiedDate>
<d2p1:Name>String</d2p1:Name>
<d2p1:Orders i:nil="true" />
<d2p1:PartnerBranches i:nil="true" />
<d2p1:PartnerGroupMembers i:nil="true" />
<d2p1:Password>String</d2p1:Password>
<d2p1:Phone>String</d2p1:Phone>
<d2p1:Phone2>String</d2p1:Phone2>
<d2p1:PlainPassword>String</d2p1:PlainPassword>
<d2p1:Point>0</d2p1:Point>
<d2p1:PointUses i:nil="true" />
<d2p1:ProductPartners i:nil="true" />
<d2p1:Province>String</d2p1:Province>
<d2p1:PurchaseOrderReturns i:nil="true" />
<d2p1:PurchaseOrders i:nil="true" />
<d2p1:RetailerId>0</d2p1:RetailerId>
<d2p1:Returns i:nil="true" />
<d2p1:ShippingAddress>String</d2p1:ShippingAddress>
<d2p1:TaxCode>String</d2p1:TaxCode>
<d2p1:TotalDebt>0</d2p1:TotalDebt>
<d2p1:Transactionvalue>0</d2p1:Transactionvalue>
<d2p1:Type>0</d2p1:Type>
</d2p1:Partner>
<d2p1:PartnerId>0</d2p1:PartnerId>
<d2p1:PurchaseOrder>
<d2p1:Account>
<d2p1:AccountingTransactions i:nil="true" />
<d2p1:CreatedBy>0</d2p1:CreatedBy>
<d2p1:CreatedDate>0001-01-01T00:00:00</d2p1:CreatedDate>
<d2p1:Description>String</d2p1:Description>
<d2p1:Id>0</d2p1:Id>
<d2p1:ModifiedBy>0</d2p1:ModifiedBy>
<d2p1:ModifiedDate>0001-01-01T00:00:00</d2p1:ModifiedDate>
<d2p1:Name>String</d2p1:Name>
<d2p1:Orders i:nil="true" />
<d2p1:PurchaseOrderReturns i:nil="true" />
<d2p1:PurchaseOrders i:nil="true" />
<d2p1:RetailerId>0</d2p1:RetailerId>
<d2p1:Returns i:nil="true" />
</d2p1:Account>
<d2p1:AccountId>0</d2p1:AccountId>
<d2p1:AccountingTransactions i:nil="true" />
<d2p1:BranchId>0</d2p1:BranchId>
<d2p1:ChangeSellingPrice>false</d2p1:ChangeSellingPrice>
<d2p1:Code>String</d2p1:Code>
<d2p1:CreatedBy>0</d2p1:CreatedBy>
<d2p1:CreatedDate>0001-01-01T00:00:00</d2p1:CreatedDate>
<d2p1:DeliveryDate>0001-01-01T00:00:00</d2p1:DeliveryDate>
<d2p1:Description>String</d2p1:Description>
<d2p1:Discount>0</d2p1:Discount>
<d2p1:DocumentDate>0001-01-01T00:00:00</d2p1:DocumentDate>
<d2p1:ExchangeRate>0</d2p1:ExchangeRate>
<d2p1:Id>0</d2p1:Id>
<d2p1:ModifiedBy>0</d2p1:ModifiedBy>
<d2p1:ModifiedDate>0001-01-01T00:00:00</d2p1:ModifiedDate>
<d2p1:Partner>
<d2p1:AccountingTransactions i:nil="true" />
<d2p1:Address>String</d2p1:Address>
<d2p1:Code>String</d2p1:Code>
<d2p1:Company>String</d2p1:Company>
<d2p1:CreatedBy>0</d2p1:CreatedBy>
<d2p1:CreatedDate>0001-01-01T00:00:00</d2p1:CreatedDate>
<d2p1:DOB>0001-01-01T00:00:00</d2p1:DOB>
<d2p1:DeliveryOrderDeliveryByNavigations i:nil="true" />
<d2p1:DeliveryOrderPartners i:nil="true" />
<d2p1:Department>String</d2p1:Department>
<d2p1:Description>String</d2p1:Description>
<d2p1:Email>String</d2p1:Email>
<d2p1:Gender>0</d2p1:Gender>
<d2p1:Id>0</d2p1:Id>
<d2p1:IdentifyNo>String</d2p1:IdentifyNo>
<d2p1:Image>String</d2p1:Image>
<d2p1:LeadOwner>
<d2p1:AccountingTransactions i:nil="true" />
<d2p1:Address>String</d2p1:Address>
<d2p1:AdminGroup>0</d2p1:AdminGroup>
<d2p1:CdKeys i:nil="true" />
<d2p1:CreatedBy>0</d2p1:CreatedBy>
<d2p1:CreatedDate>0001-01-01T00:00:00</d2p1:CreatedDate>
<d2p1:DOB>0001-01-01T00:00:00</d2p1:DOB>
<d2p1:Email>String</d2p1:Email>
<d2p1:Id>0</d2p1:Id>
<d2p1:IdentityCardNumber>String</d2p1:IdentityCardNumber>
<d2p1:InverseManagedByNavigation i:nil="true" />
<d2p1:IsActive>false</d2p1:IsActive>
<d2p1:IsAdmin>false</d2p1:IsAdmin>
<d2p1:ManagedBy>0</d2p1:ManagedBy>
<d2p1:ManagedByNavigation>
<d2p1:AccountingTransactions i:nil="true" />
<d2p1:Address>String</d2p1:Address>
<d2p1:AdminGroup>0</d2p1:AdminGroup>
<d2p1:CdKeys i:nil="true" />
<d2p1:CreatedBy>0</d2p1:CreatedBy>
<d2p1:CreatedDate>0001-01-01T00:00:00</d2p1:CreatedDate>
<d2p1:DOB>0001-01-01T00:00:00</d2p1:DOB>
<d2p1:Email>String</d2p1:Email>
<d2p1:Id>0</d2p1:Id>
<d2p1:IdentityCardNumber>String</d2p1:IdentityCardNumber>
<d2p1:InverseManagedByNavigation i:nil="true" />
<d2p1:IsActive>false</d2p1:IsActive>
<d2p1:IsAdmin>false</d2p1:IsAdmin>
<d2p1:ManagedBy>0</d2p1:ManagedBy>
<d2p1:ManagedByNavigation>
<d2p1:AccountingTransactions i:nil="true" />
<d2p1:Address>String</d2p1:Address>
<d2p1:AdminGroup>0</d2p1:AdminGroup>
<d2p1:CdKeys i:nil="true" />
<d2p1:CreatedBy>0</d2p1:CreatedBy>
<d2p1:CreatedDate>0001-01-01T00:00:00</d2p1:CreatedDate>
<d2p1:DOB>0001-01-01T00:00:00</d2p1:DOB>
<d2p1:Email>String</d2p1:Email>
<d2p1:Id>0</d2p1:Id>
<d2p1:IdentityCardNumber>String</d2p1:IdentityCardNumber>
<d2p1:InverseManagedByNavigation i:nil="true" />
<d2p1:IsActive>false</d2p1:IsActive>
<d2p1:IsAdmin>false</d2p1:IsAdmin>
<d2p1:ManagedBy>0</d2p1:ManagedBy>
<d2p1:ManagedByNavigation i:nil="true" />
<d2p1:Name>String</d2p1:Name>
<d2p1:ObjectAccesses i:nil="true" />
<d2p1:Partners i:nil="true" />
<d2p1:Password>String</d2p1:Password>
<d2p1:Phone>String</d2p1:Phone>
<d2p1:PlainPassword>String</d2p1:PlainPassword>
<d2p1:RetailerId>0</d2p1:RetailerId>
<d2p1:UserName>String</d2p1:UserName>
</d2p1:ManagedByNavigation>
<d2p1:Name>String</d2p1:Name>
<d2p1:ObjectAccesses i:nil="true" />
<d2p1:Partners i:nil="true" />
<d2p1:Password>String</d2p1:Password>
<d2p1:Phone>String</d2p1:Phone>
<d2p1:PlainPassword>String</d2p1:PlainPassword>
<d2p1:RetailerId>0</d2p1:RetailerId>
<d2p1:UserName>String</d2p1:UserName>
</d2p1:ManagedByNavigation>
<d2p1:Name>String</d2p1:Name>
<d2p1:ObjectAccesses i:nil="true" />
<d2p1:Partners i:nil="true" />
<d2p1:Password>String</d2p1:Password>
<d2p1:Phone>String</d2p1:Phone>
<d2p1:PlainPassword>String</d2p1:PlainPassword>
<d2p1:RetailerId>0</d2p1:RetailerId>
<d2p1:UserName>String</d2p1:UserName>
</d2p1:LeadOwner>
<d2p1:LeadOwnerId>0</d2p1:LeadOwnerId>
<d2p1:Loyalty>0</d2p1:Loyalty>
<d2p1:MemberJoinDate>0001-01-01T00:00:00</d2p1:MemberJoinDate>
<d2p1:ModifiedBy>0</d2p1:ModifiedBy>
<d2p1:ModifiedDate>0001-01-01T00:00:00</d2p1:ModifiedDate>
<d2p1:Name>String</d2p1:Name>
<d2p1:Orders i:nil="true" />
<d2p1:PartnerBranches i:nil="true" />
<d2p1:PartnerGroupMembers i:nil="true" />
<d2p1:Password>String</d2p1:Password>
<d2p1:Phone>String</d2p1:Phone>
<d2p1:Phone2>String</d2p1:Phone2>
<d2p1:PlainPassword>String</d2p1:PlainPassword>
<d2p1:Point>0</d2p1:Point>
<d2p1:PointUses i:nil="true" />
<d2p1:ProductPartners i:nil="true" />
<d2p1:Province>String</d2p1:Province>
<d2p1:PurchaseOrderReturns i:nil="true" />
<d2p1:PurchaseOrders i:nil="true" />
<d2p1:RetailerId>0</d2p1:RetailerId>
<d2p1:Returns i:nil="true" />
<d2p1:ShippingAddress>String</d2p1:ShippingAddress>
<d2p1:TaxCode>String</d2p1:TaxCode>
<d2p1:TotalDebt>0</d2p1:TotalDebt>
<d2p1:Transactionvalue>0</d2p1:Transactionvalue>
<d2p1:Type>0</d2p1:Type>
</d2p1:Partner>
<d2p1:PartnerId>0</d2p1:PartnerId>
<d2p1:PurchaseOrderDetails i:nil="true" />
<d2p1:PurchaseOrderReturns i:nil="true" />
<d2p1:RetailerId>0</d2p1:RetailerId>
<d2p1:Status>0</d2p1:Status>
<d2p1:Total>0</d2p1:Total>
<d2p1:TotalPayment>0</d2p1:TotalPayment>
<d2p1:VAT>0</d2p1:VAT>
</d2p1:PurchaseOrder>
<d2p1:PurchaseOrderId>0</d2p1:PurchaseOrderId>
<d2p1:PurchaseOrderReturnDetails i:nil="true" />
<d2p1:RetailerId>0</d2p1:RetailerId>
<d2p1:ReturnDate>0001-01-01T00:00:00</d2p1:ReturnDate>
<d2p1:Status>0</d2p1:Status>
<d2p1:Total>0</d2p1:Total>
<d2p1:TotalPayment>0</d2p1:TotalPayment>
</PurchaseOrderReturn>
</PurchaseOrderReturnSave>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />