POS365.VN APIs

<back to all web services

TransferSave

Requires Authentication
Requires any of the permissions:Transfer_Update, Transfer_Create
The following routes are available for this service:
POST/api/transfers
TransferSave Parameters:
NameParameterData TypeRequiredDescription
TransferbodyTransferNo
Transfer Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
CodeformstringNo
FromBranchIdformintNo
ToBranchIdformintNo
StatusformintNo
DocumentDateformDateTime?No
CreatedDateformDateTimeNo
CreatedByformlongNo
RetailerIdformintNo
ReceiverIdformlong?No
DescriptionformstringNo
ReceivedByformlong?No
ModifiedByformlong?No
ModifiedDateformDateTime?No
FromBranchformBranchNo
ToBranchformBranchNo
TransferDetailsformICollection<TransferDetail>No
Branch Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NameformstringNo
EmailformstringNo
PhoneformstringNo
AddressformstringNo
RetailerIdformintNo
CreatedDateformDateTimeNo
CreatedByformlongNo
ModifiedByformlong?No
ExpiryDateformDateTimeNo
ModifiedDateformDateTime?No
IsOnlineformboolNo
PreOrderCodeformstringNo
FieldIdformint?No
PreProductCodeformstringNo
TransferDetail Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
TransferIdformlongNo
ProductIdformlongNo
QuantityformdoubleNo
DescriptionformstringNo
PriceformdecimalNo
SerialNumbersformstringNo
ExpiryDateformDateTime?No
IsLargeUnitformbool?No
ConversionValueformdouble?No
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

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

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

POST /api/transfers HTTP/1.1 
Host: api.pos365.vn 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Transfer: 
	{
		Id: 0,
		Code: String,
		FromBranchId: 0,
		ToBranchId: 0,
		Status: 0,
		DocumentDate: 0001-01-01,
		CreatedDate: 0001-01-01,
		CreatedBy: 0,
		RetailerId: 0,
		ReceiverId: 0,
		Description: String,
		ReceivedBy: 0,
		ModifiedBy: 0,
		ModifiedDate: 0001-01-01,
		FromBranch: 
		{
			Id: 0,
			Name: String,
			Email: String,
			Phone: String,
			Address: String,
			RetailerId: 0,
			CreatedDate: 0001-01-01,
			CreatedBy: 0,
			ModifiedBy: 0,
			ExpiryDate: 0001-01-01,
			ModifiedDate: 0001-01-01,
			IsOnline: False,
			PreOrderCode: String,
			FieldId: 0,
			PreProductCode: String
		},
		ToBranch: 
		{
			Id: 0,
			Name: String,
			Email: String,
			Phone: String,
			Address: String,
			RetailerId: 0,
			CreatedDate: 0001-01-01,
			CreatedBy: 0,
			ModifiedBy: 0,
			ExpiryDate: 0001-01-01,
			ModifiedDate: 0001-01-01,
			IsOnline: False,
			PreOrderCode: String,
			FieldId: 0,
			PreProductCode: String
		}
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	
}