Services¶
Access via client.services.
signtraker.services.ServicesClient ¶
ServicesClient(api_key: Optional[str] = None, base_url: Optional[str] = None, *, subdomain: Optional[str] = None, timeout_seconds: Optional[float] = None, max_retries: Optional[int] = None, retry_backoff_seconds: Optional[float] = None)
Bases: BaseClient
Client for the /api/services endpoints.
Source code in signtraker/base_client.py
list_services ¶
list_services(*, filter: Optional[str] = None, top: Optional[int] = None, skip: Optional[int] = None, orderby: Optional[ODataValue] = None, select: Optional[ODataValue] = None) -> List[Dict[str, Any]]
List service orders.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filter
|
Optional[str]
|
OData |
None
|
top
|
Optional[int]
|
OData |
None
|
skip
|
Optional[int]
|
OData |
None
|
orderby
|
Optional[ODataValue]
|
OData |
None
|
select
|
Optional[ODataValue]
|
OData |
None
|
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
The list of service order records. |
Raises:
| Type | Description |
|---|---|
AuthenticationError
|
If the API key is invalid. |
SignTrakerError
|
For other API errors. |
Source code in signtraker/services.py
get_service ¶
Get a single service order by ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
service_id
|
int
|
Unique identifier of the service order. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
The service order record. |
Raises:
| Type | Description |
|---|---|
NotFoundError
|
If the service order does not exist. |
AuthenticationError
|
If the API key is invalid. |
SignTrakerError
|
For other API errors. |
Source code in signtraker/services.py
create_service ¶
Create a service order.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
service
|
Dict[str, Any]
|
The payload, including |
required |
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
The created service order record(s). The API returns a list. |
Raises:
| Type | Description |
|---|---|
ValidationError
|
If the payload is invalid. |
AuthenticationError
|
If the API key is invalid. |
SignTrakerError
|
For other API errors. |