Field | Type | Description |
| bailmentDealerCode | String | The bailment dealer code |
invoiceNumber | String | The distributor invoice number, stored for reference |
invoiceDate | String | The date of the invoice |
bailmenLoanModelCode | String | The bailment loan model code |
condition | Integer | The asset condition: New = 0 Used = 1 Demo = 2 Race = 3 |
divisionCode | String | The division code (first analysis code) |
assetDetails | Asset Details | The details of the asset |
grossAmount | Number | Amount invoiced for the unit (GST inclusive) Amount is to2 decimal places only |
taxAmount | Number | Tax amount invoiced for the unit (must match the gross amount correctly) Amount is to2 decimal places only |
approvalCode | String | The approval code for this invoice Added in V2 |
| returnErrorIfExistingAccount | Boolean | If the VIN/HIN, bailment dealer code and invoice number match an existing open account and the value is false then the Trust Receipt number of the existing account is returned If the field is set to true, then an error is returned If not specified the default is false Added in V3 |
distributorCode | String | The distributor code Required if logging in as a staff user Added in V4 |
secondAnalysisCode | String | The second analysis code Added in V4 |
| paymentTransactionReference | String | The payment transaction reference, if supported Added in V5 |

| Field | Type | Description |
| success | Boolean | True, if the invoice was successfully created, false otherwise |
| errorMessage | String (optional) | Details the error if success is false, null otherwise |
| documentNumber | String (optional) | The trust receipt number created for this invoice, null if unsuccessful |

HTTP Status Code | Type |
400 | Invalid request (error will be detailed in response) |
403 | Forbidden (invalid Authorisation) 403 can also be returned for the following business reasons:
|
404 | Dealer not found or Order not found (error will be detailed in response) |
503 | Service Unavailable (due to maintenance) |