Skip to content

Results are limited to the current section: Cloud services

Product news

Get Credits

GET
/api/v1/organisations/{organisation_id}/credits
curl --request GET \
--url 'https://example.com/api/v1/organisations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/credits?include_expired=false&limit=100&offset=0&order_by=created_at&order_by_direction=ASC' \
--header 'Authorization: Bearer <token>'

Returns a paginated list of an organisation's allocated credits.

Expired allocations are excluded unless include_expired is true.

organisation_id
required
Organisation Id
string format: uuid
backend_type
Any of:
BackendType
string
Allowed values: QPU EMU
include_expired
Include Expired
boolean
limit
Limit
integer
default: 100 > 0 < 101
offset
Offset
integer
0
order_by
Order By
string
default: created_at
order_by_direction
SortDirection
string
default: DESC
Allowed values: ASC DESC

Successful Response

Media typeapplication/json
HeaderPaginatedResponse[ProducedOrganisationCreditResponse]
object
status
JSendStatus
string
default: success
Allowed values: success fail error
message
Message
string
default: OK.
code
Code
string
default: 200
data
required
Data
Array<object>
ProducedOrganisationCreditResponse

A credit allocation with the part not yet assigned to projects.

object
id
required
Id
string format: uuid
amount
required
Amount
number
backend_type
required
BackendType
string
Allowed values: QPU EMU
expires_at
required
Any of:
string format: date-time
created_at
required
Created At
string format: date-time
updated_at
required
Updated At
string format: date-time
unassigned_credits
required
Unassigned Credits
number
pagination
required
JSendPagination

Pagination information

object
total
required
Total
integer
start
required
Start
integer
end
required
End
integer
Example
{
"status": "success",
"message": "OK.",
"code": "200",
"data": [
{
"backend_type": "QPU"
}
]
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}