Documentation
- Getting Started
- Authentication
- Making Requests
- Resource Creation
- Searching
- Plugins
- Webhooks
Tutorials
APIs
- Activity Codes
- Archive
- Authorization
- Bank Accounts
- Contacts
- Events
- Expenses
- Fees
- Files
- Firm
- Firm Users
- Folders
- Invoices
- Layout Designs
- Layout Matter Items
- Matter Billing Configuration
- Matter Items
- Matter Types
- Matters
- Memos
- Notifications
- Plugins
- Referral Types
- Relationships
- Roles
- Staff
- Stages
- Subscription Payments
- Subscription Promotions
- Subscriptions
- Tasks
- Users
- Webhooks
Expenses
Get expenses
Returns a list of expenses.
GET
/
matters
/
{matterId}
/
expenses
curl --request GET \
--url https://api.smokeball.com/matters/{matterId}/expenses \
--header 'Authorization: <api-key>' \
--header 'x-api-key: <api-key>'
{
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET",
"self": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET"
},
"value": [
{
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET",
"self": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "<string>"
},
"versionId": "23d2a4bc-8529-462e-8560-dfbf4fa24e49",
"createdByUserId": "8a7f40ea-4123-4ebe-bb05-e9b4b666e706",
"staff": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "<string>"
},
"matter": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "<string>"
},
"staffId": "<string>",
"matterId": "<string>",
"invoiceId": "fdb766bc-eb20-4bc1-9417-08b51a7b2286",
"origin": "<string>",
"activityCode": "PRT",
"utbmsTaskCode": "E101",
"subject": "Review contract",
"description": "Print documents",
"expenseDate": "2022-07-01",
"quantity": 3,
"price": 350.32,
"amount": 900.21,
"amountExcTax": 810.01,
"amountIncTax": 900.21,
"tax": 90,
"taxInclusive": false,
"finalized": false,
"isWrittenOff": false,
"isBillable": false,
"isInvoicedExternally": false,
"isDeleted": false
}
],
"offset": 123,
"limit": 123,
"size": 123,
"first": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "<string>"
},
"previous": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "<string>"
},
"next": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "<string>"
},
"last": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "<string>"
}
}
Path Parameters
Query Parameters
Required range:
0 <= x <= 2147483647
Required range:
1 <= x <= 500
Returns expenses updated since a specified time (.net ticks representation of the UTC datetime).
Response
200 - application/json
When request is successful. Returns a list of 'Expense' objects.
The response is of type object
.
curl --request GET \
--url https://api.smokeball.com/matters/{matterId}/expenses \
--header 'Authorization: <api-key>' \
--header 'x-api-key: <api-key>'
{
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET",
"self": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET"
},
"value": [
{
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET",
"self": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "<string>"
},
"versionId": "23d2a4bc-8529-462e-8560-dfbf4fa24e49",
"createdByUserId": "8a7f40ea-4123-4ebe-bb05-e9b4b666e706",
"staff": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "<string>"
},
"matter": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "<string>"
},
"staffId": "<string>",
"matterId": "<string>",
"invoiceId": "fdb766bc-eb20-4bc1-9417-08b51a7b2286",
"origin": "<string>",
"activityCode": "PRT",
"utbmsTaskCode": "E101",
"subject": "Review contract",
"description": "Print documents",
"expenseDate": "2022-07-01",
"quantity": 3,
"price": 350.32,
"amount": 900.21,
"amountExcTax": 810.01,
"amountIncTax": 900.21,
"tax": 90,
"taxInclusive": false,
"finalized": false,
"isWrittenOff": false,
"isBillable": false,
"isInvoicedExternally": false,
"isDeleted": false
}
],
"offset": 123,
"limit": 123,
"size": 123,
"first": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "<string>"
},
"previous": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "<string>"
},
"next": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "<string>"
},
"last": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "<string>"
}
}
Assistant
Responses are generated using AI and may contain mistakes.