Skip to content
Pasqal Documentation

Get Contract

GET
/api/v1/contracts

Get contract associated with the project_id

Parameters

Query Parameters

project_id
required
string format: uuid

Responses

200

Successful Response

Represents a response with either a list of items or a single item in a single page.

Generic Parameters: - A (TypeVar): The type bound to this class, which can be a single BaseModel, a list of BaseModels, or None.

Usage: - To respond with an unpaginated list of FooResponse items from an API endpoint, ensure that your function returns NonPaginatedResponse[List[FooResponse]].

- To respond with a single `FooResponse` item from an API endpoint,
  make sure that your function returns `NonPaginatedResponse[FooResponse]`
  and that Python recognizes it.
object
data
object
id
required
string format: uuid
project_id
required
string format: uuid
created_at
required
string format: date-time
contract_end_date
string format: date-time
total_credits
required
number
remaining_credits
required
number
qpu_credits
required
number
remaining_qpu_credits
required
number
remaining_qpu_units
number
emu_credits
required
number
remaining_emu_credits
required
number
remaining_emu_units
number
qpu_pricing
object
id
required
string format: uuid
metric
required

An enumeration.

string
Allowed values: shot hour
price
required
number
emulator_pricing
object
id
required
string format: uuid
metric
required

An enumeration.

string
Allowed values: shot hour
price
required
number

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string