Returns a specified invoice
GET/v1/tenants/:tenantUid/invoices/:invoiceUid
Returns a specified invoice
Request
Path Parameters
Specify the tenant uid
Specify the invoice uid
Responses
- 200
(empty)
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
Array [
]
Array [
]
metadata
object
ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
annotations
object
Annotations are system generated key value metadata for the resource. As an input certain annotations like description can be set.
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
labels
object
Labels are key value data to organize and categorize resources. Providing spectro__tag as value for a label is considered as a kubernetes compliant tag
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
Name of the resource.
UID is the unique identifier generated for the resource. This is not an input field for any request.
spec
Invoice specification
address
object
Tenant Address
billingPeriod
Invoice billing period object
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
credits
Invoice credits object
Credits allocated for import clusters
Credits allocated for managed clusters
Environment type [Trial,MonthlyOnDemand,AnnualSubscription,OnPrem]
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
Possible values: [usd
]
plan
Invoice plan object
freeCredits
undefined[]
List of free credits
planCredit
Plan Credit
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
Possible values: [Pure
, Alloy
]
Total used cpu core hours
Possible values: [Trial
, MonthlyOnDemand
, AnnualSubscription
]
slaCredits
undefined[]
List of SLA credits
planCredit
Plan Credit
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
Possible values: [Pure
, Alloy
]
Total used cpu core hours
status
Invoice Status
Total billable amount
productInvoice
Product invoice object
alloy
Product invoice data
Allocated credits
Total amount
Credits to be billed
Credits that are exceeds the allocated credits
Applied discount
Allocated free credits
Allowed overage limit in percentage
Tier name
Tier price
Total used credits
Used credits
pure
Product invoice data
Allocated credits
Total amount
Credits to be billed
Credits that are exceeds the allocated credits
Applied discount
Allocated free credits
Allowed overage limit in percentage
Tier name
Tier price
Total used credits
Used credits
projects
undefined[]
List of project invoices
Billing amount for the project
Name of the project
Project identifier
usage
Project usage object
alloy
Project usage data object
Billing amount for the project
Tier price based on the usage
Project used credits
pure
Project usage data object
Billing amount for the project
Tier price based on the usage
Project used credits
states
undefined[]
List of invoice states
Payment status message
Possible values: [Paid
, PaymentPending
, PaymentInProgress
, PaymentFailed
]
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
Stripe invoice uid
{
"metadata": {
"annotations": {},
"creationTimestamp": "2024-04-16T17:49:02.880Z",
"deletionTimestamp": "2024-04-16T17:49:02.880Z",
"labels": {},
"lastModifiedTimestamp": "2024-04-16T17:49:02.880Z",
"name": "string",
"uid": "string"
},
"spec": {
"address": {
"addressLine1": "string",
"addressLine2": "string",
"city": "string",
"country": "string",
"pincode": "string",
"state": "string"
},
"billingPeriod": {
"end": "2024-04-16T17:49:02.880Z",
"start": "2024-04-16T17:49:02.880Z"
},
"credits": {
"alloyFreeCredits": 0,
"pureFreeCredits": 0
},
"envType": "string",
"month": "2024-04-16T17:49:02.880Z",
"paymentUnit": "usd",
"plan": {
"freeCredits": [
{
"planCredit": {
"cpuCoreHours": 0,
"creditUid": "string",
"expiry": "2024-04-16T17:49:02.880Z",
"name": "string",
"start": "2024-04-16T17:49:02.880Z",
"type": "Pure"
},
"totalCpuCoreHours": 0
}
],
"plantype": "Trial",
"slaCredits": [
{
"planCredit": {
"cpuCoreHours": 0,
"creditUid": "string",
"expiry": "2024-04-16T17:49:02.880Z",
"name": "string",
"start": "2024-04-16T17:49:02.880Z",
"type": "Pure"
},
"totalCpuCoreHours": 0
}
]
}
},
"status": {
"billableAmount": 0,
"productInvoice": {
"alloy": {
"allocatedCredits": 0,
"amount": 0,
"billableCredits": 0,
"breachedCredits": 0,
"discount": 0,
"freeCredits": 0,
"overageLimitPercentage": 0,
"tierName": "string",
"tierPrice": 0,
"totalUsedCredits": 0,
"usedCredits": 0
},
"pure": {
"allocatedCredits": 0,
"amount": 0,
"billableCredits": 0,
"breachedCredits": 0,
"discount": 0,
"freeCredits": 0,
"overageLimitPercentage": 0,
"tierName": "string",
"tierPrice": 0,
"totalUsedCredits": 0,
"usedCredits": 0
}
},
"projects": [
{
"amount": 0,
"projectName": "string",
"projectUid": "string",
"usage": {
"alloy": {
"amount": 0,
"tierPrice": 0,
"usedCredits": 0
},
"pure": {
"amount": 0,
"tierPrice": 0,
"usedCredits": 0
}
}
}
],
"states": [
{
"paymentMsg": "string",
"state": "Paid",
"timestamp": "2024-04-16T17:49:02.880Z"
}
],
"stripeInvoiceId": "string"
}
}