All URIs are relative to https://hlconnect-api.mu.se
| Method | HTTP request | Description |
|---|---|---|
| connector_purchase_info | GET /purchase/info | Retrieve purchase order information |
List[OrderItem] connector_purchase_info(order_id)
Retrieve purchase order information
Returns detailed information about a purchase order including status, asset details, pricing, and fulfillment status. Response varies based on processing status (complete, processing, failed).
- Bearer Authentication (access_token):
import hlconnect_client
from hlconnect_client.models.order_item import OrderItem
from hlconnect_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://hlconnect-api.mu.se
# See configuration.py for a list of all supported configuration parameters.
configuration = hlconnect_client.Configuration(
host = "https://hlconnect-api.mu.se"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: access_token
configuration = hlconnect_client.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with hlconnect_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hlconnect_client.PurchaseInfoApi(api_client)
order_id = 12345 # int | Vendor order ID to retrieve purchase details for. This is the unique identifier assigned by the vendor when placing the order.
try:
# Retrieve purchase order information
api_response = api_instance.connector_purchase_info(order_id)
print("The response of PurchaseInfoApi->connector_purchase_info:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling PurchaseInfoApi->connector_purchase_info: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| order_id | int | Vendor order ID to retrieve purchase details for. This is the unique identifier assigned by the vendor when placing the order. |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successfully retrieved order information. Returns list of order items with complete details. | * X-Environment - |
| 202 | Order is currently processing. Check back later for completion status. | * X-Environment - |
| 401 | Unauthorized - Missing or invalid access token | - |
| 404 | Not Found - No orders found for the specified order ID | - |
| 500 | Internal Server Error - Something went wrong processing the request | - |
| 502 | Bad Gateway - Order processing failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]