Testing receipt creation via POST to `/receipt-form` and found some inconsistencies:
- LineDescription vs Description: When creating receipt lines, use “LineDescription” for the line’s description which then appears as “Description” in the actual form. The “Description” field on lines is ignored. Is this field unused?
- UnitPrice not settable: Passing UnitPrice as an object `{“Value”: 100, “Currency”: “AUD”}` results in UnitPrice being omitted from the created line entirely. Only Account, LineDescription, and Qty appear in the result.
- Receipt Amount not reflecting line totals: The main Amount field shows as 0 in list responses even when lines are provided.
Example input that worked:
HTTP POST /receipt-form
{
"Date":"2026-03-15",
"ReceivedIn":"d1489e95-bb28-4f5d-b42e-67d3291b3893",
"Reference":"TEST6-RECEIPT-WITH-LINES",
"Description":"Test 6 receipt with 2 lines",
"Amount":275,
"Lines":[
{
"Account":"d1489e95-bb28-4f5d-b42e-67d3291b3893",
"Description":"Line 1",
"LineDescription":"Line 1L",
"Qty":2,
"UnitPrice":{"Value":100,"Currency":"AUD"}
},
{
"Account":"d1489e95-bb28-4f5d-b42e-67d3291b3893",
"Description":"Line 2",
"LineDescription":"Line 2L",
"Qty":1,
"UnitPrice":{"Value":75,"Currency":"AUD"}
}]
}
Result: {
"status": "success",
"data": {
"Date": "2026-03-15T00:00:00",
"Reference": "TEST6-RECEIPT-WITH-LINES",
"ReceivedIn": "d1489e95-bb28-4f5d-b42e-67d3291b3893",
"Description": "Test 6 receipt with 2 lines",
"Lines": [
{
"Account": "d1489e95-bb28-4f5d-b42e-67d3291b3893",
"LineDescription": "Line 1L",
"Qty": 2
},
{
"Account": "d1489e95-bb28-4f5d-b42e-67d3291b3893",
"LineDescription": "Line 2L",
"Qty": 1
}
],
"Key": "019cef75-7aa4-7ba1-999e-1034bca90a8d"
}
}
Can anyone confirm the correct way to set UnitPrice on receipt lines? Is there a different field name or structure required?