- create_shipping_rate - Create a rate
Create a rate
from unified_python_sdk import UnifiedTo
from unified_python_sdk.models import shared
with UnifiedTo(
security=shared.Security(
jwt="<YOUR_API_KEY_HERE>",
),
) as unified_to:
res = unified_to.rate.create_shipping_rate(request={
"shipping_rate": {},
"connection_id": "<id>",
})
assert res.shipping_rate is not None
# Handle response
print(res.shipping_rate)| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.CreateShippingRateRequest | ✔️ | The request object to use for the request. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.CreateShippingRateResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.SDKError | 4XX, 5XX | */* |