Create Shipping Option
POST
/admin/shipping-options
Shipping Options
Request Request Example
JavaScript
Shell
Java
Swift
curl --location -g --request POST '{{BASE_URL}}/admin/shipping-options' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": {
"label": "string",
"description": "string",
"code": "string"
},
"name": "string",
"service_zone_id": "string",
"shipping_profile_id": "string",
"provider_id": "string",
"rules": [
{
"attribute": "customer_group",
"operator": "gt",
"value": "cusgroup_123"
}
],
"data": {},
"price_type": "flat",
"prices": [
{
"currency_code": "usd",
"amount": 0
}
]
}'
Response Response Example
200 - Example 1
{
"shipping_option": {
"provider": {
"id": "string",
"is_enabled": true
},
"type": {
"id": "string",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"label": "string",
"description": "string",
"code": "string",
"shipping_option_id": "string"
},
"shipping_profile": {
"id": "string",
"name": "string",
"type": "string",
"metadata": {},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z"
},
"id": "string",
"name": "string",
"service_zone_id": "string",
"service_zone": {},
"provider_id": "string",
"shipping_option_type_id": "string",
"shipping_profile_id": "string",
"rules": [
{
"id": "string",
"attribute": "is_return",
"value": "string",
"shipping_option_id": "string",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"operator": "gt"
}
],
"prices": [
{
"price_rules": [
{
"id": "string",
"attribute": "string",
"price_id": "string",
"priority": 0,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"operator": "gt",
"value": "string"
}
],
"rules_count": 0,
"id": "string",
"title": "string",
"currency_code": "usd",
"amount": 0,
"raw_amount": {},
"min_quantity": 0,
"max_quantity": 0,
"price_set_id": "string",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z"
}
],
"metadata": {},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"price_type": "calculated",
"data": {}
}
}
Request
Query Params
fields
stringÂ
fields
+
it will be added to the default fields, using -
will remove it from the default fields. without prefix it will replace the entire default fields.Body Params application/json
Responses
Modified at 2025-06-17 04:10:32