HighLevel: Create Shipping Rate
HighLevel store.createShippingRate: arguments, response, policy and SDK examples.
← Store operations · Get started
Operation gohighlevel.create_shipping_rate
Provider route: POST /store/shipping-zone/{shippingZoneId}/shipping-rate. Alter supplies the connection’s credentials and routing.
Call through Alter
Section titled “Call through Alter”Install @alter-ai/sdk @alter-ai/gohighlevel with npm, or alter-sdk-gohighlevel with pip. Supply your connected customer’s grant ID and the arguments described below.
import { App } from "@alter-ai/sdk";import { HighLevelIntegration } from "@alter-ai/gohighlevel";
async function execute(input: Parameters<HighLevelIntegration["store"]["createShippingRate"]>[0]) { const app = new App({ apiKey: process.env.ALTER_API_KEY! }); try { const provider = new HighLevelIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! }); const call = await provider.store.createShippingRate(input); const result = await call.wait(); return result.bodyJson(); } finally { await app.close(); }}import osfrom alter_sdk import Appfrom alter_sdk_gohighlevel import HighLevelIntegration
async def execute(arguments): async with App(api_key=os.environ["ALTER_API_KEY"]) as app: provider = HighLevelIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]}) call = await provider.store.create_shipping_rate(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
path | object | Required within parent | Additional keys: not allowed |
path.shippingZoneId | string | Required within parent | |
body | Model | Required within parent | Expand Create Shipping Rate — request body — body |
Referenced models: Create Shipping Rate — request body — body
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | Model | Root | Expand Get Shipping Rate — response body |
Referenced models: Get Shipping Rate — response body
Schemas
Section titled “Schemas”Create Shipping Rate — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
altId | string | Required within parent | Location Id or Agency Id |
altType | string | Required within parent | One of: location |
amount | number | Required within parent | The amount of the shipping rate if it is normal rate (0 means free ). Fixed Handling fee if it is a carrier rate (it will add to the carrier rate). |
conditionType | string | Required within parent | Type of condition to provide the conditional pricing One of: none, price, weight |
currency | string | Required within parent | The currency of the amount of the rate / handling fee |
description | string | Optional | Delivery description |
isCarrierRate | boolean | Optional | is this a carrier rate |
maxCondition | number | Required within parent | Maximum condition for applying this price. set 0 or null if there is no maximum |
minCondition | number | Required within parent | Minimum condition for applying this price. set 0 or null if there is no minimum |
name | string | Required within parent | Name of the shipping zone |
percentageOfRateFee | number | Optional | Percentage of rate fee if it is a carrier rate. |
shippingCarrierId | string | Required within parent | Shipping carrier id |
shippingCarrierServices | array | Optional | An array of items |
shippingCarrierServices[] | Model | Each item | Expand Create Shipping Carrier — request body — body services item |
Referenced models: Create Shipping Carrier — request body — body services item
Get Shipping Rate — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
data | JSON | Required within parent | Shipping zone data |
data (allOf 1) | Model | All variants apply | Expand List Shipping Rates — response body — data item |
message | string | Optional | Success message |
status | boolean | Required within parent | Status of api action |
Referenced models: List Shipping Rates — response body — data item
Create Shipping Carrier — request body — body services item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
name | string | Required within parent | Name of the shipping carrier service |
value | string | Required within parent | Value of the shipping carrier service |
List Shipping Rates — response body — data item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
_id | string | Required within parent | The unique identifier for the product. |
altId | string | Required within parent | Location Id or Agency Id |
altType | string | Required within parent | Known values: location |
amount | JSON | Required within parent | |
amount (anyOf 1) | number | Alternative | The amount of the shipping rate if it is normal rate (0 means free ). Fixed Handling fee if it is a carrier rate (it will add to the carrier rate). |
amount (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
conditionType | string | Required within parent | Type of condition to provide the conditional pricing Known values: none, price, weight |
createdAt | string | Required within parent | created at |
currency | string | Required within parent | The currency of the amount of the rate / handling fee |
description | string | Optional | Delivery description |
isCarrierRate | boolean | Optional | is this a carrier rate |
maxCondition | JSON | Required within parent | |
maxCondition (anyOf 1) | number | Alternative | Maximum condition for applying this price. set 0 or null if there is no maximum |
maxCondition (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
minCondition | JSON | Required within parent | |
minCondition (anyOf 1) | number | Alternative | Minimum condition for applying this price. set 0 or null if there is no minimum |
minCondition (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
name | string | Required within parent | Name of the shipping zone |
percentageOfRateFee | JSON | Optional | |
percentageOfRateFee (anyOf 1) | number | Alternative | Percentage of rate fee if it is a carrier rate. |
percentageOfRateFee (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
shippingCarrierId | string | Required within parent | Shipping carrier id |
shippingCarrierServices | array | Optional | An array of items |
shippingCarrierServices[] | Model | Each item | Expand Create Shipping Carrier — request body — body services item |
shippingZoneId | string | Required within parent | The unique identifier for the shipping zone. |
updatedAt | string | Required within parent | updated at |
Referenced models: Create Shipping Carrier — request body — body services item
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: gohighlevel.create_shipping_rate. Catalog operation: create-shipping-rate. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.
Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.
Pinned headers: {"Version": "v3"}