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
Update an expense on a matter
Updates a specified expense.
PUT
/
matters
/
{matterId}
/
expenses
/
{id}
curl --request PUT \
--url https://api.smokeball.com/matters/{matterId}/expenses/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json-patch+json' \
--header 'x-api-key: <api-key>' \
--data '{
"updatedByUserId": "750eb5c5-ac0b-7d11-4997-e0ce9d8896c8",
"staffId": "47efff74-3e4b-45b3-bddf-affc6649db0b",
"invoiceId": "fdb766bc-eb20-4bc1-9417-08b51a7b2286",
"expenseDate": "2022-07-01",
"activityCode": "PRT",
"subject": "Review contract",
"description": "Print documents",
"quantity": 3,
"price": 350.32,
"tax": 90,
"taxInclusive": false,
"finalized": false,
"isWrittenOff": false,
"isBillable": false,
"isInvoicedExternally": false,
"assignToFirmOwner": true
}'
{
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET"
}
Body
Response
202
application/json
When request is accepted. Returns a hypermedia 'Link' object of the expense to be updated.
The response is of type object
.
curl --request PUT \
--url https://api.smokeball.com/matters/{matterId}/expenses/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json-patch+json' \
--header 'x-api-key: <api-key>' \
--data '{
"updatedByUserId": "750eb5c5-ac0b-7d11-4997-e0ce9d8896c8",
"staffId": "47efff74-3e4b-45b3-bddf-affc6649db0b",
"invoiceId": "fdb766bc-eb20-4bc1-9417-08b51a7b2286",
"expenseDate": "2022-07-01",
"activityCode": "PRT",
"subject": "Review contract",
"description": "Print documents",
"quantity": 3,
"price": 350.32,
"tax": 90,
"taxInclusive": false,
"finalized": false,
"isWrittenOff": false,
"isBillable": false,
"isInvoicedExternally": false,
"assignToFirmOwner": true
}'
{
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET"
}
Assistant
Responses are generated using AI and may contain mistakes.