ApexERPHost

<back to all web services

PlaceECommerceOrder

Requires Authentication
The following routes are available for this service:
PUT/eCommerce/Orders
PlaceECommerceOrder Parameters:
NameParameterData TypeRequiredDescription
BasketbodyECommerceBasketNo
LangbodystringNo
ECommerceBasket Parameters:
NameParameterData TypeRequiredDescription
OrderUnidformGuidNo
BranchIdformint?No
ClientIdformint?No
ContractIdformint?No
LoyaltyCardNumberformstringNo
DeliveryInfoformECommerceDeliveryInfoNo
ProductsformList<ECommerceBasketProduct>No
CouponsformList<string>No
VouchersformList<string>No
ServicesformList<ECommerceOrderService>No
ECommerceDeliveryInfo Parameters:
NameParameterData TypeRequiredDescription
RecipientSnformstringNo
RecipientNameformstringNo
CityformstringNo
AddressformstringNo
DeliveryTypeformintNo
ContactPhoneformstringNo
NoteformstringNo
ECommerceBasketProduct Parameters:
NameParameterData TypeRequiredDescription
ProdIdformstringNo
Priceformdecimal?No
SCountformdecimalNo
ECommerceOrderService Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
NameformstringNo
BCodeformstringNo
DescriptionformstringNo
PriceformdecimalNo
PlaceECommerceOrderResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
OrderIdformint?No
ProductsformList<ECommerceOrderProduct>No
ECommerceOrderProduct Parameters:
NameParameterData TypeRequiredDescription
SCountformdecimal?No
Amountformdecimal?No
PayableAmountformdecimal?No
ECommerceProduct Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
BCodeformstringNo
NameformstringNo
PriceformdecimalNo
Pointsformdecimal?No
InStockformboolNo
PromoformboolNo
Discountformdecimal?No
ImgLinkformstringNo
DiscountedPriceformdecimal?No
IsNewformbool?No
NettoformdecimalNo
UnitformstringNo
AnnotationHtmlformstringNo
NeedPrepareformint?No
QuantityStepformdecimal?No
ByWeightformbyte?No
SlugformstringNo
PPCatIdformstringNo
mdtradeformdecimalNo
mdretailformdecimalNo
rcountformdecimalNo
QualityIdformint?No
QualityformstringNo
HCategoryIdformint?No
IncodeformstringNo
HCategoryNameformstringNo
HCategoryHcodeformstringNo
BrandIdformint?No
BrandNameformstringNo
BrandAbbreviationformstringNo
BrandImageLinkformstringNo
AnnotationHtmlEnformstringNo

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

HTTP + CSV

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

PUT /eCommerce/Orders HTTP/1.1 
Host: 10.10.0.107 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Basket":{"OrderUnid":"00000000000000000000000000000000","BranchId":0,"ClientId":0,"ContractId":0,"LoyaltyCardNumber":"String","DeliveryInfo":{"RecipientSn":"String","RecipientName":"String","City":"String","Address":"String","DeliveryType":0,"ContactPhone":"String","Note":"String"},"Products":[{"ProdId":"String","Price":0,"SCount":0}],"Coupons":["String"],"Vouchers":["String"],"Services":[{"Id":"String","Name":"String","BCode":"String","Description":"String","Price":0}]},"Lang":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"OrderId":0,"Products":[{"Id":"String","BCode":"String","Name":"String","Price":0,"Points":0,"InStock":false,"Promo":false,"Discount":0,"ImgLink":"String","SCount":0,"Amount":0,"PayableAmount":0,"DiscountedPrice":0,"IsNew":false,"Netto":0,"Unit":"String","AnnotationHtml":"String","NeedPrepare":0,"QuantityStep":0,"ByWeight":0,"Slug":"String","PPCatId":"String","mdtrade":0,"mdretail":0,"rcount":0,"QualityId":0,"Quality":"String","HCategoryId":0,"Incode":"String","HCategoryName":"String","HCategoryHcode":"String","BrandId":0,"BrandName":"String","BrandAbbreviation":"String","BrandImageLink":"String","AnnotationHtmlEn":"String"}]}