Order
Direct interactions with the API require a valid Bearer token or an X-Api-Key header, and your account or key must be linked to a valid company registered with RapiD Engineering.
GET /api/Order
Returns a 200 (OK) response with a list of orders in the given date range. Each order includes its nested Order Rules, which include their Batches.
- Requires valid
startDateandendDatevalues. - An optional
searchparameter searches by order ID, order name, or purchase order name — when provided, the date range is ignored.
Response fields: Id, OrderName, PurchaseOrderName, ReceivedAt, LastDateTime, ClaimValue, ClaimPercentage, and a nested Rules collection.
GET /api/Order/{id}
Returns a 200 (OK) response with a single order, or 404 if not found.
Response fields: Id, OrderName, PurchaseOrderName, ReceivedAt, LastDateTime, ClaimValue, ClaimPercentage (no nested Rules).
GET /api/Order/Latest
Returns a 200 (OK) response with the most recently updated order (including its Rules and their Batches), or 404 if no orders exist.
POST /api/Order
Creates a new order. Returns a 201 (Created) response with the new order's Id.
Request body: OrderName, PurchaseOrderName, ReceivedAt.
Note
Products are handled separately and won't be included in any order response.
Note
Updating an order, deleting an order, and order analytics endpoints aren't part of the external API.