Skip to main content
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"
  }
}
Get Expense Description:
The /expense/{id} endpoint retrieves detailed information about a specific expense record.
Method:
GET
Path Parameter:
ParameterTypeDescription
idstringThe unique identifier of the expense record
Query Parameters:
ParameterTypeDescription
include (Optional)stringComma-separated related entities to include (Artist, Product, Asset, Split)

Authentication

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

Path Parameters

ParameterTypeInRequiredDescription
idstringpathāœ…Expense ID

Query Parameters

ParameterTypeInRequiredDescription
includestringqueryāŒComma-separated related entities to include (Artist, Product, Asset, Split)

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

Query Parameters

include
string

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

Response

Success

message
string
expense
object
⌘I