POST Subscriber/{subscriberId}/Location/{locationId}/Cart/{cartId}/Discounts
Adds Catalog Discount Item to cart
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
subscriberId | string |
None. |
|
locationId | string |
None. |
|
cartId | string |
None. |
Body Parameters
AddDiscountItemRequestName | Description | Type | Additional information |
---|---|---|---|
CatalogDiscountItem | CatalogDiscountItem |
None. |
|
CartItemIds | Collection of globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "CatalogDiscountItem": { "DiscountType": "sample string 1", "Properties": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" } }, "CartItemIds": [ "2e134bbd-5d7e-4da5-a61b-18001d8b000e", "2fa89f46-13fe-4cd1-99d5-11e9dc0a298c" ] }
application/xml, text/xml
Sample:
<AddDiscountItemRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Marketplace.Requests"> <CartItemIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>2e134bbd-5d7e-4da5-a61b-18001d8b000e</d2p1:guid> <d2p1:guid>2fa89f46-13fe-4cd1-99d5-11e9dc0a298c</d2p1:guid> </CartItemIds> <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> </AddDiscountItemRequest>
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": "7ff63476-27fc-4f5b-88c0-4cf1ac69e3c4", "CatalogDiscountItem": { "DiscountType": "sample string 1", "Properties": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" } }, "Links": [ "c8f9874f-3cb3-47dc-99db-1cd17790b6f0", "43d3dc5f-7183-4666-aec7-f19c6e1fcbeb" ], "Created": "2025-03-31T15:31:01.6383603-07: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-03-31T15:31:01.6383603-07:00</Created> <Id>7ff63476-27fc-4f5b-88c0-4cf1ac69e3c4</Id> <Links xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>c8f9874f-3cb3-47dc-99db-1cd17790b6f0</d2p1:guid> <d2p1:guid>43d3dc5f-7183-4666-aec7-f19c6e1fcbeb</d2p1:guid> </Links> </CartDiscountItem>