Sales

API Methods ››
Parent Previous Next


Get sales by filter

GET ./api/sales?[SaleFilter]

       SaleFilter parameters:

SaleId (optional)

CustomerId (optional)

SaleNo (optional)

DatesInUtc

EarliestEffectiveDate (optional)

LatestEffectiveDate (optional)

MaterialItemId (optional)

MaterialCategoryId (optional)

MaterialLocationId (optional)

Page (optional)

PageSize (optional)


Get sale by id

GET ./api/sales?{id}


Count sales

GET ./api/sales/count?[SaleFilter]


Create Sale

POST ./api/sales (new sale entity in HTTP body)

(You can GET an example object to see what the POSTed object should look like.)


Update Sale

PUT ./api/sales/{id} (sale entity in HTTP body)

(You can GET an example object to see what the PUT object should look like.)


Delete Sale

DELETE ./api/sales/{id}


Complete Sale

PUT ./api/sales/{id}/complete

       (Used to update a sale when only changing the state.)