Get cash revenue
Returns the details of a single cash revenue.
Request
GET /api/oauth/v2/resource/cash-revenues/{uuid}
Header
| Header | Value |
|---|---|
Authorization | Bearer {access_token} |
URL parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
uuid | string | Yes | Unique ID of the cash revenue |
Response
Success (200 OK)
json
{
"data": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"date": "2026-06-01",
"receiptNumber": 7,
"formattedReceiptNumber": "BE-2026-0007",
"revenue": 55.00,
"isStorno": false,
"paymentType": "cash",
"type": "income",
"amountGiven": 60.00,
"cachePaymentMethod": null,
"stornoMessage": null,
"customer": {
"id": "f0e1d2c3-b4a5-6789-fedc-ba9876543210",
"firstName": "Anna",
"lastName": "Muster"
},
"invoice": {
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901"
}
}
}Response fields
| Field | Type | Description |
|---|---|---|
data.id | string (UUID) | Unique ID of the cash revenue |
data.date | string | null | Date of the cash revenue (YYYY-MM-DD) |
data.receiptNumber | integer | null | Sequential receipt number |
data.formattedReceiptNumber | string | null | Formatted receipt number |
data.revenue | number | null | Revenue amount |
data.isStorno | boolean | Reversal entry |
data.paymentType | string | null | Payment type |
data.type | string | null | Type of cash revenue |
data.amountGiven | number | null | Amount given by customer |
data.cachePaymentMethod | string | null | Cached payment method |
data.stornoMessage | string | null | Reversal reason |
data.customer | object | null | Assigned customer |
data.customer.id | string (UUID) | Customer ID |
data.customer.firstName | string | First name |
data.customer.lastName | string | Last name |
data.invoice | object | null | Linked invoice (UUID reference only) |
data.invoice.id | string (UUID) | UUID of the linked invoice |
Beispiele
bash
curl -X GET "https://my.offisy.at/api/oauth/v2/resource/cash-revenues/b2c3d4e5-f6a7-8901-bcde-f01234567890" \
-H "Authorization: Bearer {access_token}"Parameter
Zuerst Token anfordern
Possible errors
| Status | Code | Description |
|---|---|---|
| 401 | invalid_client | Invalid or missing access token |
| 403 | insufficient_scope | Scope invoices not present |
| 404 | not_found | Cash revenue not found |