PUT Subscriber/{subscriberId}/Location/{locationId}/Cart/{cartId}/Discounts
Update a discount item that exists in a cart
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
subscriberId | string |
None. |
|
locationId | string |
None. |
|
cartId | string |
None. |
Body Parameters
CartDiscountItemName | Description | Type | Additional 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": "500a3ceb-4178-4950-9cc8-4c70175f8af0", "CatalogDiscountItem": { "DiscountType": "sample string 1", "Properties": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" } }, "Links": [ "205f0e5d-7ec5-4d8a-8c70-2819db4f4d00", "eb716383-9495-4e96-a7dc-7a33f5a82e90" ], "Created": "2025-01-17T23:55:32.6297679-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>2025-01-17T23:55:32.6297679-08:00</Created> <Id>500a3ceb-4178-4950-9cc8-4c70175f8af0</Id> <Links xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>205f0e5d-7ec5-4d8a-8c70-2819db4f4d00</d2p1:guid> <d2p1:guid>eb716383-9495-4e96-a7dc-7a33f5a82e90</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
Name | Description | Type | Additional 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": "95ed7b15-b107-42cc-94c6-310c68b2e673", "CatalogDiscountItem": { "DiscountType": "sample string 1", "Properties": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" } }, "Links": [ "421f5fad-ae9b-4be1-9f87-b48a81a0aca7", "505d5953-45be-4e5d-b4db-1a0ac508d3e6" ], "Created": "2025-01-17T23:55:32.6348813-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>2025-01-17T23:55:32.6348813-08:00</Created> <Id>95ed7b15-b107-42cc-94c6-310c68b2e673</Id> <Links xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>421f5fad-ae9b-4be1-9f87-b48a81a0aca7</d2p1:guid> <d2p1:guid>505d5953-45be-4e5d-b4db-1a0ac508d3e6</d2p1:guid> </Links> </CartDiscountItem>