---
title: "Store Commerce Association"
method: POST
path: "/association"
tags: ["Association"]
---

# Store Commerce Association

`POST /association`

Persists the Commerce instance the app is associated with so runtime actions can later retrieve it via the SDK helpers.

## Headers

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

## Request body

- object
  - `commerceBaseUrl` string, uri, required — Commerce API base URL of the associated instance.
  - `commerceEnv` 'saas' | 'paas', required — Deployment type of the associated Commerce instance.

## Response `204`

Association data stored successfully.

## Other responses

- `400` — Bad request, the request body is invalid.
- `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` — Internal server error while storing the association data.

---

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