Version : 1
https://public-api.crunch.co.uk/v1/expenses
get /attachments
read:all
""
application/json
get /expense-types/all
read:all
{
"count" : 6,
"expenseGroups" : [ {
"groupName" : "groupName",
"count" : 0,
"expenseTypes" : [ {
"expenseTypeDisplayableName" : "expenseTypeDisplayableName",
"defaultVatType" : "defaultVatType",
"expenseTypeName" : "expenseTypeName",
"deprecated" : true,
"dormantAllowable" : true,
"assignable" : true
}, {
"expenseTypeDisplayableName" : "expenseTypeDisplayableName",
"defaultVatType" : "defaultVatType",
"expenseTypeName" : "expenseTypeName",
"deprecated" : true,
"dormantAllowable" : true,
"assignable" : true
} ]
}, {
"groupName" : "groupName",
"count" : 0,
"expenseTypes" : [ {
"expenseTypeDisplayableName" : "expenseTypeDisplayableName",
"defaultVatType" : "defaultVatType",
"expenseTypeName" : "expenseTypeName",
"deprecated" : true,
"dormantAllowable" : true,
"assignable" : true
}, {
"expenseTypeDisplayableName" : "expenseTypeDisplayableName",
"defaultVatType" : "defaultVatType",
"expenseTypeName" : "expenseTypeName",
"deprecated" : true,
"dormantAllowable" : true,
"assignable" : true
} ]
} ]
}
application/json
get /expense-types
read:all
{
"count" : 6,
"expenseGroups" : [ {
"groupName" : "groupName",
"count" : 0,
"expenseTypes" : [ {
"expenseTypeDisplayableName" : "expenseTypeDisplayableName",
"defaultVatType" : "defaultVatType",
"expenseTypeName" : "expenseTypeName",
"deprecated" : true,
"dormantAllowable" : true,
"assignable" : true
}, {
"expenseTypeDisplayableName" : "expenseTypeDisplayableName",
"defaultVatType" : "defaultVatType",
"expenseTypeName" : "expenseTypeName",
"deprecated" : true,
"dormantAllowable" : true,
"assignable" : true
} ]
}, {
"groupName" : "groupName",
"count" : 0,
"expenseTypes" : [ {
"expenseTypeDisplayableName" : "expenseTypeDisplayableName",
"defaultVatType" : "defaultVatType",
"expenseTypeName" : "expenseTypeName",
"deprecated" : true,
"dormantAllowable" : true,
"assignable" : true
}, {
"expenseTypeDisplayableName" : "expenseTypeDisplayableName",
"defaultVatType" : "defaultVatType",
"expenseTypeName" : "expenseTypeName",
"deprecated" : true,
"dormantAllowable" : true,
"assignable" : true
} ]
} ]
}
application/json
post /
application/json
create:all
{
"supplierReference" : "supplierReference",
"recharged" : true,
"note" : "note",
"reconciled" : true,
"attachments" : [ {
"fileName" : "fileName",
"id" : 8,
"fileContents" : "fileContents"
}, {
"fileName" : "fileName",
"id" : 8,
"fileContents" : "fileContents"
} ],
"supplierPayments" : [ {
"date" : "2000-01-23",
"paymentTarget" : {
"bankAccount" : {
"defaultBankAccount" : true,
"bankName" : "bankName",
"displayableName" : "displayableName",
"id" : 1
},
"paymentMethod" : {
"paymentMethodName" : "paymentMethodName",
"paymentMethodDisplayableName" : "paymentMethodDisplayableName"
},
"creditCard" : {
"defaultCreditCard" : true,
"displayableName" : "displayableName",
"id" : 1
}
},
"amount" : 7.386281948385884,
"reconciled" : true,
"id" : 4
}, {
"date" : "2000-01-23",
"paymentTarget" : {
"bankAccount" : {
"defaultBankAccount" : true,
"bankName" : "bankName",
"displayableName" : "displayableName",
"id" : 1
},
"paymentMethod" : {
"paymentMethodName" : "paymentMethodName",
"paymentMethodDisplayableName" : "paymentMethodDisplayableName"
},
"creditCard" : {
"defaultCreditCard" : true,
"displayableName" : "displayableName",
"id" : 1
}
},
"amount" : 7.386281948385884,
"reconciled" : true,
"id" : 4
} ],
"editable" : true,
"rechargedClient" : {
"name" : "name",
"id" : 9
},
"deletable" : true,
"totalCreditsAmount" : 1.1730742509559433,
"postingDate" : "2000-01-23",
"expenseLineItems" : [ {
"expenseType" : "expenseType",
"amount" : {
"netAmount" : 9.301444243932576,
"grossAmount" : 7.061401241503109,
"vatAmount" : 3.616076749251911
},
"vatType" : "vatType",
"description" : "description",
"id" : 2,
"employee" : {
"forename" : "forename",
"surname" : "surname",
"displayableName" : "displayableName",
"id" : 2
}
}, {
"expenseType" : "expenseType",
"amount" : {
"netAmount" : 9.301444243932576,
"grossAmount" : 7.061401241503109,
"vatAmount" : 3.616076749251911
},
"vatType" : "vatType",
"description" : "description",
"id" : 2,
"employee" : {
"forename" : "forename",
"surname" : "surname",
"displayableName" : "displayableName",
"id" : 2
}
} ],
"creditNotes" : [ {
"date" : "2000-01-23",
"lineItems" : [ {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
}, {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
} ],
"id" : 1,
"refunds" : [ null, null ]
}, {
"date" : "2000-01-23",
"lineItems" : [ {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
}, {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
} ],
"id" : 1,
"refunds" : [ null, null ]
} ],
"createdBy" : "createdBy",
"recurringEvent" : {
"frequencyOccurrence" : "frequencyOccurrence",
"nextOccurrenceDate" : "2000-01-23",
"endDate" : "2000-01-23",
"occurrenceCount" : 6,
"description" : "description",
"id" : 9,
"recurringEventFrequency" : "recurringEventFrequency",
"recurringEventEndType" : "recurringEventEndType",
"enabled" : true
},
"supplier" : {
"archived" : true,
"country" : "country",
"expenseType" : {
"expenseTypeDisplayableName" : "expenseTypeDisplayableName",
"defaultVatType" : "defaultVatType",
"expenseTypeName" : "expenseTypeName",
"deprecated" : true,
"dormantAllowable" : true,
"assignable" : true
},
"vatRegistrationNumber" : "vatRegistrationNumber",
"contactName" : "contactName",
"companyName" : "companyName",
"deletable" : true,
"id" : 5
},
"expenseLedgerIsOpen" : true,
"totalRefundsAmount" : 4.965218492984954,
"createdByRecurringEvent" : true,
"id" : 5,
"status" : "status",
"outstandingBalance" : 5.025004791520295
}
application/json
delete /{expenseId}
delete:all
get /
date,desc
,id,desc
.read:all
{
"number" : 9,
"size" : 1,
"last" : true,
"numberOfElements" : 6,
"totalPages" : 0,
"pageable" : {
"paged" : true,
"pageNumber" : 1,
"offset" : 3,
"pageSize" : 6,
"unpaged" : true
},
"sort" : {
"unsorted" : true,
"sorted" : true,
"empty" : true
},
"content" : [ {
"supplierReference" : "supplierReference",
"recharged" : true,
"note" : "note",
"reconciled" : true,
"attachments" : [ {
"fileName" : "fileName",
"id" : 8,
"fileContents" : "fileContents"
}, {
"fileName" : "fileName",
"id" : 8,
"fileContents" : "fileContents"
} ],
"supplierPayments" : [ {
"date" : "2000-01-23",
"paymentTarget" : {
"bankAccount" : {
"defaultBankAccount" : true,
"bankName" : "bankName",
"displayableName" : "displayableName",
"id" : 1
},
"paymentMethod" : {
"paymentMethodName" : "paymentMethodName",
"paymentMethodDisplayableName" : "paymentMethodDisplayableName"
},
"creditCard" : {
"defaultCreditCard" : true,
"displayableName" : "displayableName",
"id" : 1
}
},
"amount" : 7.386281948385884,
"reconciled" : true,
"id" : 4
}, {
"date" : "2000-01-23",
"paymentTarget" : {
"bankAccount" : {
"defaultBankAccount" : true,
"bankName" : "bankName",
"displayableName" : "displayableName",
"id" : 1
},
"paymentMethod" : {
"paymentMethodName" : "paymentMethodName",
"paymentMethodDisplayableName" : "paymentMethodDisplayableName"
},
"creditCard" : {
"defaultCreditCard" : true,
"displayableName" : "displayableName",
"id" : 1
}
},
"amount" : 7.386281948385884,
"reconciled" : true,
"id" : 4
} ],
"editable" : true,
"rechargedClient" : {
"name" : "name",
"id" : 9
},
"deletable" : true,
"totalCreditsAmount" : 1.1730742509559433,
"postingDate" : "2000-01-23",
"expenseLineItems" : [ {
"expenseType" : "expenseType",
"amount" : {
"netAmount" : 9.301444243932576,
"grossAmount" : 7.061401241503109,
"vatAmount" : 3.616076749251911
},
"vatType" : "vatType",
"description" : "description",
"id" : 2,
"employee" : {
"forename" : "forename",
"surname" : "surname",
"displayableName" : "displayableName",
"id" : 2
}
}, {
"expenseType" : "expenseType",
"amount" : {
"netAmount" : 9.301444243932576,
"grossAmount" : 7.061401241503109,
"vatAmount" : 3.616076749251911
},
"vatType" : "vatType",
"description" : "description",
"id" : 2,
"employee" : {
"forename" : "forename",
"surname" : "surname",
"displayableName" : "displayableName",
"id" : 2
}
} ],
"creditNotes" : [ {
"date" : "2000-01-23",
"lineItems" : [ {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
}, {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
} ],
"id" : 1,
"refunds" : [ null, null ]
}, {
"date" : "2000-01-23",
"lineItems" : [ {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
}, {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
} ],
"id" : 1,
"refunds" : [ null, null ]
} ],
"createdBy" : "createdBy",
"recurringEvent" : {
"frequencyOccurrence" : "frequencyOccurrence",
"nextOccurrenceDate" : "2000-01-23",
"endDate" : "2000-01-23",
"occurrenceCount" : 6,
"description" : "description",
"id" : 9,
"recurringEventFrequency" : "recurringEventFrequency",
"recurringEventEndType" : "recurringEventEndType",
"enabled" : true
},
"supplier" : {
"archived" : true,
"country" : "country",
"expenseType" : {
"expenseTypeDisplayableName" : "expenseTypeDisplayableName",
"defaultVatType" : "defaultVatType",
"expenseTypeName" : "expenseTypeName",
"deprecated" : true,
"dormantAllowable" : true,
"assignable" : true
},
"vatRegistrationNumber" : "vatRegistrationNumber",
"contactName" : "contactName",
"companyName" : "companyName",
"deletable" : true,
"id" : 5
},
"expenseLedgerIsOpen" : true,
"totalRefundsAmount" : 4.965218492984954,
"createdByRecurringEvent" : true,
"id" : 5,
"status" : "status",
"outstandingBalance" : 5.025004791520295
}, {
"supplierReference" : "supplierReference",
"recharged" : true,
"note" : "note",
"reconciled" : true,
"attachments" : [ {
"fileName" : "fileName",
"id" : 8,
"fileContents" : "fileContents"
}, {
"fileName" : "fileName",
"id" : 8,
"fileContents" : "fileContents"
} ],
"supplierPayments" : [ {
"date" : "2000-01-23",
"paymentTarget" : {
"bankAccount" : {
"defaultBankAccount" : true,
"bankName" : "bankName",
"displayableName" : "displayableName",
"id" : 1
},
"paymentMethod" : {
"paymentMethodName" : "paymentMethodName",
"paymentMethodDisplayableName" : "paymentMethodDisplayableName"
},
"creditCard" : {
"defaultCreditCard" : true,
"displayableName" : "displayableName",
"id" : 1
}
},
"amount" : 7.386281948385884,
"reconciled" : true,
"id" : 4
}, {
"date" : "2000-01-23",
"paymentTarget" : {
"bankAccount" : {
"defaultBankAccount" : true,
"bankName" : "bankName",
"displayableName" : "displayableName",
"id" : 1
},
"paymentMethod" : {
"paymentMethodName" : "paymentMethodName",
"paymentMethodDisplayableName" : "paymentMethodDisplayableName"
},
"creditCard" : {
"defaultCreditCard" : true,
"displayableName" : "displayableName",
"id" : 1
}
},
"amount" : 7.386281948385884,
"reconciled" : true,
"id" : 4
} ],
"editable" : true,
"rechargedClient" : {
"name" : "name",
"id" : 9
},
"deletable" : true,
"totalCreditsAmount" : 1.1730742509559433,
"postingDate" : "2000-01-23",
"expenseLineItems" : [ {
"expenseType" : "expenseType",
"amount" : {
"netAmount" : 9.301444243932576,
"grossAmount" : 7.061401241503109,
"vatAmount" : 3.616076749251911
},
"vatType" : "vatType",
"description" : "description",
"id" : 2,
"employee" : {
"forename" : "forename",
"surname" : "surname",
"displayableName" : "displayableName",
"id" : 2
}
}, {
"expenseType" : "expenseType",
"amount" : {
"netAmount" : 9.301444243932576,
"grossAmount" : 7.061401241503109,
"vatAmount" : 3.616076749251911
},
"vatType" : "vatType",
"description" : "description",
"id" : 2,
"employee" : {
"forename" : "forename",
"surname" : "surname",
"displayableName" : "displayableName",
"id" : 2
}
} ],
"creditNotes" : [ {
"date" : "2000-01-23",
"lineItems" : [ {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
}, {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
} ],
"id" : 1,
"refunds" : [ null, null ]
}, {
"date" : "2000-01-23",
"lineItems" : [ {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
}, {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
} ],
"id" : 1,
"refunds" : [ null, null ]
} ],
"createdBy" : "createdBy",
"recurringEvent" : {
"frequencyOccurrence" : "frequencyOccurrence",
"nextOccurrenceDate" : "2000-01-23",
"endDate" : "2000-01-23",
"occurrenceCount" : 6,
"description" : "description",
"id" : 9,
"recurringEventFrequency" : "recurringEventFrequency",
"recurringEventEndType" : "recurringEventEndType",
"enabled" : true
},
"supplier" : {
"archived" : true,
"country" : "country",
"expenseType" : {
"expenseTypeDisplayableName" : "expenseTypeDisplayableName",
"defaultVatType" : "defaultVatType",
"expenseTypeName" : "expenseTypeName",
"deprecated" : true,
"dormantAllowable" : true,
"assignable" : true
},
"vatRegistrationNumber" : "vatRegistrationNumber",
"contactName" : "contactName",
"companyName" : "companyName",
"deletable" : true,
"id" : 5
},
"expenseLedgerIsOpen" : true,
"totalRefundsAmount" : 4.965218492984954,
"createdByRecurringEvent" : true,
"id" : 5,
"status" : "status",
"outstandingBalance" : 5.025004791520295
} ],
"first" : true,
"totalElements" : 6,
"empty" : true
}
application/json
get /{expenseId}
read:all
{
"supplierReference" : "supplierReference",
"recharged" : true,
"note" : "note",
"reconciled" : true,
"attachments" : [ {
"fileName" : "fileName",
"id" : 8,
"fileContents" : "fileContents"
}, {
"fileName" : "fileName",
"id" : 8,
"fileContents" : "fileContents"
} ],
"supplierPayments" : [ {
"date" : "2000-01-23",
"paymentTarget" : {
"bankAccount" : {
"defaultBankAccount" : true,
"bankName" : "bankName",
"displayableName" : "displayableName",
"id" : 1
},
"paymentMethod" : {
"paymentMethodName" : "paymentMethodName",
"paymentMethodDisplayableName" : "paymentMethodDisplayableName"
},
"creditCard" : {
"defaultCreditCard" : true,
"displayableName" : "displayableName",
"id" : 1
}
},
"amount" : 7.386281948385884,
"reconciled" : true,
"id" : 4
}, {
"date" : "2000-01-23",
"paymentTarget" : {
"bankAccount" : {
"defaultBankAccount" : true,
"bankName" : "bankName",
"displayableName" : "displayableName",
"id" : 1
},
"paymentMethod" : {
"paymentMethodName" : "paymentMethodName",
"paymentMethodDisplayableName" : "paymentMethodDisplayableName"
},
"creditCard" : {
"defaultCreditCard" : true,
"displayableName" : "displayableName",
"id" : 1
}
},
"amount" : 7.386281948385884,
"reconciled" : true,
"id" : 4
} ],
"editable" : true,
"rechargedClient" : {
"name" : "name",
"id" : 9
},
"deletable" : true,
"totalCreditsAmount" : 1.1730742509559433,
"postingDate" : "2000-01-23",
"expenseLineItems" : [ {
"expenseType" : "expenseType",
"amount" : {
"netAmount" : 9.301444243932576,
"grossAmount" : 7.061401241503109,
"vatAmount" : 3.616076749251911
},
"vatType" : "vatType",
"description" : "description",
"id" : 2,
"employee" : {
"forename" : "forename",
"surname" : "surname",
"displayableName" : "displayableName",
"id" : 2
}
}, {
"expenseType" : "expenseType",
"amount" : {
"netAmount" : 9.301444243932576,
"grossAmount" : 7.061401241503109,
"vatAmount" : 3.616076749251911
},
"vatType" : "vatType",
"description" : "description",
"id" : 2,
"employee" : {
"forename" : "forename",
"surname" : "surname",
"displayableName" : "displayableName",
"id" : 2
}
} ],
"creditNotes" : [ {
"date" : "2000-01-23",
"lineItems" : [ {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
}, {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
} ],
"id" : 1,
"refunds" : [ null, null ]
}, {
"date" : "2000-01-23",
"lineItems" : [ {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
}, {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
} ],
"id" : 1,
"refunds" : [ null, null ]
} ],
"createdBy" : "createdBy",
"recurringEvent" : {
"frequencyOccurrence" : "frequencyOccurrence",
"nextOccurrenceDate" : "2000-01-23",
"endDate" : "2000-01-23",
"occurrenceCount" : 6,
"description" : "description",
"id" : 9,
"recurringEventFrequency" : "recurringEventFrequency",
"recurringEventEndType" : "recurringEventEndType",
"enabled" : true
},
"supplier" : {
"archived" : true,
"country" : "country",
"expenseType" : {
"expenseTypeDisplayableName" : "expenseTypeDisplayableName",
"defaultVatType" : "defaultVatType",
"expenseTypeName" : "expenseTypeName",
"deprecated" : true,
"dormantAllowable" : true,
"assignable" : true
},
"vatRegistrationNumber" : "vatRegistrationNumber",
"contactName" : "contactName",
"companyName" : "companyName",
"deletable" : true,
"id" : 5
},
"expenseLedgerIsOpen" : true,
"totalRefundsAmount" : 4.965218492984954,
"createdByRecurringEvent" : true,
"id" : 5,
"status" : "status",
"outstandingBalance" : 5.025004791520295
}
application/json
get /total
read:all
{
"overpaid" : 1.4658129805029452,
"grossAmount" : 0.8008281904610115,
"underpaid" : 6.027456183070403
}
application/json
put /{expenseId}
application/json
update:all
{
"supplierReference" : "supplierReference",
"recharged" : true,
"note" : "note",
"reconciled" : true,
"attachments" : [ {
"fileName" : "fileName",
"id" : 8,
"fileContents" : "fileContents"
}, {
"fileName" : "fileName",
"id" : 8,
"fileContents" : "fileContents"
} ],
"supplierPayments" : [ {
"date" : "2000-01-23",
"paymentTarget" : {
"bankAccount" : {
"defaultBankAccount" : true,
"bankName" : "bankName",
"displayableName" : "displayableName",
"id" : 1
},
"paymentMethod" : {
"paymentMethodName" : "paymentMethodName",
"paymentMethodDisplayableName" : "paymentMethodDisplayableName"
},
"creditCard" : {
"defaultCreditCard" : true,
"displayableName" : "displayableName",
"id" : 1
}
},
"amount" : 7.386281948385884,
"reconciled" : true,
"id" : 4
}, {
"date" : "2000-01-23",
"paymentTarget" : {
"bankAccount" : {
"defaultBankAccount" : true,
"bankName" : "bankName",
"displayableName" : "displayableName",
"id" : 1
},
"paymentMethod" : {
"paymentMethodName" : "paymentMethodName",
"paymentMethodDisplayableName" : "paymentMethodDisplayableName"
},
"creditCard" : {
"defaultCreditCard" : true,
"displayableName" : "displayableName",
"id" : 1
}
},
"amount" : 7.386281948385884,
"reconciled" : true,
"id" : 4
} ],
"editable" : true,
"rechargedClient" : {
"name" : "name",
"id" : 9
},
"deletable" : true,
"totalCreditsAmount" : 1.1730742509559433,
"postingDate" : "2000-01-23",
"expenseLineItems" : [ {
"expenseType" : "expenseType",
"amount" : {
"netAmount" : 9.301444243932576,
"grossAmount" : 7.061401241503109,
"vatAmount" : 3.616076749251911
},
"vatType" : "vatType",
"description" : "description",
"id" : 2,
"employee" : {
"forename" : "forename",
"surname" : "surname",
"displayableName" : "displayableName",
"id" : 2
}
}, {
"expenseType" : "expenseType",
"amount" : {
"netAmount" : 9.301444243932576,
"grossAmount" : 7.061401241503109,
"vatAmount" : 3.616076749251911
},
"vatType" : "vatType",
"description" : "description",
"id" : 2,
"employee" : {
"forename" : "forename",
"surname" : "surname",
"displayableName" : "displayableName",
"id" : 2
}
} ],
"creditNotes" : [ {
"date" : "2000-01-23",
"lineItems" : [ {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
}, {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
} ],
"id" : 1,
"refunds" : [ null, null ]
}, {
"date" : "2000-01-23",
"lineItems" : [ {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
}, {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
} ],
"id" : 1,
"refunds" : [ null, null ]
} ],
"createdBy" : "createdBy",
"recurringEvent" : {
"frequencyOccurrence" : "frequencyOccurrence",
"nextOccurrenceDate" : "2000-01-23",
"endDate" : "2000-01-23",
"occurrenceCount" : 6,
"description" : "description",
"id" : 9,
"recurringEventFrequency" : "recurringEventFrequency",
"recurringEventEndType" : "recurringEventEndType",
"enabled" : true
},
"supplier" : {
"archived" : true,
"country" : "country",
"expenseType" : {
"expenseTypeDisplayableName" : "expenseTypeDisplayableName",
"defaultVatType" : "defaultVatType",
"expenseTypeName" : "expenseTypeName",
"deprecated" : true,
"dormantAllowable" : true,
"assignable" : true
},
"vatRegistrationNumber" : "vatRegistrationNumber",
"contactName" : "contactName",
"companyName" : "companyName",
"deletable" : true,
"id" : 5
},
"expenseLedgerIsOpen" : true,
"totalRefundsAmount" : 4.965218492984954,
"createdByRecurringEvent" : true,
"id" : 5,
"status" : "status",
"outstandingBalance" : 5.025004791520295
}
application/json
get /ledgers
read:all
[ {
"endDate" : "2000-01-23",
"startDate" : "2000-01-23",
"status" : "status"
}, {
"endDate" : "2000-01-23",
"startDate" : "2000-01-23",
"status" : "status"
} ]
application/json
get /payment-methods
read:all
{
"paymentMethods" : [ {
"paymentMethodName" : "paymentMethodName",
"paymentMethodDisplayableName" : "paymentMethodDisplayableName"
}, {
"paymentMethodName" : "paymentMethodName",
"paymentMethodDisplayableName" : "paymentMethodDisplayableName"
} ]
}
application/json
get /persons
read:all
[ {
"forename" : "forename",
"surname" : "surname",
"displayableName" : "displayableName",
"id" : 2
}, {
"forename" : "forename",
"surname" : "surname",
"displayableName" : "displayableName",
"id" : 2
} ]
application/json
delete /recurring-expenses/{id}
update:all
0
application/json
get /recurring-expenses/{id}
read:all
{
"supplierReference" : "supplierReference",
"recharged" : true,
"note" : "note",
"reconciled" : true,
"attachments" : [ {
"fileName" : "fileName",
"id" : 8,
"fileContents" : "fileContents"
}, {
"fileName" : "fileName",
"id" : 8,
"fileContents" : "fileContents"
} ],
"supplierPayments" : [ {
"date" : "2000-01-23",
"paymentTarget" : {
"bankAccount" : {
"defaultBankAccount" : true,
"bankName" : "bankName",
"displayableName" : "displayableName",
"id" : 1
},
"paymentMethod" : {
"paymentMethodName" : "paymentMethodName",
"paymentMethodDisplayableName" : "paymentMethodDisplayableName"
},
"creditCard" : {
"defaultCreditCard" : true,
"displayableName" : "displayableName",
"id" : 1
}
},
"amount" : 7.386281948385884,
"reconciled" : true,
"id" : 4
}, {
"date" : "2000-01-23",
"paymentTarget" : {
"bankAccount" : {
"defaultBankAccount" : true,
"bankName" : "bankName",
"displayableName" : "displayableName",
"id" : 1
},
"paymentMethod" : {
"paymentMethodName" : "paymentMethodName",
"paymentMethodDisplayableName" : "paymentMethodDisplayableName"
},
"creditCard" : {
"defaultCreditCard" : true,
"displayableName" : "displayableName",
"id" : 1
}
},
"amount" : 7.386281948385884,
"reconciled" : true,
"id" : 4
} ],
"editable" : true,
"rechargedClient" : {
"name" : "name",
"id" : 9
},
"deletable" : true,
"totalCreditsAmount" : 1.1730742509559433,
"postingDate" : "2000-01-23",
"expenseLineItems" : [ {
"expenseType" : "expenseType",
"amount" : {
"netAmount" : 9.301444243932576,
"grossAmount" : 7.061401241503109,
"vatAmount" : 3.616076749251911
},
"vatType" : "vatType",
"description" : "description",
"id" : 2,
"employee" : {
"forename" : "forename",
"surname" : "surname",
"displayableName" : "displayableName",
"id" : 2
}
}, {
"expenseType" : "expenseType",
"amount" : {
"netAmount" : 9.301444243932576,
"grossAmount" : 7.061401241503109,
"vatAmount" : 3.616076749251911
},
"vatType" : "vatType",
"description" : "description",
"id" : 2,
"employee" : {
"forename" : "forename",
"surname" : "surname",
"displayableName" : "displayableName",
"id" : 2
}
} ],
"creditNotes" : [ {
"date" : "2000-01-23",
"lineItems" : [ {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
}, {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
} ],
"id" : 1,
"refunds" : [ null, null ]
}, {
"date" : "2000-01-23",
"lineItems" : [ {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
}, {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
} ],
"id" : 1,
"refunds" : [ null, null ]
} ],
"createdBy" : "createdBy",
"recurringEvent" : {
"frequencyOccurrence" : "frequencyOccurrence",
"nextOccurrenceDate" : "2000-01-23",
"endDate" : "2000-01-23",
"occurrenceCount" : 6,
"description" : "description",
"id" : 9,
"recurringEventFrequency" : "recurringEventFrequency",
"recurringEventEndType" : "recurringEventEndType",
"enabled" : true
},
"supplier" : {
"archived" : true,
"country" : "country",
"expenseType" : {
"expenseTypeDisplayableName" : "expenseTypeDisplayableName",
"defaultVatType" : "defaultVatType",
"expenseTypeName" : "expenseTypeName",
"deprecated" : true,
"dormantAllowable" : true,
"assignable" : true
},
"vatRegistrationNumber" : "vatRegistrationNumber",
"contactName" : "contactName",
"companyName" : "companyName",
"deletable" : true,
"id" : 5
},
"expenseLedgerIsOpen" : true,
"totalRefundsAmount" : 4.965218492984954,
"createdByRecurringEvent" : true,
"id" : 5,
"status" : "status",
"outstandingBalance" : 5.025004791520295
}
application/json
get /recurring-expenses
date,desc
,companyName,asc
.read:all
{
"number" : 2,
"size" : 1,
"last" : true,
"numberOfElements" : 7,
"totalPages" : 0,
"pageable" : {
"paged" : true,
"pageNumber" : 1,
"offset" : 3,
"pageSize" : 6,
"unpaged" : true
},
"sort" : {
"unsorted" : true,
"sorted" : true,
"empty" : true
},
"content" : [ {
"supplierName" : "supplierName",
"totalAmount" : 5.637376656633329,
"nextOccurrenceDate" : "2000-01-23",
"description" : "description",
"id" : 5,
"status" : "status"
}, {
"supplierName" : "supplierName",
"totalAmount" : 5.637376656633329,
"nextOccurrenceDate" : "2000-01-23",
"description" : "description",
"id" : 5,
"status" : "status"
} ],
"first" : true,
"totalElements" : 6,
"empty" : true
}
application/json
post /recurring-expenses
application/json
create:all
{
"supplierReference" : "supplierReference",
"recharged" : true,
"note" : "note",
"reconciled" : true,
"attachments" : [ {
"fileName" : "fileName",
"id" : 8,
"fileContents" : "fileContents"
}, {
"fileName" : "fileName",
"id" : 8,
"fileContents" : "fileContents"
} ],
"supplierPayments" : [ {
"date" : "2000-01-23",
"paymentTarget" : {
"bankAccount" : {
"defaultBankAccount" : true,
"bankName" : "bankName",
"displayableName" : "displayableName",
"id" : 1
},
"paymentMethod" : {
"paymentMethodName" : "paymentMethodName",
"paymentMethodDisplayableName" : "paymentMethodDisplayableName"
},
"creditCard" : {
"defaultCreditCard" : true,
"displayableName" : "displayableName",
"id" : 1
}
},
"amount" : 7.386281948385884,
"reconciled" : true,
"id" : 4
}, {
"date" : "2000-01-23",
"paymentTarget" : {
"bankAccount" : {
"defaultBankAccount" : true,
"bankName" : "bankName",
"displayableName" : "displayableName",
"id" : 1
},
"paymentMethod" : {
"paymentMethodName" : "paymentMethodName",
"paymentMethodDisplayableName" : "paymentMethodDisplayableName"
},
"creditCard" : {
"defaultCreditCard" : true,
"displayableName" : "displayableName",
"id" : 1
}
},
"amount" : 7.386281948385884,
"reconciled" : true,
"id" : 4
} ],
"editable" : true,
"rechargedClient" : {
"name" : "name",
"id" : 9
},
"deletable" : true,
"totalCreditsAmount" : 1.1730742509559433,
"postingDate" : "2000-01-23",
"expenseLineItems" : [ {
"expenseType" : "expenseType",
"amount" : {
"netAmount" : 9.301444243932576,
"grossAmount" : 7.061401241503109,
"vatAmount" : 3.616076749251911
},
"vatType" : "vatType",
"description" : "description",
"id" : 2,
"employee" : {
"forename" : "forename",
"surname" : "surname",
"displayableName" : "displayableName",
"id" : 2
}
}, {
"expenseType" : "expenseType",
"amount" : {
"netAmount" : 9.301444243932576,
"grossAmount" : 7.061401241503109,
"vatAmount" : 3.616076749251911
},
"vatType" : "vatType",
"description" : "description",
"id" : 2,
"employee" : {
"forename" : "forename",
"surname" : "surname",
"displayableName" : "displayableName",
"id" : 2
}
} ],
"creditNotes" : [ {
"date" : "2000-01-23",
"lineItems" : [ {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
}, {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
} ],
"id" : 1,
"refunds" : [ null, null ]
}, {
"date" : "2000-01-23",
"lineItems" : [ {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
}, {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
} ],
"id" : 1,
"refunds" : [ null, null ]
} ],
"createdBy" : "createdBy",
"recurringEvent" : {
"frequencyOccurrence" : "frequencyOccurrence",
"nextOccurrenceDate" : "2000-01-23",
"endDate" : "2000-01-23",
"occurrenceCount" : 6,
"description" : "description",
"id" : 9,
"recurringEventFrequency" : "recurringEventFrequency",
"recurringEventEndType" : "recurringEventEndType",
"enabled" : true
},
"supplier" : {
"archived" : true,
"country" : "country",
"expenseType" : {
"expenseTypeDisplayableName" : "expenseTypeDisplayableName",
"defaultVatType" : "defaultVatType",
"expenseTypeName" : "expenseTypeName",
"deprecated" : true,
"dormantAllowable" : true,
"assignable" : true
},
"vatRegistrationNumber" : "vatRegistrationNumber",
"contactName" : "contactName",
"companyName" : "companyName",
"deletable" : true,
"id" : 5
},
"expenseLedgerIsOpen" : true,
"totalRefundsAmount" : 4.965218492984954,
"createdByRecurringEvent" : true,
"id" : 5,
"status" : "status",
"outstandingBalance" : 5.025004791520295
}
application/json
put /recurring-expenses/{id}
application/json
update:all
{
"supplierReference" : "supplierReference",
"recharged" : true,
"note" : "note",
"reconciled" : true,
"attachments" : [ {
"fileName" : "fileName",
"id" : 8,
"fileContents" : "fileContents"
}, {
"fileName" : "fileName",
"id" : 8,
"fileContents" : "fileContents"
} ],
"supplierPayments" : [ {
"date" : "2000-01-23",
"paymentTarget" : {
"bankAccount" : {
"defaultBankAccount" : true,
"bankName" : "bankName",
"displayableName" : "displayableName",
"id" : 1
},
"paymentMethod" : {
"paymentMethodName" : "paymentMethodName",
"paymentMethodDisplayableName" : "paymentMethodDisplayableName"
},
"creditCard" : {
"defaultCreditCard" : true,
"displayableName" : "displayableName",
"id" : 1
}
},
"amount" : 7.386281948385884,
"reconciled" : true,
"id" : 4
}, {
"date" : "2000-01-23",
"paymentTarget" : {
"bankAccount" : {
"defaultBankAccount" : true,
"bankName" : "bankName",
"displayableName" : "displayableName",
"id" : 1
},
"paymentMethod" : {
"paymentMethodName" : "paymentMethodName",
"paymentMethodDisplayableName" : "paymentMethodDisplayableName"
},
"creditCard" : {
"defaultCreditCard" : true,
"displayableName" : "displayableName",
"id" : 1
}
},
"amount" : 7.386281948385884,
"reconciled" : true,
"id" : 4
} ],
"editable" : true,
"rechargedClient" : {
"name" : "name",
"id" : 9
},
"deletable" : true,
"totalCreditsAmount" : 1.1730742509559433,
"postingDate" : "2000-01-23",
"expenseLineItems" : [ {
"expenseType" : "expenseType",
"amount" : {
"netAmount" : 9.301444243932576,
"grossAmount" : 7.061401241503109,
"vatAmount" : 3.616076749251911
},
"vatType" : "vatType",
"description" : "description",
"id" : 2,
"employee" : {
"forename" : "forename",
"surname" : "surname",
"displayableName" : "displayableName",
"id" : 2
}
}, {
"expenseType" : "expenseType",
"amount" : {
"netAmount" : 9.301444243932576,
"grossAmount" : 7.061401241503109,
"vatAmount" : 3.616076749251911
},
"vatType" : "vatType",
"description" : "description",
"id" : 2,
"employee" : {
"forename" : "forename",
"surname" : "surname",
"displayableName" : "displayableName",
"id" : 2
}
} ],
"creditNotes" : [ {
"date" : "2000-01-23",
"lineItems" : [ {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
}, {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
} ],
"id" : 1,
"refunds" : [ null, null ]
}, {
"date" : "2000-01-23",
"lineItems" : [ {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
}, {
"description" : "description",
"id" : 6,
"expenseLineItemIndex" : 7
} ],
"id" : 1,
"refunds" : [ null, null ]
} ],
"createdBy" : "createdBy",
"recurringEvent" : {
"frequencyOccurrence" : "frequencyOccurrence",
"nextOccurrenceDate" : "2000-01-23",
"endDate" : "2000-01-23",
"occurrenceCount" : 6,
"description" : "description",
"id" : 9,
"recurringEventFrequency" : "recurringEventFrequency",
"recurringEventEndType" : "recurringEventEndType",
"enabled" : true
},
"supplier" : {
"archived" : true,
"country" : "country",
"expenseType" : {
"expenseTypeDisplayableName" : "expenseTypeDisplayableName",
"defaultVatType" : "defaultVatType",
"expenseTypeName" : "expenseTypeName",
"deprecated" : true,
"dormantAllowable" : true,
"assignable" : true
},
"vatRegistrationNumber" : "vatRegistrationNumber",
"contactName" : "contactName",
"companyName" : "companyName",
"deletable" : true,
"id" : 5
},
"expenseLedgerIsOpen" : true,
"totalRefundsAmount" : 4.965218492984954,
"createdByRecurringEvent" : true,
"id" : 5,
"status" : "status",
"outstandingBalance" : 5.025004791520295
}
application/json
post /suppliers
application/json
create:all
{
"archived" : true,
"country" : "country",
"expenseType" : {
"expenseTypeDisplayableName" : "expenseTypeDisplayableName",
"defaultVatType" : "defaultVatType",
"expenseTypeName" : "expenseTypeName",
"deprecated" : true,
"dormantAllowable" : true,
"assignable" : true
},
"vatRegistrationNumber" : "vatRegistrationNumber",
"contactName" : "contactName",
"companyName" : "companyName",
"deletable" : true,
"id" : 5
}
application/json
delete /suppliers/{supplierId}
delete:all
{
"archived" : true,
"country" : "country",
"expenseType" : {
"expenseTypeDisplayableName" : "expenseTypeDisplayableName",
"defaultVatType" : "defaultVatType",
"expenseTypeName" : "expenseTypeName",
"deprecated" : true,
"dormantAllowable" : true,
"assignable" : true
},
"vatRegistrationNumber" : "vatRegistrationNumber",
"contactName" : "contactName",
"companyName" : "companyName",
"deletable" : true,
"id" : 5
}
application/json
get /suppliers/all
read:all
{
"count" : 0,
"content" : [ {
"archived" : true,
"country" : "country",
"expenseType" : {
"expenseTypeDisplayableName" : "expenseTypeDisplayableName",
"defaultVatType" : "defaultVatType",
"expenseTypeName" : "expenseTypeName",
"deprecated" : true,
"dormantAllowable" : true,
"assignable" : true
},
"vatRegistrationNumber" : "vatRegistrationNumber",
"contactName" : "contactName",
"companyName" : "companyName",
"deletable" : true,
"id" : 5
}, {
"archived" : true,
"country" : "country",
"expenseType" : {
"expenseTypeDisplayableName" : "expenseTypeDisplayableName",
"defaultVatType" : "defaultVatType",
"expenseTypeName" : "expenseTypeName",
"deprecated" : true,
"dormantAllowable" : true,
"assignable" : true
},
"vatRegistrationNumber" : "vatRegistrationNumber",
"contactName" : "contactName",
"companyName" : "companyName",
"deletable" : true,
"id" : 5
} ]
}
application/json
get /suppliers/{supplierId}
read:all
{
"archived" : true,
"country" : "country",
"expenseType" : {
"expenseTypeDisplayableName" : "expenseTypeDisplayableName",
"defaultVatType" : "defaultVatType",
"expenseTypeName" : "expenseTypeName",
"deprecated" : true,
"dormantAllowable" : true,
"assignable" : true
},
"vatRegistrationNumber" : "vatRegistrationNumber",
"contactName" : "contactName",
"companyName" : "companyName",
"deletable" : true,
"id" : 5
}
application/json
get /suppliers
companyName,asc
.read:all
{
"number" : 5,
"size" : 1,
"last" : true,
"numberOfElements" : 5,
"totalPages" : 0,
"pageable" : {
"paged" : true,
"pageNumber" : 1,
"offset" : 3,
"pageSize" : 6,
"unpaged" : true
},
"sort" : {
"unsorted" : true,
"sorted" : true,
"empty" : true
},
"content" : [ {
"archived" : true,
"country" : "country",
"expenseType" : {
"expenseTypeDisplayableName" : "expenseTypeDisplayableName",
"defaultVatType" : "defaultVatType",
"expenseTypeName" : "expenseTypeName",
"deprecated" : true,
"dormantAllowable" : true,
"assignable" : true
},
"vatRegistrationNumber" : "vatRegistrationNumber",
"contactName" : "contactName",
"companyName" : "companyName",
"deletable" : true,
"id" : 5
}, {
"archived" : true,
"country" : "country",
"expenseType" : {
"expenseTypeDisplayableName" : "expenseTypeDisplayableName",
"defaultVatType" : "defaultVatType",
"expenseTypeName" : "expenseTypeName",
"deprecated" : true,
"dormantAllowable" : true,
"assignable" : true
},
"vatRegistrationNumber" : "vatRegistrationNumber",
"contactName" : "contactName",
"companyName" : "companyName",
"deletable" : true,
"id" : 5
} ],
"first" : true,
"totalElements" : 6,
"empty" : true
}
application/json
put /suppliers/{supplierId}
application/json
update:all
{
"archived" : true,
"country" : "country",
"expenseType" : {
"expenseTypeDisplayableName" : "expenseTypeDisplayableName",
"defaultVatType" : "defaultVatType",
"expenseTypeName" : "expenseTypeName",
"deprecated" : true,
"dormantAllowable" : true,
"assignable" : true
},
"vatRegistrationNumber" : "vatRegistrationNumber",
"contactName" : "contactName",
"companyName" : "companyName",
"deletable" : true,
"id" : 5
}
application/json
get /vat-types
read:all
{
"vatTypes" : [ {
"name" : "name",
"vatPercent" : 0.8008281904610115
}, {
"name" : "name",
"vatPercent" : 0.8008281904610115
} ]
}
application/json
AccountingPeriodDto
AmountDto
AttachmentDto
BankAccountDto
CreditCardDto
CreditNoteDto
CreditNoteLineItemDto
ExpenseDto
ExpenseLineItemDto
ExpenseTypeDto
ExpenseTypeGroupDto
ExpenseTypesDto
ExpensesTotalDto
PageExpenseDto
PageRecurringExpenseDto
PageSupplierDto
Pageable
PaymentMethodDto
PaymentMethodsDto
PaymentTargetDto
PersonDto
RechargedClientDto
RecurringEventDto
RecurringExpenseDto
Sort
SupplierDto
SupplierPaymentDto
SuppliersDto
VatTypeDto
VatTypesDto
CreditNoteDto
UpExpenseDto
UpExpenseTypeGroupDto
UpPageExpenseDto
UpPageRecurringExpenseDto
UpPageSupplierDto
UpPaymentMethodsDto
UpPaymentTargetDto
UpRecurringEventDto
UpSupplierPaymentDto
UpVatTypesDto
Up