Orders¶
Access via client.orders.
signtraker.orders.OrdersClient ¶
OrdersClient(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/orders endpoints.
Source code in signtraker/base_client.py
list_orders ¶
list_orders(*, 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 signage 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 signage order records. |
Raises:
| Type | Description |
|---|---|
AuthenticationError
|
If the API key is invalid. |
SignTrakerError
|
For other API errors. |
Source code in signtraker/orders.py
get_order ¶
Get a single signage order by ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
order_id
|
int
|
Unique identifier of the signage order. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
The signage order record. |
Raises:
| Type | Description |
|---|---|
NotFoundError
|
If the order does not exist. |
AuthenticationError
|
If the API key is invalid. |
SignTrakerError
|
For other API errors. |
Source code in signtraker/orders.py
create_order ¶
Create a signage order.
Note
This functionality applies to National Accounts only; individual Licensee portals do not have Order Presets available.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
order
|
Dict[str, Any]
|
The order payload. Required fields include |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
The create result ( |
Dict[str, Any]
|
|
Raises:
| Type | Description |
|---|---|
ValidationError
|
If the payload is invalid. |
AuthenticationError
|
If the API key is invalid. |
SignTrakerError
|
For other API errors. |
Source code in signtraker/orders.py
request_removal ¶
Request removal of an installed signage order.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
order_id
|
int
|
Unique identifier of the signage order. |
required |
removal_request
|
Optional[Dict[str, Any]]
|
Optional payload with |
None
|
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
The result payload (typically |
Raises:
| Type | Description |
|---|---|
NotFoundError
|
If the order does not exist. |
ValidationError
|
If the payload is invalid. |
AuthenticationError
|
If the API key is invalid. |
SignTrakerError
|
For other API errors. |