Skip to content
extensions / Commerce extension
PATCH/api/projects/{project_id}/sales/shipment-restrictions/{restriction_id}

Update Shipment Restriction

Updates an existing shipment restriction for a project from the supplied configuration and returns the updated record.

Authentication

Requirement
Required
Credential type
Bearer API key
Scopes
Not specified

Permissions

  • Requests are scoped to the target project_id. API-key requests must use a key with an active connection to that project.

Headers

NameRequiredTypeDetails
AuthorizationYesNot specified
Description: Bearer credential used to authenticate the request.

Path Parameters

NameRequiredTypeDetails
project_idYesNot specified
Description: Target project identifier.
restriction_idYesNot specified
Description: Identifier for restriction.

Query Parameters

Request Body

Schema: UpsertShipmentRestrictionRequest

FieldRequiredTypeDetails
nameNostring
Description: Display name.
descriptionNostring
Description: Long-form description text.
is_activeNoboolean
Description: Boolean flag.
restricted_carriersNoJSON
Description: JSON object.
restricted_methodsNoJSON
Description: JSON object.
show_messageNoboolean
Description: Boolean flag.
restriction_messageNostring
Description: Text value.
show_message_onceNoboolean
Description: Boolean flag.
conditionsNoJSON
Description: JSON object.
admin_area_onlyNoboolean
Description: Boolean flag.
customer_rolesNoJSON
Description: JSON object.
days_of_weekNoJSON
Description: JSON object.
time_fromNochrono::NaiveTime
Description: Value used by this operation.
time_toNochrono::NaiveTime
Description: Value used by this operation.
apply_with_coupon_codesNoJSON
Description: JSON object.
apply_with_cart_rulesNoJSON
Description: JSON object.
do_not_apply_with_coupon_codesNoJSON
Description: JSON object.
do_not_apply_with_cart_rulesNoJSON
Description: JSON object.

Response Body

Example 200 response

json
{
  "id": 1,
  "project_id": 1,
  "name": "Example",
  "description": "string",
  "is_active": "string",
  "restricted_carriers": [],
  "restricted_methods": [],
  "show_message": "string",
  "restriction_message": "string",
  "show_message_once": "string",
  "conditions": [],
  "admin_area_only": "string",
  "customer_roles": [],
  "days_of_week": "string",
  "time_from": "string",
  "time_to": "string",
  "apply_with_coupon_codes": [],
  "apply_with_cart_rules": [],
  "do_not_apply_with_coupon_codes": [],
  "do_not_apply_with_cart_rules": [],
  "created_at": "2026-01-01T00:00:00Z",
  "updated_at": "2026-01-01T00:00:00Z"
}

Errors

404 not_found

Availability

Available in
v0.1.0
Available since
v0.1.0
Implementation
Available
Deprecation
Not specified
Rate limits
Not specified