Menu
Create Shipping Group
Create a new shipping group for a cart
POST
/v2/carts/{cartID}/shipping-groupsUse it in a workflow
- Add a step and choose the Elastic Path connector.
- Pick the Create Shipping Group action (under Carts).
- Fill in the fields below, then reference the result from later steps as
{{createShippingGroup.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"data": {
"type": "string",
"shipping_type": "string",
"tracking_reference": "string",
"external_ref": "string",
"shipping_price": {
"total": 0,
"base": 0,
"tax": 0,
"fees": 0,
"discount": 0
},
"address": null,
"includes_tax": false,
"delivery_estimate": {
"start": "2025-01-01T00:00:00Z",
"end": "2025-01-01T00:00:00Z"
}
}
}
Response
Returns 201 with an object. Read it in later steps with {{createShippingGroup.response.data.<field>}}.
{
"data": {
"type": "string",
"id": "string",
"relation": "string",
"cart_id": "string",
"order_id": "string",
"shipping_type": "string",
"tracking_reference": "string",
"external_ref": "string",
"address": null,
"delivery_estimate": {
"start": "2025-01-01T00:00:00Z",
"end": "2025-01-01T00:00:00Z"
},
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2025-01-01T00:00:00Z"
},
"included": {
"items": [
{
"type": "string",
"id": "00000000-0000-0000-0000-000000000000",
"quantity": 0,
"product_id": "00000000-0000-0000-0000-000000000000",
"subscription_offering_id": "00000000-0000-0000-0000-000000000000",
"name": "string",
"sku": "string",
"location": "string",
"unit_price": {
"amount": 0,
"currency": "string",
"includes_tax": false
},
"value": {
"amount": 0,
"currency": "string",
"includes_tax": false
},
"discounts": [
{
"amount": {
"amount": null,
"currency": null,
"includes_tax": null
},
"code": "string",
"id": "00000000-0000-0000-0000-000000000000",
"promotion_source": "string",
"is_cart_discount": false,
"ordinal": 0,
"promotion_action_id": "string"
}
],
"links": {}
}
]
},
"errors": [
{
"title": "string",
"status": "string",
"detail": "string",
"source": "string",
"meta": {
"id": "string",
"ids": [
"string"
],
"item_ids": [
"string"
],
"shipping_group_id": "string",
"shipping_group_ids": [
"string"
],
"cart_id": "string",
"code": "string",
"order_id": "string",
"sku": "string",
"email": "name@example.com",
"component_product_id": "00000000-0000-0000-0000-000000000000",
"error-meta-key": "string"
}
}
]
}
Need more? See the Elastic Path guide for connection setup and behaviour shared by every action.
Was this page helpful?