Download OpenAPI specification:Download
Public API that deals with transactions
Used to retrieve a collection of transactions
tenantId required | string <guid> The tenant id |
pageNumber required | integer The page number of results |
companyId required | string <guid> The company id - optional (pass NULL value when unavailable) |
userId required | string <guid> The user id - optional (pass NULL value when unavailable) |
status required | string <guid> The transaction status - optional (pass NULL value when unavailable) |
transactionType required | string <guid> The transaction type - optional (pass NULL value when unavailable) |
x-api-version required | integer Value: 1 Example: 1 Indicates the version of this API to be used. |
x-api-compleat-key required | string <guid> Example: d025eedc-5ea0-4de8-be9f-f8873545add9 The header containing compleat api key. |
{- "Transactions": [
- {
- "Id": "5a68bd4e-3ba0-41d6-9541-ee5c93f78392",
- "Company": {
- "Id": "04dcf3f2-0603-4979-be3d-cf09b1a4c614",
- "Name": "Tech Ltd"
}, - "Owner": {
- "Id": "9fe649bc-e039-4d57-819c-b7540aca13fd",
- "Name": "John Bolton"
}, - "Type": "INV",
- "References": {
- "Identifier": "INV000001",
- "PurchaseOrder": "ORD000056",
- "Supplier": "TCHDR9990"
}, - "Dates": {
- "Created": "2020-09-01T16:00:41.090Z",
- "Invoice": "2020-09-01T00:00:00.000Z",
- "PaymentDue": "2020-10-01T00:00:00.000Z",
- "Delivery": "string"
}, - "Title": "Peripherals for accounting",
- "SupplierName": "Techodrive technologies",
- "Net": {
- "Base": {
- "Display": "£40.00",
- "Value": 40
}, - "Local": {
- "Display": "$55.00",
- "Value": 55
}
}, - "Vat": {
- "Base": {
- "Display": "£4.00",
- "Value": 4
}, - "Local": {
- "Display": "$5.00",
- "Value": 5
}
}, - "Gross": {
- "Base": {
- "Display": "£4000.00",
- "Value": 4000
}, - "Local": {
- "Display": "$5.00",
- "Value": 5
}
}, - "Status": "APPR",
- "LastUpdatedGuid": "9fe649bc-e039-4d57-819c-b7540aca13fd",
- "MatchingStatusDetail": {
- "MatchStatus": "OVMCH",
- "References": [
- {
- "Id": "add52185-428f-4130-83a8-ca1b738c773b",
- "References": "INV000027",
- "TxType": "INV"
}
], - "Description": "This order has been invoiced for more than its value"
}
}
], - "PageNumber": 1,
- "Count": 8,
- "PageSize": 20,
- "MetaData": {
- "RequestUrl": "string",
- "Version": 1,
- "DateCreated": "2019-08-24"
}
}
Used to retrieve a transaction
tenantId required | string <guid> The tenant id |
transactionId required | integer The page number of results |
userId required | string <guid> The user id - optional (pass NULL value when unavailable) |
x-api-version required | integer Value: 1 Example: 1 Indicates the version of this API to be used. |
x-api-compleat-key required | string <guid> Example: d025eedc-5ea0-4de8-be9f-f8873545add9 The header containing compleat api key. |
{- "Transaction": {
- "Id": "string",
- "Company": {
- "Id": "string",
- "Name": "string"
}, - "Owner": {
- "Id": "string",
- "Name": "string"
}, - "Type": "string",
- "References": {
- "Identifier": "string",
- "PurchaseOrder": "string",
- "Supplier": "string"
}, - "Dates": {
- "Created": "string",
- "Invoice": "string",
- "PaymentDue": "string",
- "Delivery": "string"
}, - "Title": "string",
- "Supplier": {
- "Name": "string",
- "Code": "string"
}, - "Net": {
- "Display": "string",
- "Value": 0
}, - "Vat": {
- "Display": "string",
- "Value": 0
}, - "Gross": {
- "Display": "string",
- "Value": 0
}, - "Status": "string",
- "CurrencyCode": {
- "Base": "string",
- "Local": "string"
}, - "Comment": "string",
- "SupplierComment": "string",
- "Layout": {
- "Code": "string",
- "Name": "string"
}, - "BankDetails": {
- "BankStatus": {
- "test": "this is test",
- "another": "this is another test"
}, - "BankSortCode": "string",
- "BankAccountNumber": "string",
- "BankSortCodeFinance": "string",
- "BankAccountNumberFinance": "string"
}, - "MatchingStatusDetail": {
- "MatchStatus": "string",
- "References": [
- { }
], - "Description": "string"
}, - "LastUpdatedGuid": "string",
- "Analysis": [
- {
- "Id": "string",
- "TypeId": "string",
- "Name": "string",
- "Value": {
- "Code": "string",
- "Name": "string"
}
}
], - "Lines": [
- {
- "Id": "string",
- "Number": 0,
- "Code": "string",
- "Description": "string",
- "Quantity": 0,
- "UnitCost": {
- "Base": {
- "Display": "string",
- "Value": 0
}, - "Local": {
- "Display": "string",
- "Value": 0
}
}, - "Net": {
- "Base": {
- "Display": "string",
- "Value": 0
}, - "Local": {
- "Display": "string",
- "Value": 0
}
}, - "Vat": {
- "Base": {
- "Display": "string",
- "Value": 0
}, - "Local": {
- "Display": "string",
- "Value": 0
}
}, - "Gross": {
- "Base": {
- "Display": "string",
- "Value": 0
}, - "Local": {
- "Display": "string",
- "Value": 0
}
}, - "Analysis": [
- {
- "Id": "string",
- "TypeId": "string",
- "Name": "string",
- "Value": {
- "Code": "string",
- "Name": "string"
}
}
]
}
], - "Attachments": [
- {
- "Id": "string",
- "MimeType": "string",
- "Type": {
- "INVOICE": "Invoice",
- "CREDITNOTE": "Credit note",
- "DOCUMENT": "Supporting document",
- "PO": "Purchase order",
- "OTHER": "Other document type"
}
}
], - "Notes": [
- {
- "Id": "string",
- "Text": "string",
- "Owner": {
- "Id": "string",
- "Name": "string"
}, - "DateCreated": "2019-08-24"
}
]
}, - "MetaData": {
- "RequestUrl": "string",
- "Version": 1,
- "DateCreated": "2019-08-24"
}
}
Used to create new purchase order, invoice or credit note in iCompleat
tenantId required | string <guid> Example: d025eedc-5ea0-4de8-be9f-f8873545add9 Id of the tenant to post transaction into. The account requesting the data must have access to this tenant Id. |
companyId required | string <guid> Example: 8d4bb975-eade-42fd-a064-bf448e493c1e Id of the company to post transactions into. Must be a valid company within the tenant. |
transactionType required | string Enum: "ORD" "INV" "CRD" The type of transaction being created within the company. |
x-api-version required | integer Value: 1 Example: 1 Indicates the version of this API to be used. |
x-api-compleat-key required | string <guid> Example: d025eedc-5ea0-4de8-be9f-f8873545add9 The header containing compleat api key. |
LayoutId required | string <guid> The unique ID of the layout you wish to create the order against. |
TransactionStatus required | string Enum: "SAV" "APPR" The status of transaction being created within the company. |
Reference required | string <= 50 characters The ID of the order from your accounting software. |
PoNumber | string <= 20 characters The purchase order number associated with the order. |
DateCreated required | string The date the order was created. |
DateApproved | string The date the order was approved. |
SupplierId required | string <= 36 characters The unique identifier of the supplier. |
SupplierName required | string <= 255 characters The name of the supplier. |
CurrencyCode required | string The currency code of the transaction. |
DeliveryDate | string The expected delivery date of a transaction. Optional. |
DeliverySiteCode | string The delivery site code of the transaction. Optional |
required | Array of objects Array of Analysis Fields to be used on the transaction Header. |
required | Array of objects Array of Analysis Fields to be used on the transaction header. |
required | Array of objects Line items of the order. |
This will create transactions in the company specified.
{- "LayoutId": "23e25c09-2af9-410c-8c14-2e429fb557ce",
- "TransactionStatus": "Approved",
- "Reference": "REQABC",
- "PoNumber": "POABC123",
- "DateCreated": "2020-08-06T14:32:11.345Z",
- "DateApproved": "2020-08-08T14:35:16.541Z",
- "SupplierId": "AW1",
- "SupplierName": "Andy's Widgets",
- "CurrencyCode": "GBP",
- "AnalysisItems": [
- {
- "Id": "f297a959-b0eb-4128-b938-67f9dccf5105",
- "Value": "Standard 20% Tax"
}
], - "CustomItems": [
- {
- "Id": "c7edf8db-6b95-4b86-8875-d04b2c68f14c",
- "Value": 35
}
], - "LineItems": [
- {
- "ItemCode": "PAP0001",
- "Description": "Paper",
- "UnitCost": 4.99,
- "Quantity": 2,
- "Net": 9.98,
- "Tax": 2,
- "Gross": 11.98,
- "AnalysisItems": [
- {
- "Id": "af3b1492-779c-4ea8-b5ba-45086d60da0e",
- "Value": "I.T Account Ledger Code"
}
], - "CustomItems": [
- {
- "Id": "d32aa98b-03bc-4170-9d02-3dd2bd3e6a5a",
- "Value": "01/11/2020"
}
]
}, - {
- "ItemCode": "PAP0002",
- "Description": "Delivery",
- "UnitCost": 0.99,
- "Quantity": 1,
- "Net": 1,
- "Tax": 0.2,
- "Gross": 1.2,
- "AnalysisItems": [
- {
- "Id": "af3b1492-779c-4ea8-b5ba-45086d60da0e",
- "Value": "I.T Account Ledger Code"
}
], - "CustomItems": [
- {
- "Id": "d32aa98b-03bc-4170-9d02-3dd2bd3e6a5a",
- "Value": "01/11/2020"
}
]
}
]
}
{- "TransactionId": "string",
- "MetaData": {
- "RequestUrl": "string",
- "Version": 1,
- "DateCreated": "2019-08-24"
}
}
Used to patch a transaction
tenantId required | string <guid> Example: eaa81226-e2e6-47e9-82b1-df58b2a5067c The tenant's id that the transaction belongs to |
transactionId required | string <guid> Example: 12409644-1c2c-4058-8ca4-35b7d4acd972 |
userId required | string <guid> Example: 478f9871-4e1a-4067-a406-14fcffc859ee The user making the request to patch the transaction |
lastUpdatedGuid required | string <guid> Example: 196df9a7-0bd6-4669-9603-294c07860e30 The token saved upon the last change made against the record, can be obtained from the GET Transaction call |
The body sent with the details for the patch
Command | string Enum: "APPROVE - Approve the transaction" "DENY - Deny the transaction" "SUBMIT - Submit the transaction" "UPDATE - Update the transaction" "RECEIPT - Receipt the lines or transaction" The action to be taken against the transaction |
Comment | string Comment provided when approving or denying a transaction |
Array of objects Payload for receipting multiple line items | |
LineId | string <guid> The line's unique id provided when updating a field on the transaction line |
TITLE (string) or QUANTITY (string) or DELIVERYDATE (string) or DELIVERYSITE (string) or SUPPLIERCOMMENT (string) or JUSTIFICATION (string) or PAYMENTSTATUS (string) or POSTINGFAIL (string) or JOURNALNUMBER (string) or GUID (string) The key to be updated | |
Value | string The value to be updated for the selected key |
Update analysis field on the header
{- "Command": "UPDATE",
- "Comment": "",
- "LineId": "",
- "Key": "3BC9E1E0-259D-4A54-9E43-2FB7E697F131",
- "Value": "ACCTCD2"
}
{- "Command": "DENY",
- "LastUpdatedToken": "b8e1e905-7e3f-4c19-80ce-854661d5dc1a",
- "User": {
- "Id": "3f9352f5-e9f5-4522-8ab1-7afbaa2cfa04",
- "Name": "Lora Jackson"
}, - "MetaData": {
- "RequestUrl": "string",
- "Version": 1,
- "DateCreated": "2019-08-24"
}
}