---
title: "Sync Commerce Scopes"
method: POST
path: "/scope-tree/commerce"
tags: ["Business Configuration"]
---

# Sync Commerce Scopes

`POST /scope-tree/commerce`

Synchronizes scope data from Adobe Commerce and updates the local scope tree.

## Headers

- `x-gw-ims-org-id` string, required

## Request body

- object
  - `commerceBaseUrl` string, required
  - `commerceEnv` 'paas' | 'saas'

## Response `200`

The synchronized Commerce scope tree.

- object
  - `scopes` ScopeNode[], required
    - `id` string, required
    - `code` string, required
    - `label` string, required
    - `level` string, required
    - `is_editable` boolean, required
    - `is_final` boolean, required
    - `is_removable` boolean, required
    - `commerce_id` number
    - `children` ScopeNode[]
  - `synced` unknown, required

## Other responses

- `203` — The cached scope tree returned when Commerce scopes could not be freshly fetched.
- `400` — The request is invalid or could not be parsed.
- `401` — You are not authorized to access this resource. Ensure the IMS token and the x-gw-ims-org-id header are correctly set and valid.
- `403` — The access token is valid, but it is not allowed to access the requested organization or operation.
- `500` — An unexpected server error occurred.

## Changes

- **2026-06-12** `59e3a5482a5b` — 1 breaking, 3 info
  - request property `commerceEnv` was restricted to a list of enum values
  - added the new `paas` enum value to the request property `commerceEnv`
  - added the new `saas` enum value to the request property `commerceEnv`
  - the `commerceEnv` request property's minLength was decreased from `1` to `0`

[Change history](https://skmtc.dev/adobe/apis/app-management-api/changes/scope-tree/commerce/post.md)

---

[API](https://skmtc.dev/adobe/apis/app-management-api.md) · [All operations](https://skmtc.dev/adobe/apis/app-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/adobe/app-management-api/revisions/4b39b5956be9/schema)
