---
title: "Set accredited agents"
method: PUT
path: "/v3/checkout/shoppingCarts/{shoppingCartId}/accreditedAgents"
tags: ["ShoppingCart"]
---

# Set accredited agents

`PUT /v3/checkout/shoppingCarts/{shoppingCartId}/accreditedAgents`

## Request

- Base URL: `https://marketplace.appdirect.com/api`
- URL: `https://marketplace.appdirect.com/api/v3/checkout/shoppingCarts/{shoppingCartId}/accreditedAgents`
- Auth: none declared. Required headers: `AD-ShoppingCart-Partner`

Associates an accredited Agent with the specified cart

## Path parameters

- `shoppingCartId` string, required

## Headers

- `AD-ShoppingCart-Partner` string, required

## Request body

- AccreditedAgents: Information about the accredited agents associated with shopping carts
  - `accreditedAgents` AccreditedAgent[]
    - `userId` string: Accredited agent to whom the purchase is attributed.
    - `companyId` string: Company of the accredited agent to whom the purchase is attributed.

## Response `200`

OK

- AccreditedAgent: Details about an accredited agent associated with a shopping cart
  - `userId` string: Accredited agent to whom the purchase is attributed.
  - `companyId` string: Company of the accredited agent to whom the purchase is attributed.

## Changes

- **2026-11-06** `1fc240f06971`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/appdirect/apis/companies/changes/v3/checkout/shoppingCarts/:shoppingCartId/accreditedAgents/put.md)

---

[API](https://skmtc.dev/appdirect/apis/companies.md) - [All operations](https://skmtc.dev/appdirect/apis/companies/llms.txt) - [OpenAPI document](https://skmtc.dev/appdirect/apis/companies/revisions/1fc240f06971?raw)
