Requires any of the permissions: | Transfer_Update, Transfer_Create |
POST | /api/transfers |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Transfer | body | Transfer | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | long | No | |
Code | form | string | No | |
FromBranchId | form | int | No | |
ToBranchId | form | int | No | |
Status | form | int | No | |
DocumentDate | form | DateTime? | No | |
CreatedDate | form | DateTime | No | |
CreatedBy | form | long | No | |
RetailerId | form | int | No | |
ReceiverId | form | long? | No | |
Description | form | string | No | |
ReceivedBy | form | long? | No | |
ModifiedBy | form | long? | No | |
ModifiedDate | form | DateTime? | No | |
FromBranch | form | Branch | No | |
ToBranch | form | Branch | No | |
TransferDetails | form | ICollection<TransferDetail> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | int | No | |
Name | form | string | No | |
form | string | No | ||
Phone | form | string | No | |
Address | form | string | No | |
RetailerId | form | int | No | |
CreatedDate | form | DateTime | No | |
CreatedBy | form | long | No | |
ModifiedBy | form | long? | No | |
ExpiryDate | form | DateTime | No | |
ModifiedDate | form | DateTime? | No | |
IsOnline | form | bool | No | |
PreOrderCode | form | string | No | |
FieldId | form | int? | No | |
PreProductCode | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | long | No | |
TransferId | form | long | No | |
ProductId | form | long | No | |
Quantity | form | double | No | |
Description | form | string | No | |
Price | form | decimal | No | |
SerialNumbers | form | string | No | |
ExpiryDate | form | DateTime? | No | |
IsLargeUnit | form | bool? | No | |
ConversionValue | form | double? | No | |
Product | form | Product | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | long | No | |
Code | form | string | No | |
Name | form | string | No | |
AttributesName | form | string | No | |
CategoryId | form | long? | No | |
Description | form | string | No | |
Price | form | decimal | No | |
PriceLargeUnit | form | decimal | No | |
ProductType | form | byte | No | |
ConversionValue | form | double | No | |
Unit | form | string | No | |
LargeUnit | form | string | No | |
IsSerialNumberTracking | form | bool | No | |
CreatedDate | form | DateTime | No | |
CreatedBy | form | long | No | |
ModifiedDate | form | DateTime? | No | |
ModifiedBy | form | long? | No | |
RetailerId | form | int | No | |
IsPercentageOfTotalOrder | form | bool | No | |
SplitForSalesOrder | form | bool | No | |
OrderQuickNotes | form | string | No | |
Printer | form | string | No | |
Hidden | form | bool? | No | |
IsTimer | form | bool? | No | |
Coefficient | form | double? | No | |
BonusPoint | form | double | No | |
ShowOnBranchId | form | string | No | |
BonusPointForAssistant | form | double | No | |
BonusPointForAssistant2 | form | double | No | |
BonusPointForAssistant3 | form | double | No | |
PriceConfig | form | string | No | |
BlockOfTimeToUseService | form | int | No | |
IsPriceForBlock | form | bool | No | |
Formular | form | string | No | |
Position | form | long | No | |
LargeUnitCode | form | string | No | |
Code2 | form | string | No | |
Code3 | form | string | No | |
Code4 | form | string | No | |
Code5 | form | string | No | |
Category | form | Category | No | |
CompositeItemProducts | form | ICollection<CompositeItem> | No | |
ProductAttributes | form | ICollection<ProductAttribute> | No | |
ProductImages | form | ICollection<ProductImage> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | long | No | |
Name | form | string | No | |
ImageURL | form | string | No | |
Description | form | string | No | |
ParentId | form | long? | No | |
RetailerId | form | int | No | |
CreatedDate | form | DateTime | No | |
CreatedBy | form | long | No | |
ModifiedDate | form | DateTime? | No | |
ModifiedBy | form | long? | No | |
ShowOnBranchId | form | string | No | |
Position | form | long | No | |
Parent | form | Category | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | int | No | |
ProductId | form | long | No | |
ItemId | form | long | No | |
Quantity | form | double | No | |
RetailerId | form | int | No | |
QuantityLargeUnit | form | double | No | |
Item | form | Product | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | long | No | |
ProductId | form | long | No | |
AttributeName | form | string | No | |
AttributeValue | form | string | No | |
RetailerId | form | int | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | long | No | |
ProductId | form | long | No | |
ImageURL | form | string | No | |
ThumbnailUrl | form | string | No | |
IsDefault | form | bool | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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 { }