curl --request GET \
--url https://api.meetcampfire.com/coa/api/v1/bill/{bill_id}/empty-transaction-default-department-tags \
--header 'Authorization: <api-key>'{
"department": {
"id": 123,
"name": "<string>"
},
"tags": [
{
"id": 123,
"name": "<string>",
"group": 123,
"group_name": "<string>"
}
]
}Get the default department and tags from the bill line with the largest total amount.
This endpoint is used to provide default values when creating empty transactions (marking as paid without a transaction). The total amount is calculated as: amount + tax. If multiple lines have the same total amount, the line with the lowest ID (first created) is selected. The department and tags are retrieved directly from the bill line.
curl --request GET \
--url https://api.meetcampfire.com/coa/api/v1/bill/{bill_id}/empty-transaction-default-department-tags \
--header 'Authorization: <api-key>'{
"department": {
"id": 123,
"name": "<string>"
},
"tags": [
{
"id": 123,
"name": "<string>",
"group": 123,
"group_name": "<string>"
}
]
}