Order records
An order record represents the finalized state of an order that has already been completed or originated outside the operational OMS flow. Unlike an order, an order record doesn't express customer intent that needs to be fulfilled. It captures what happened, not what needs to happen next. It doesn't participate in the fulfillment lifecycle and doesn't trigger routing, picking, packing, shipping, or any downstream operational processes.
Order records exist to make non-operational order data available for audit, analytics, and reporting, without adding load or complexity to the operational OMS.
Distinction between order and order record
Purpose
Persist completed or external orders
Create demand and trigger fulfillment
Lifecycle
No lifecycle
Full lifecycle with events
Downstream entities
None
Yes (pick jobs, pack jobs, parcels, …)
Validation
Minimal
Strict
Input type
Offline, batch, legacy, historical
Real-time operational orders
Cost profile
Low (storage-oriented)
Higher (event-driven, stateful)
Create order records
Order records are created using a bulk endpoint that accepts up to 25 records per request. To create order records, call the following PUT endpoint:
PUT https://{YOUR_TENANT_NAME}.api.fulfillmenttools.com/api/orderrecords{
"operations": [
{
"tenantOrderRecordId": "A-RECORD-99211",
"orderRecordDate": "2026-03-24T13:21:00.000Z",
"facilityRef": "22675b17-04d3-40eb-8970-5a5a382b4a76",
"consumer": {
"consumerId": "429117bb-6de0-462c-9062-44d7e6d68db2",
"email": "anna.mueller@example.com",
"addresses": [
{
"firstName": "Anna",
"lastName": "Müller",
"street": "Hauptstraße",
"houseNumber": "34",
"postalCode": "50667",
"city": "Köln",
"province": "Nordrhein-Westfalen",
"country": "DE"
}
]
},
"lineItems": [
{
"article": {
"tenantArticleId": "ELEC-CAMERA-INSTANT",
"title": "Sofortbildkamera Mini",
"attributes": [
{
"category": "descriptive",
"priority": 100,
"key": "Filmformat",
"value": "Instax Mini",
"type": "STRING"
},
{
"category": "basePrice",
"key": "value",
"value": "7499"
},
{
"category": "basePrice",
"key": "currency",
"value": "EUR"
},
{
"category": "basePrice",
"key": "decimalPlaces",
"value": "2"
}
]
},
"quantity": 1,
"warranty": {
"warrantyStartDate": "2026-03-23T23:00:00.000Z",
"warrantyPeriod": "P2Y"
},
"returnPolicy": {
"isReturnable": true,
"returnWindowEndDate": "2026-04-22T22:00:00.000Z"
}
}
],
"payments": [
{
"paymentMethod": "Cash",
"value": {
"value": 8246,
"currency": "EUR",
"decimalPlaces": 2
},
"status": "COMPLETED"
}
],
"origin": {
"type": "POS",
"terminalId": "terminal-99211",
"cashierId": "cashier-99211"
}
}
]
}If the request was successful, it returns an HTTP 200 OK response with a summary and details for each operation:
summary: Counts of created, updated, and unchanged records in the batch
details[].status: The result for each operation — CREATED, UPDATED, UNCHANGED, or FAILED
details[].orderRecord: The full order record object including system-generated fields
details[].error: Present when status is FAILED, contains type and message
Order record structure
Required fields
orderRecordDate: Date and time of the transaction (ISO 8601)facilityRef: Reference to the facility where the transaction occurredlineItems: Array of purchased items (1–500 items)
Optional fields
tenantOrderRecordId: Your external order record ID for referenceconsumer: Customer information includingconsumerId,email, andaddresses(up to 10)payments: Payment details (up to 100) including method, amounts, and status (COMPLETED,FAILED,CANCELLED,REFUNDED,PARTIALLY_REFUNDED)origin: POS origin information withterminalIdandcashierIdpricing: Order-level pricing breakdown with discounts (up to 100), fees (up to 100), and taxes (up to 100)customAttributes: Free-form key-value attributes for tenant-specific data
Line items
Each line item requires an article with a tenantArticleId and a quantity (minimum 1). Optional fields include:
article.title: Product namearticle.attributes: Product attributes withkey,value, and optionalcategory,priority,type, and localized valuesmeasurementUnitKey: Unit of measurewarranty: Warranty details withwarrantyStartDateandwarrantyPeriod(ISO 8601 duration, for example,P2Yfor 2 years)returnPolicy: Return details withisReturnableflag andreturnWindowEndDatecustomAttributes: Free-form attributes
Monetary values
All monetary values use the MonetaryValue format:
value: Amount in the smallest currency unit (for example, cents)
currency: ISO 4217 currency code
decimalPlaces: Number of decimal places (defaults to currency standard)
System-generated fields
These fields are automatically set and returned in the response:
id: Unique identifier for the order recordversion: Version number for optimistic lockingcreated: Timestamp when the record was createdlastModified: Timestamp of the last modificationanonymized: Whether PII has been anonymized (GDPR)gdprCleanupDate: When anonymization will occurdeletionDate: When the record will be permanently deletedpricing.priceBreakdown: Calculated totals includingsubTotal,totalDiscounts,totalTaxes,totalFees,totalDeposit, andtotal
List order records
To retrieve a paginated list of order records, call the following GET endpoint:
Query parameters
size(optional): Number of items per page, maximum 500, default 20startAfterId(optional): Cursor for keyset pagination — pass theidof the last record from the previous pagefacilityRef(optional): Filter by facility referencetenantOrderRecordId(optional): Filter by your external order record ID
Example: List with filtering
Get a single order record
To retrieve a specific order record by its ID:
Returns the full order record object or a 404 Not Found if the record doesn't exist.
Authorization
Order record operations require the following permissions:
ORDER_RECORD_READ: Required for listing and retrieving order recordsORDER_RECORD_WRITE: Required for creating order records
See the Authorization article for more information.
GDPR and data retention
Order records support automatic GDPR compliance:
Anonymization: PII is automatically anonymized based on the configured GDPR cleanup schedule
Deletion: Records are permanently deleted after the configured retention period
The
anonymized,gdprCleanupDate, anddeletionDatefields track the GDPR lifecycle
See the GDPR configuration for more details.
Last updated
Was this helpful?

