---
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.

---

[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)
