Skip to main content
GET
/
billing
/
org
/
v1
/
expenses
/
{id}
Get a single Expense
curl --request GET \
  --url https://api.gcore.com/billing/org/v1/expenses/{id} \
  --header 'Authorization: <api-key>'
{
  "id": 123,
  "client_id": 123,
  "payer_id": 123,
  "client": {
    "id": 123,
    "company_name": "<string>"
  },
  "comment": "<string>",
  "for_date": "2023-11-07T05:31:56Z",
  "period_range": {
    "start": "2023-11-07T05:31:56Z",
    "end": "2023-11-07T05:31:56Z"
  },
  "calc_rule_type": "<string>",
  "currency": {
    "id": 123,
    "char_code": "<string>",
    "symbol": "<string>"
  },
  "money_value": "<string>",
  "tax_value": "<string>",
  "tax_rate": "<string>",
  "usage": {
    "amount": "<string>",
    "unit_name": "<string>"
  },
  "metric_ext_name": "<string>",
  "region": {
    "id": 123,
    "name": "<string>",
    "external_name": "<string>"
  },
  "discount_value": "<string>",
  "discount": {
    "id": 123,
    "relative_value": "<string>",
    "comment": "<string>"
  },
  "deleted": true,
  "description": "<string>",
  "product_category": {
    "id": 123,
    "name": "<string>"
  },
  "product": {
    "id": 123,
    "name": "<string>",
    "internal_name": "<string>"
  },
  "addendum": {
    "id": 123,
    "active_range": {
      "start": "2023-11-07T05:31:56Z",
      "end": "2023-11-07T05:31:56Z"
    },
    "status": "upcoming"
  },
  "plan": {
    "id": 123,
    "name": "<string>"
  },
  "feature": {
    "id": 123,
    "name": "<string>",
    "erp_sku_id": "<string>"
  },
  "subscription": {
    "id": 123,
    "active_range": {
      "start": "2023-11-07T05:31:56Z",
      "end": "2023-11-07T05:31:56Z"
    }
  },
  "plan_item": {
    "id": 123,
    "default": true,
    "comment": "<string>",
    "description": "<string>"
  },
  "invoices": [
    {
      "invoice_id": 123,
      "invoice_date": "2023-12-25",
      "invoice_item_id": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

id
integer
required

Response

200 - application/json
id
integer
required
client_id
integer
required

The ID of the client associated with the addendum.

payer_id
integer
required

The ID of the payer associated with the expense.

client
object
required

The client associated with the addendum.

comment
string | null
required

Public comment

for_date
string<date-time>
required

Date of expense

period_range
object
required

The time range for which the expense is calculated. Date-time range with start and end fields.

calc_rule_type
string
required

Type of the calculation rule applied to the expense.

currency
object
required

The currency used in the expense.

money_value
string<decimal>
required

The monetary value of the expense.

tax_value
string<decimal>
required

The monetary value of the tax applied to the expense.

tax_rate
string<decimal>
required

The tax rate applied to the expense.

usage
object
required

Usage details associated with the expense.

metric_ext_name
string
required

Metric code of the feature associated with the expense.

region
object
required

The region associated with the expense.

discount_value
string<decimal>
required

The monetary value of the discount applied to the expense.

discount
object
required

The discount applied to the expense, if any.

deleted
boolean
required

Indicates whether the expense has been deleted.

description
string
required

Description of the expense.

product_category
object
required

The product category associated with the feature of the expense.

product
object
required

The product associated with the expense.

addendum
object
required

The addendum associated with the expense.

plan
object
required

The plan associated with the expense.

feature
object
required

The feature associated with the expense.

subscription
object
required

The subscription associated with the expense.

plan_item
object
required

The plan item associated with the expense.

invoices
object[]
required

List of invoice item IDs associated with the expense.

I