ShoppingCart

Set accredited agents

Associates an accredited Agent with the specified cart

put/v3/checkout/shoppingCarts/{shoppingCartId}/accreditedAgents

Request

  • Base URL
    https://marketplace.appdirect.com/api
  • Auth
    none declared. Required headers: AD-ShoppingCart-Partner

Path parameters

shoppingCartIdstring required

Shopping cart ID

Headers

AD-ShoppingCart-Partnerstring required

The partner code of a marketplace

Request body

Example request

{
  "accreditedAgents": [
    {
      "userId": "83407ce8-373f-11e6-ac61-9e71128cae77",
      "companyId": "a411dc54-d46f-4002-ab00-3ea52e4eb118"
    }
  ]
}

Response

OK

userIdstring

Accredited agent to whom the purchase is attributed.

companyIdstring

Company of the accredited agent to whom the purchase is attributed.

Example response

{
  "userId": "83407ce8-373f-11e6-ac61-9e71128cae77",
  "companyId": "a411dc54-d46f-4002-ab00-3ea52e4eb118"
}

Changes