Commerce
payments, invoices & products api
The “Create Shipping Zone” API allows adding a new shipping zone.
cURL
curl --request POST \ --url https://services.leadconnectorhq.com/store/shipping-zone \ --header 'Content-Type: application/json' \ --data ' { "altId": "6578278e879ad2646715ba9c", "altType": "location", "name": "North zone", "countries": [ { "code": "US", "states": [ { "code": "VA" } ] } ] } '
{ "status": true, "data": { "altId": "6578278e879ad2646715ba9c", "altType": "location", "name": "North zone", "countries": [ { "code": "US", "states": [ { "code": "VA" } ] } ], "_id": "655b33a82209e60b6adb87a5", "createdAt": "2023-12-12T09:27:42.355Z", "updatedAt": "2023-12-12T09:27:42.355Z", "shippingRates": [ { "altId": "6578278e879ad2646715ba9c", "altType": "location", "name": "North zone", "currency": "USD", "amount": 99.99, "conditionType": "price", "minCondition": 99.99, "maxCondition": 99.99, "shippingCarrierId": "655b33a82209e60b6adb87a5", "_id": "655b33a82209e60b6adb87a5", "shippingZoneId": "655b33a82209e60b6adb87a5", "createdAt": "2023-12-12T09:27:42.355Z", "updatedAt": "2023-12-12T09:27:42.355Z", "description": "Ships next day", "isCarrierRate": true, "percentageOfRateFee": 10.99, "shippingCarrierServices": [ { "name": "Priority Mail Express International", "value": "PriorityMailExpressInternational" } ] } ] }, "message": "Successfully created" }
Location Id or Agency Id
"6578278e879ad2646715ba9c"
location
Name of the shipping zone
"North zone"
List of countries that are available
Show child attributes
Successful response
Status of api action
true
Success message
"Successfully created"
Was this page helpful?