POS365.VN APIs

<back to all web services

PurchaseOrderReturnGet

Requires Authentication
Required permission:PurchaseOrderReturn_Read
The following routes are available for this service:
GET/api/returntosuppliers/{Id}
PurchaseOrderReturnGet Parameters:
NameParameterData TypeRequiredDescription
IdpathlongNo
Includesquerystring[]No
PurchaseOrderReturn Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
CodeformstringNo
BranchIdformintNo
CreatedDateformDateTimeNo
CreatedByformlongNo
StatusformbyteNo
DescriptionformstringNo
RetailerIdformintNo
PurchaseOrderIdformlong?No
ReturnDateformDateTimeNo
PartnerIdformlong?No
ModifiedDateformDateTime?No
ModifiedByformlong?No
TotalformdecimalNo
Discountformdecimal?No
AccountIdformint?No
TotalPaymentformdecimalNo
AccountformAccountNo
PartnerformPartnerNo
PurchaseOrderformPurchaseOrderNo
PurchaseOrderReturnDetailsformICollection<PurchaseOrderReturnDetail>No
Account Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NameformstringNo
DescriptionformstringNo
RetailerIdformintNo
CreatedByformlongNo
CreatedDateformDateTimeNo
ModifiedByformlong?No
ModifiedDateformDateTime?No
Partner Parameters:
NameParameterData TypeRequiredDescription
PlainPasswordformstringNo
IdformlongNo
CodeformstringNo
NameformstringNo
AddressformstringNo
PhoneformstringNo
DOBformDateTime?No
EmailformstringNo
TypeformbyteNo
GenderformbyteNo
TaxCodeformstringNo
TotalDebtformdecimalNo
LoyaltyformdecimalNo
DescriptionformstringNo
CreatedByformlongNo
CreatedDateformDateTimeNo
ModifiedByformlong?No
ModifiedDateformDateTime?No
RetailerIdformintNo
ImageformstringNo
IdentifyNoformstringNo
LeadOwnerIdformlong?No
CompanyformstringNo
DepartmentformstringNo
PasswordformstringNo
ProvinceformstringNo
PointformlongNo
ShippingAddressformstringNo
Phone2formstringNo
MemberJoinDateformDateTime?No
TransactionvalueformdecimalNo
LeadOwnerformUserNo
PartnerGroupMembersformICollection<PartnerGroupMember>No
User Parameters:
NameParameterData TypeRequiredDescription
PlainPasswordformstringNo
IdformlongNo
EmailformstringNo
UserNameformstringNo
PasswordformstringNo
NameformstringNo
DOBformDateTime?No
AddressformstringNo
PhoneformstringNo
CreatedDateformDateTimeNo
IsActiveformboolNo
IsAdminformboolNo
RetailerIdformintNo
CreatedByformlongNo
AdminGroupformbyteNo
ManagedByformlong?No
IdentityCardNumberformstringNo
ManagedByNavigationformUserNo
PartnerGroupMember Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
PartnerIdformlongNo
GroupIdformlongNo
PurchaseOrder Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
CodeformstringNo
DocumentDateformDateTime?No
BranchIdformintNo
DescriptionformstringNo
StatusformbyteNo
ModifiedDateformDateTime?No
RetailerIdformintNo
Discountformdecimal?No
CreatedDateformDateTimeNo
CreatedByformlongNo
ModifiedByformlong?No
TotalformdecimalNo
TotalPaymentformdecimalNo
PartnerIdformlong?No
AccountIdformint?No
ExchangeRateformdecimalNo
DeliveryDateformDateTime?No
VATformdecimalNo
ChangeSellingPriceformboolNo
AccountformAccountNo
PartnerformPartnerNo
PurchaseOrderDetailsformICollection<PurchaseOrderDetail>No
PurchaseOrderDetail Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
PurchaseOrderIdformlongNo
ProductIdformlongNo
QuantityformdoubleNo
PriceformdecimalNo
SerialNumbersformstringNo
DescriptionformstringNo
IsLargeUnitformboolNo
SellingPriceformdecimalNo
SellingLargeUnitPriceformdecimalNo
ConversionValueformdouble?No
ExpiryDateformDateTime?No
OrderQuantityformdoubleNo
ProductformProductNo
Product Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
CodeformstringNo
NameformstringNo
AttributesNameformstringNo
CategoryIdformlong?No
DescriptionformstringNo
PriceformdecimalNo
PriceLargeUnitformdecimalNo
ProductTypeformbyteNo
ConversionValueformdoubleNo
UnitformstringNo
LargeUnitformstringNo
IsSerialNumberTrackingformboolNo
CreatedDateformDateTimeNo
CreatedByformlongNo
ModifiedDateformDateTime?No
ModifiedByformlong?No
RetailerIdformintNo
IsPercentageOfTotalOrderformboolNo
SplitForSalesOrderformboolNo
OrderQuickNotesformstringNo
PrinterformstringNo
Hiddenformbool?No
IsTimerformbool?No
Coefficientformdouble?No
BonusPointformdoubleNo
ShowOnBranchIdformstringNo
BonusPointForAssistantformdoubleNo
BonusPointForAssistant2formdoubleNo
BonusPointForAssistant3formdoubleNo
PriceConfigformstringNo
BlockOfTimeToUseServiceformintNo
IsPriceForBlockformboolNo
FormularformstringNo
PositionformlongNo
LargeUnitCodeformstringNo
Code2formstringNo
Code3formstringNo
Code4formstringNo
Code5formstringNo
CategoryformCategoryNo
CompositeItemProductsformICollection<CompositeItem>No
ProductAttributesformICollection<ProductAttribute>No
ProductImagesformICollection<ProductImage>No
Category Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
NameformstringNo
ImageURLformstringNo
DescriptionformstringNo
ParentIdformlong?No
RetailerIdformintNo
CreatedDateformDateTimeNo
CreatedByformlongNo
ModifiedDateformDateTime?No
ModifiedByformlong?No
ShowOnBranchIdformstringNo
PositionformlongNo
ParentformCategoryNo
CompositeItem Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
ProductIdformlongNo
ItemIdformlongNo
QuantityformdoubleNo
RetailerIdformintNo
QuantityLargeUnitformdoubleNo
ItemformProductNo
ProductAttribute Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
ProductIdformlongNo
AttributeNameformstringNo
AttributeValueformstringNo
RetailerIdformintNo
ProductImage Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
ProductIdformlongNo
ImageURLformstringNo
ThumbnailUrlformstringNo
IsDefaultformboolNo
PurchaseOrderReturnDetail Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
PurchaseOrderReturnIdformlongNo
ProductIdformlongNo
QuantityformdoubleNo
PriceformdecimalNo
SerialNumbersformstringNo
IsLargeUnitformboolNo
ConversionValueformdoubleNo
ExpiryDateformDateTime?No
DescriptionformstringNo
ProductformProductNo

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.

GET /api/returntosuppliers/{Id} HTTP/1.1 
Host: api.pos365.vn 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PurchaseOrderReturn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.Data">
  <Account>
    <AccountingTransactions i:nil="true" />
    <CreatedBy>0</CreatedBy>
    <CreatedDate>0001-01-01T00:00:00</CreatedDate>
    <Description>String</Description>
    <Id>0</Id>
    <ModifiedBy>0</ModifiedBy>
    <ModifiedDate>0001-01-01T00:00:00</ModifiedDate>
    <Name>String</Name>
    <Orders i:nil="true" />
    <PurchaseOrderReturns i:nil="true" />
    <PurchaseOrders i:nil="true" />
    <RetailerId>0</RetailerId>
    <Returns i:nil="true" />
  </Account>
  <AccountId>0</AccountId>
  <AccountingTransactions i:nil="true" />
  <BranchId>0</BranchId>
  <Code>String</Code>
  <CreatedBy>0</CreatedBy>
  <CreatedDate>0001-01-01T00:00:00</CreatedDate>
  <Description>String</Description>
  <Discount>0</Discount>
  <Id>0</Id>
  <ModifiedBy>0</ModifiedBy>
  <ModifiedDate>0001-01-01T00:00:00</ModifiedDate>
  <Partner>
    <AccountingTransactions i:nil="true" />
    <Address>String</Address>
    <Code>String</Code>
    <Company>String</Company>
    <CreatedBy>0</CreatedBy>
    <CreatedDate>0001-01-01T00:00:00</CreatedDate>
    <DOB>0001-01-01T00:00:00</DOB>
    <DeliveryOrderDeliveryByNavigations i:nil="true" />
    <DeliveryOrderPartners i:nil="true" />
    <Department>String</Department>
    <Description>String</Description>
    <Email>String</Email>
    <Gender>0</Gender>
    <Id>0</Id>
    <IdentifyNo>String</IdentifyNo>
    <Image>String</Image>
    <LeadOwner>
      <AccountingTransactions i:nil="true" />
      <Address>String</Address>
      <AdminGroup>0</AdminGroup>
      <CdKeys i:nil="true" />
      <CreatedBy>0</CreatedBy>
      <CreatedDate>0001-01-01T00:00:00</CreatedDate>
      <DOB>0001-01-01T00:00:00</DOB>
      <Email>String</Email>
      <Id>0</Id>
      <IdentityCardNumber>String</IdentityCardNumber>
      <InverseManagedByNavigation i:nil="true" />
      <IsActive>false</IsActive>
      <IsAdmin>false</IsAdmin>
      <ManagedBy>0</ManagedBy>
      <ManagedByNavigation>
        <AccountingTransactions i:nil="true" />
        <Address>String</Address>
        <AdminGroup>0</AdminGroup>
        <CdKeys i:nil="true" />
        <CreatedBy>0</CreatedBy>
        <CreatedDate>0001-01-01T00:00:00</CreatedDate>
        <DOB>0001-01-01T00:00:00</DOB>
        <Email>String</Email>
        <Id>0</Id>
        <IdentityCardNumber>String</IdentityCardNumber>
        <InverseManagedByNavigation i:nil="true" />
        <IsActive>false</IsActive>
        <IsAdmin>false</IsAdmin>
        <ManagedBy>0</ManagedBy>
        <ManagedByNavigation>
          <AccountingTransactions i:nil="true" />
          <Address>String</Address>
          <AdminGroup>0</AdminGroup>
          <CdKeys i:nil="true" />
          <CreatedBy>0</CreatedBy>
          <CreatedDate>0001-01-01T00:00:00</CreatedDate>
          <DOB>0001-01-01T00:00:00</DOB>
          <Email>String</Email>
          <Id>0</Id>
          <IdentityCardNumber>String</IdentityCardNumber>
          <InverseManagedByNavigation i:nil="true" />
          <IsActive>false</IsActive>
          <IsAdmin>false</IsAdmin>
          <ManagedBy>0</ManagedBy>
          <ManagedByNavigation i:nil="true" />
          <Name>String</Name>
          <ObjectAccesses i:nil="true" />
          <Partners i:nil="true" />
          <Password>String</Password>
          <Phone>String</Phone>
          <PlainPassword>String</PlainPassword>
          <RetailerId>0</RetailerId>
          <UserName>String</UserName>
        </ManagedByNavigation>
        <Name>String</Name>
        <ObjectAccesses i:nil="true" />
        <Partners i:nil="true" />
        <Password>String</Password>
        <Phone>String</Phone>
        <PlainPassword>String</PlainPassword>
        <RetailerId>0</RetailerId>
        <UserName>String</UserName>
      </ManagedByNavigation>
      <Name>String</Name>
      <ObjectAccesses i:nil="true" />
      <Partners i:nil="true" />
      <Password>String</Password>
      <Phone>String</Phone>
      <PlainPassword>String</PlainPassword>
      <RetailerId>0</RetailerId>
      <UserName>String</UserName>
    </LeadOwner>
    <LeadOwnerId>0</LeadOwnerId>
    <Loyalty>0</Loyalty>
    <MemberJoinDate>0001-01-01T00:00:00</MemberJoinDate>
    <ModifiedBy>0</ModifiedBy>
    <ModifiedDate>0001-01-01T00:00:00</ModifiedDate>
    <Name>String</Name>
    <Orders i:nil="true" />
    <PartnerBranches i:nil="true" />
    <PartnerGroupMembers i:nil="true" />
    <Password>String</Password>
    <Phone>String</Phone>
    <Phone2>String</Phone2>
    <PlainPassword>String</PlainPassword>
    <Point>0</Point>
    <PointUses i:nil="true" />
    <ProductPartners i:nil="true" />
    <Province>String</Province>
    <PurchaseOrderReturns i:nil="true" />
    <PurchaseOrders i:nil="true" />
    <RetailerId>0</RetailerId>
    <Returns i:nil="true" />
    <ShippingAddress>String</ShippingAddress>
    <TaxCode>String</TaxCode>
    <TotalDebt>0</TotalDebt>
    <Transactionvalue>0</Transactionvalue>
    <Type>0</Type>
  </Partner>
  <PartnerId>0</PartnerId>
  <PurchaseOrder>
    <Account>
      <AccountingTransactions i:nil="true" />
      <CreatedBy>0</CreatedBy>
      <CreatedDate>0001-01-01T00:00:00</CreatedDate>
      <Description>String</Description>
      <Id>0</Id>
      <ModifiedBy>0</ModifiedBy>
      <ModifiedDate>0001-01-01T00:00:00</ModifiedDate>
      <Name>String</Name>
      <Orders i:nil="true" />
      <PurchaseOrderReturns i:nil="true" />
      <PurchaseOrders i:nil="true" />
      <RetailerId>0</RetailerId>
      <Returns i:nil="true" />
    </Account>
    <AccountId>0</AccountId>
    <AccountingTransactions i:nil="true" />
    <BranchId>0</BranchId>
    <ChangeSellingPrice>false</ChangeSellingPrice>
    <Code>String</Code>
    <CreatedBy>0</CreatedBy>
    <CreatedDate>0001-01-01T00:00:00</CreatedDate>
    <DeliveryDate>0001-01-01T00:00:00</DeliveryDate>
    <Description>String</Description>
    <Discount>0</Discount>
    <DocumentDate>0001-01-01T00:00:00</DocumentDate>
    <ExchangeRate>0</ExchangeRate>
    <Id>0</Id>
    <ModifiedBy>0</ModifiedBy>
    <ModifiedDate>0001-01-01T00:00:00</ModifiedDate>
    <Partner>
      <AccountingTransactions i:nil="true" />
      <Address>String</Address>
      <Code>String</Code>
      <Company>String</Company>
      <CreatedBy>0</CreatedBy>
      <CreatedDate>0001-01-01T00:00:00</CreatedDate>
      <DOB>0001-01-01T00:00:00</DOB>
      <DeliveryOrderDeliveryByNavigations i:nil="true" />
      <DeliveryOrderPartners i:nil="true" />
      <Department>String</Department>
      <Description>String</Description>
      <Email>String</Email>
      <Gender>0</Gender>
      <Id>0</Id>
      <IdentifyNo>String</IdentifyNo>
      <Image>String</Image>
      <LeadOwner>
        <AccountingTransactions i:nil="true" />
        <Address>String</Address>
        <AdminGroup>0</AdminGroup>
        <CdKeys i:nil="true" />
        <CreatedBy>0</CreatedBy>
        <CreatedDate>0001-01-01T00:00:00</CreatedDate>
        <DOB>0001-01-01T00:00:00</DOB>
        <Email>String</Email>
        <Id>0</Id>
        <IdentityCardNumber>String</IdentityCardNumber>
        <InverseManagedByNavigation i:nil="true" />
        <IsActive>false</IsActive>
        <IsAdmin>false</IsAdmin>
        <ManagedBy>0</ManagedBy>
        <ManagedByNavigation>
          <AccountingTransactions i:nil="true" />
          <Address>String</Address>
          <AdminGroup>0</AdminGroup>
          <CdKeys i:nil="true" />
          <CreatedBy>0</CreatedBy>
          <CreatedDate>0001-01-01T00:00:00</CreatedDate>
          <DOB>0001-01-01T00:00:00</DOB>
          <Email>String</Email>
          <Id>0</Id>
          <IdentityCardNumber>String</IdentityCardNumber>
          <InverseManagedByNavigation i:nil="true" />
          <IsActive>false</IsActive>
          <IsAdmin>false</IsAdmin>
          <ManagedBy>0</ManagedBy>
          <ManagedByNavigation>
            <AccountingTransactions i:nil="true" />
            <Address>String</Address>
            <AdminGroup>0</AdminGroup>
            <CdKeys i:nil="true" />
            <CreatedBy>0</CreatedBy>
            <CreatedDate>0001-01-01T00:00:00</CreatedDate>
            <DOB>0001-01-01T00:00:00</DOB>
            <Email>String</Email>
            <Id>0</Id>
            <IdentityCardNumber>String</IdentityCardNumber>
            <InverseManagedByNavigation i:nil="true" />
            <IsActive>false</IsActive>
            <IsAdmin>false</IsAdmin>
            <ManagedBy>0</ManagedBy>
            <ManagedByNavigation i:nil="true" />
            <Name>String</Name>
            <ObjectAccesses i:nil="true" />
            <Partners i:nil="true" />
            <Password>String</Password>
            <Phone>String</Phone>
            <PlainPassword>String</PlainPassword>
            <RetailerId>0</RetailerId>
            <UserName>String</UserName>
          </ManagedByNavigation>
          <Name>String</Name>
          <ObjectAccesses i:nil="true" />
          <Partners i:nil="true" />
          <Password>String</Password>
          <Phone>String</Phone>
          <PlainPassword>String</PlainPassword>
          <RetailerId>0</RetailerId>
          <UserName>String</UserName>
        </ManagedByNavigation>
        <Name>String</Name>
        <ObjectAccesses i:nil="true" />
        <Partners i:nil="true" />
        <Password>String</Password>
        <Phone>String</Phone>
        <PlainPassword>String</PlainPassword>
        <RetailerId>0</RetailerId>
        <UserName>String</UserName>
      </LeadOwner>
      <LeadOwnerId>0</LeadOwnerId>
      <Loyalty>0</Loyalty>
      <MemberJoinDate>0001-01-01T00:00:00</MemberJoinDate>
      <ModifiedBy>0</ModifiedBy>
      <ModifiedDate>0001-01-01T00:00:00</ModifiedDate>
      <Name>String</Name>
      <Orders i:nil="true" />
      <PartnerBranches i:nil="true" />
      <PartnerGroupMembers i:nil="true" />
      <Password>String</Password>
      <Phone>String</Phone>
      <Phone2>String</Phone2>
      <PlainPassword>String</PlainPassword>
      <Point>0</Point>
      <PointUses i:nil="true" />
      <ProductPartners i:nil="true" />
      <Province>String</Province>
      <PurchaseOrderReturns i:nil="true" />
      <PurchaseOrders i:nil="true" />
      <RetailerId>0</RetailerId>
      <Returns i:nil="true" />
      <ShippingAddress>String</ShippingAddress>
      <TaxCode>String</TaxCode>
      <TotalDebt>0</TotalDebt>
      <Transactionvalue>0</Transactionvalue>
      <Type>0</Type>
    </Partner>
    <PartnerId>0</PartnerId>
    <PurchaseOrderDetails i:nil="true" />
    <PurchaseOrderReturns i:nil="true" />
    <RetailerId>0</RetailerId>
    <Status>0</Status>
    <Total>0</Total>
    <TotalPayment>0</TotalPayment>
    <VAT>0</VAT>
  </PurchaseOrder>
  <PurchaseOrderId>0</PurchaseOrderId>
  <PurchaseOrderReturnDetails i:nil="true" />
  <RetailerId>0</RetailerId>
  <ReturnDate>0001-01-01T00:00:00</ReturnDate>
  <Status>0</Status>
  <Total>0</Total>
  <TotalPayment>0</TotalPayment>
</PurchaseOrderReturn>