GET
/
expense
/
{id}
Get Expense
curl --request GET \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/expense/{id} \
  --header 'Authorization: Bearer <token>'
{
  "message": "Expense retrieved successfully",
  "expense": {
    "id": "expense-uuid-123",
    "title": "Mavins sabi girl",
    "type": "product",
    "amount": 100,
    "amountUSD": 100,
    "currency": "USD",
    "conversionRate": 1,
    "transactionDate": "2023-03-14",
    "memo": "Some memo",
    "createdAt": "2023-03-14T10:30:00.000Z",
    "updatedAt": "2023-03-14T10:30:00.000Z"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Expense ID

Query Parameters

include
string

Comma-separated related entities to include (Artist, Product, Asset, Split)

Response

200
application/json

Success

The response is of type object.