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
Fees
Create a fee
Creates a fee.
POST
/
matters
/
{matterId}
/
fees
curl --request POST \
--url https://api.smokeball.com/matters/{matterId}/fees \
--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": "750eb5c5-ac0b-7d11-4997-e0ce9d8896c8",
"invoiceId": "750eb5c5-ac0b-7d11-4997-e0ce9d8896c8",
"activityCode": "PRT",
"feeType": 0,
"feeDate": "2022-07-01",
"subject": "Review contract",
"description": "Print documents",
"duration": 60,
"durationWorked": 50,
"rate": 350,
"tax": 35,
"taxInclusive": false,
"finalized": false,
"isWrittenOff": false,
"isBillable": false,
"isInvoicedExternally": false,
"sourceItems": [
{
"description": "Print document",
"duration": 5,
"isBillable": false
}
],
"createdFromActivityId": "504b9f77-20c7-4dee-8227-d3007c8f6cea"
}'
{
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET"
}
Path Parameters
Body
Response
202
application/json
When request is accepted. Returns a hypermedia 'Link' object of the fee to be created.
The response is of type object
.
curl --request POST \
--url https://api.smokeball.com/matters/{matterId}/fees \
--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": "750eb5c5-ac0b-7d11-4997-e0ce9d8896c8",
"invoiceId": "750eb5c5-ac0b-7d11-4997-e0ce9d8896c8",
"activityCode": "PRT",
"feeType": 0,
"feeDate": "2022-07-01",
"subject": "Review contract",
"description": "Print documents",
"duration": 60,
"durationWorked": 50,
"rate": 350,
"tax": 35,
"taxInclusive": false,
"finalized": false,
"isWrittenOff": false,
"isBillable": false,
"isInvoicedExternally": false,
"sourceItems": [
{
"description": "Print document",
"duration": 5,
"isBillable": false
}
],
"createdFromActivityId": "504b9f77-20c7-4dee-8227-d3007c8f6cea"
}'
{
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET"
}
Assistant
Responses are generated using AI and may contain mistakes.