Sales Order Service

Back

Overview

Sales orders represent customer orders for products or services.
They are central to sales operations, including order processing, tracking, and reporting.

Sales orders provide a consistent reference for:

Sales orders are tenant-scoped, and all operations respect the current tenant context.

All sales order operations are tenant-aware.


Endpoints

Back to Sales

GET

/api/SalesOrder/GetAllSalesOrders

Returns all sales orders for the current tenant.

Query parameters:

Behavior:

Authorization:


GET

/api/SalesOrder/GetSalesOrderById/{id}

Returns a single sales order by its numeric identifier.

Behavior:

Authorization:


GET

/api/SalesOrder/GetAllSalesOrdersByEntityId/{entityId}

Returns all sales orders for a given customer/entity.

Behavior:

Authorization:


GET

/api/SalesOrder/GetSalesOrderByOrderRefAndEntityId/{orderNumber}/{entityId}

Returns a sales order matching both order reference and entity Id.

Behavior:

Authorization:


POST

/api/SalesOrder/AddNewSalesOrder

Creates a new sales order.

Request body:

Behavior:

Errors:

Authorization:


PUT

/api/SalesOrder/UpdateSalesOrderById/{id}

Updates an existing sales order.

Request:

Behavior:

Errors:

Authorization:


DELETE

/api/SalesOrder/DeleteSalesOrderById/{id}

Deletes a sales order by its identifier.

Behavior:

Errors:

Authorization:


Notes