Update Purchase Transaction Proposal
Update purchase transaction proposal from Basecone by its unique identifier.
This API resource is only available to Premium APPs.
PUT transactionproposals/:id
Example request
{
"transactionDate": "2014-08-05T00:00:00",
"period": "2014/8",
"description": "An invoice pour vous",
"dueDate": "2014-08-19T00:00:00",
"invoiceNumber": "dfgd4534",
"purchaseOrderNumber": "PO123456789",
"supplier": {
"code": "2000"
},
"isInPaymentBatch": true,
"isCreditNote": false,
"isFinalBooking": false,
"totalAmount": 500,
"currency": {
"code": "EUR"
},
"additionalField1": "Some text",
"transactionLines": [
{
"transactionLineId": "fc3fa8ef-ddad-407b-b6f4-ecb3e329f4e3",
"intraCommunity": {
"countryCode": "nl",
"vatNumber": "NL3298742987",
"date": "2014-08-05T00:00:00",
"icpDeliveryType": "goods",
},
"quantity" : {
"value" : 123.45,
"unit" : {
"code" : "mtr"
}
},
"description": "3.30",
"additionalField1": "Some text",
"destinationCompany": {
"code": "9901"
},
"generalLedger": {
"code": "0090"
},
"costCenter": {
"code": "00013"
},
"costUnit": {
"code": "D0001"
},
"project": {
"code": "P0008"
},
"amount": 500,
"vatCode": {
"code": "IV21"
},
"vatAmount": 120
}
]
}
Purchase transaction proposal properties
Properties specific to purchase transaction proposal are printed bold, other properties are shared between all types of transactions.
| Property | Type | Description | Optional |
|---|---|---|---|
| Description | String | Description | Yes |
| DueDate | DateTime (nullable) | Due date | No |
| InvoiceNumber | String | Invoice number | Yes |
| PurchaseOrderNumber | String | Purchase order number | Yes |
| Supplier | Supplier object | Supplier | Yes |
| IsInPaymentBatch | Bool | This indicates and provides a trigger if the transaction needs to be taken into account for any payment run in the 3rd party application. | Yes |
| IsCreditNote | Bool | Indicates whether this transaction is a credit note. | Yes |
| TotalAmount | Decimal (nullable) | Total amount | Yes |
| Period | String | The period of a transaction relates to the transaction date and represents the specific period in the accounts of a company. | Yes |
| TransactionDate | DateTime (nullable) | This is the date of the transaction, in most cases the invoice date. The invoice date is generally mentioned on each invoice and differs from the transaction date. | Yes |
| TransactionLines | Array | Collection of transactionlines. | Yes |
| AdditionalField1 | String | Additional text field I. | Yes |
| IsFinalBooking | Bool | Indicates if this transaction needs to result in a final booking. | Yes |
| Currency | Reference object | Mandatory Currency used in transaction. | No |
Purchase transaction line properties
| Property | Type | Description | Optional |
|---|---|---|---|
| AdditionalField1 | String | Additional text field I. | Yes |
| PurchaseOrderNumber | String | Purchase order number. | Yes |
| IntraCommunity | IntraCommunity object | This indicates if the VAT code is related to an Intra Community Transaction/delivery. | Yes |
| Quantity | Quantity object | This indicates the quantity and unit relevant to the transaction line. | Yes |
| TransactionLineId | Guid | Unique identifier of the transaction line. | Yes |
| Description | String | Description | Yes |
| DestinationCompany | Reference object | Mandatory The destination company is the company to which the header of a transaction in generally booked. | No |
| GeneralLedger | Reference object | This is the code of the ledger that is selected to book a transaction. This represents the category of booking. | Yes |
| CostCenter | Reference object | Cost center | Yes |
| CostUnit | Reference object | Cost unit.
Note: currently, supported only on Unit4 companies. |
Yes |
| Project | Reference object | Project | Yes |
| Amount | Decimal (nullable) | Amount | Yes |
| VatCode | Reference object | Vat code | Yes |
| VatAmount | Decimal (nullable) | Vat amount | Yes |
Reference object properties
A multipurpose reference object that is used to encapsulate a reference to a complex object.
| Property | Type | Description |
|---|---|---|
| Code | String | The code for a particular complex object, typically this will be an externalId. |
IntraCommunity
| Property | Type | Description |
|---|---|---|
| CountryCode | String | Two letter country ISO code. |
| VatNumber | String | The applicable vat number. |
| Date | DateTime (nullable) | The date of the icp delivery. |
| IcpDeliveryType | String | The type of icp delivery, possible value are goods,services |
Quantity
| Property | Type | Description |
|---|---|---|
| Value | Decimal | The actual quantity up to two decimal precision. |
| Unit.Code | String | The code of the unit used, possible value are kg(kilograms),mtr(meters),pcs(pieces),sqrmtr(square meters),hrs(hours). |
