AVB LINQ Public API

<back to all web services

AvbSaleCreate

Avb Sales
The following routes are available for this service:
PUT/avbsalesInsert Sale(s). Max of 1000 Sales.
AvbSaleCreate Parameters:
NameParameterData TypeRequiredDescription
SalesbodyList<SaleCreateModel>No
SaleCreateModel Parameters:
NameParameterData TypeRequiredDescription
ExternalOrderNumberformstringYes
SaleDateformDateTimeYes
CustomerNameformstringNo
CustomerPhoneformstringNo
CustomerEmailformstringNo
CustomerZipcodeformstringNo
SalesRepformstringNo
StoreLocationformstringNo
GrandTotalformdecimalNo
SubtotalformdecimalNo
DiscountformdecimalNo
MiscformdecimalNo
TaxformdecimalNo
ShippingformdecimalNo
SourceformSaleSourceNoSource is: 'LINQ','POS', or 'Website'
ShippingAddressLine1formstringNo
ShippingAddressLine2formstringNo
ShippingAddressCityformstringNo
ShippingAddressStateformstringNo
ShippingAddressZipformstringNo
ShippingMethodformstringNo
PaymentTypeformstringNo
CustomerIDformstringNo
DeliveredDateformDateTime?No
SaleItemsformList<SaleItemModel>No
SaleSource Enum:
Undefined
LINQ
POS
Website
SaleItemModel Parameters:
NameParameterData TypeRequiredDescription
MfgSkuformstringYes
BrandformstringYes
SellerSkuformstringNo
NameformstringNo
ItemQtyformdecimalYes
ItemCostformdecimalNo
AvbSaleCreateReturn Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

PUT /avbsales HTTP/1.1 
Host: avb-pos.avbportal.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"sales":[{"externalOrderNumber":"String","saleDate":"0001-01-01T00:00:00.0000000","customerName":"String","customerPhone":"String","customerEmail":"String","customerZipcode":"String","salesRep":"String","storeLocation":"String","grandTotal":0,"subtotal":0,"discount":0,"misc":0,"tax":0,"shipping":0,"source":"Undefined","shippingAddressLine1":"String","shippingAddressLine2":"String","shippingAddressCity":"String","shippingAddressState":"String","shippingAddressZip":"String","shippingMethod":"String","paymentType":"String","customerID":"String","deliveredDate":"0001-01-01T00:00:00.0000000","saleItems":[{"mfgSku":"String","brand":"String","sellerSku":"String","name":"String","itemQty":0,"itemCost":0}]}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}