PUT Subscriber/{subscriberId}/Location/{locationId}/Cart/{cartId}/Discounts

Update a discount item that exists in a cart

Request Information

URI Parameters

NameDescriptionTypeAdditional information
subscriberId

string

None.

locationId

string

None.

cartId

string

None.

Body Parameters

CartDiscountItem
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

CatalogDiscountItem

CatalogDiscountItem

None.

Links

Collection of globally unique identifier

None.

Created

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "b5d716d7-83dd-4aea-acb9-02db164a527c",
  "CatalogDiscountItem": {
    "DiscountType": "sample string 1",
    "Properties": {
      "sample string 1": "sample string 2",
      "sample string 3": "sample string 4"
    }
  },
  "Links": [
    "4ad12dbe-589a-4e33-b139-7876e1a3f3e6",
    "82a6073a-1795-47b1-a9d4-dde9e133f294"
  ],
  "Created": "2024-11-23T00:03:05.914318-08:00"
}

application/xml, text/xml

Sample:
<CartDiscountItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Marketplace.Models.Carts">
  <CatalogDiscountItem xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Marketplace.Models.Catalog">
    <d2p1:DiscountType>sample string 1</d2p1:DiscountType>
    <d2p1:Properties xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>sample string 1</d3p1:Key>
        <d3p1:Value>sample string 2</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>sample string 3</d3p1:Key>
        <d3p1:Value>sample string 4</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Properties>
  </CatalogDiscountItem>
  <Created>2024-11-23T00:03:05.914318-08:00</Created>
  <Id>b5d716d7-83dd-4aea-acb9-02db164a527c</Id>
  <Links xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>4ad12dbe-589a-4e33-b139-7876e1a3f3e6</d2p1:guid>
    <d2p1:guid>82a6073a-1795-47b1-a9d4-dde9e133f294</d2p1:guid>
  </Links>
</CartDiscountItem>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HTTP status code 200 Accepted


HTTP status code 400 BadRequest


HTTP status code 403 Forbidden

CartDiscountItem
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

CatalogDiscountItem

CatalogDiscountItem

None.

Links

Collection of globally unique identifier

None.

Created

date

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "d67cf70e-fa8d-4534-87a4-9c99e487aaa7",
  "CatalogDiscountItem": {
    "DiscountType": "sample string 1",
    "Properties": {
      "sample string 1": "sample string 2",
      "sample string 3": "sample string 4"
    }
  },
  "Links": [
    "28131776-ed75-4b2b-b601-7975d07d88c7",
    "9106acc3-153e-47e7-a1da-44ae63a62bf7"
  ],
  "Created": "2024-11-23T00:03:05.914318-08:00"
}

application/xml, text/xml

Sample:
<CartDiscountItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Marketplace.Models.Carts">
  <CatalogDiscountItem xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Marketplace.Models.Catalog">
    <d2p1:DiscountType>sample string 1</d2p1:DiscountType>
    <d2p1:Properties xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>sample string 1</d3p1:Key>
        <d3p1:Value>sample string 2</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>sample string 3</d3p1:Key>
        <d3p1:Value>sample string 4</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Properties>
  </CatalogDiscountItem>
  <Created>2024-11-23T00:03:05.914318-08:00</Created>
  <Id>d67cf70e-fa8d-4534-87a4-9c99e487aaa7</Id>
  <Links xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>28131776-ed75-4b2b-b601-7975d07d88c7</d2p1:guid>
    <d2p1:guid>9106acc3-153e-47e7-a1da-44ae63a62bf7</d2p1:guid>
  </Links>
</CartDiscountItem>