Skip to main content
PUT
/
expense
/
{id}
Update Expense
curl --request PUT \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/expense/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "<string>",
  "type": "product",
  "amount": 123,
  "amountUSD": 123,
  "currency": "<string>",
  "conversionRate": 123,
  "transactionDate": "2023-12-25",
  "split": [
    {}
  ],
  "memo": "<string>",
  "files": {}
}'
{
  "message": "Expense updated successfully"
}
Update Expense Description:
The /expense/{id} endpoint allows updating details of a specific expense record.
Method:
PUT
Path Parameter:
ParameterTypeDescription
idstringThe unique identifier of the expense record
Request Payload:
ParameterTypeDescription
titlestringUpdated title/description
typestringUpdated expense type
amountnumberUpdated expense amount
amountUSDnumberUpdated USD amount
currencystringUpdated currency
transactionDatestringUpdated transaction date
splitarrayUpdated split information
memostringUpdated notes

Authentication

This endpoint requires authentication. Include your bearer token in the Authorization header.

Path Parameters

ParameterTypeInRequiredDescription
idstringpathExpense ID

Request Body

Request Schema

FieldTypeRequiredDescription
titlestring
typestring
amountnumber
amountUSDnumber
currencystring
conversionRatenumber
transactionDatestring
splitarray
memostring
filesobject

Responses

✅ 200 - Success

⚠️ 401 - Unauthorized

⚠️ 404 - Not Found

❌ 500 - Internal Server Error

Tags

Expense

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

id
string
required

Expense ID

Body

application/json
title
string
type
enum<string>
Available options:
product,
artist,
asset,
general,
marketing,
production,
legal,
administrative
amount
number
amountUSD
number
currency
string
conversionRate
number
transactionDate
string<date>
split
object[]
memo
string
files
object

Response

Success

message
string
expense
object
I