POST Cart/Checkout
Checkout the cart for the consumer
Request Information
URI Parameters
None.
Body Parameters
CheckoutCartRequestViewModelName | Description | Type | Additional information |
---|---|---|---|
CartId |
Cart id |
string |
None. |
LocationId |
Location id |
integer |
None. |
SalesRepId |
Sales rep id |
integer |
None. |
SendNotifications |
Send notifications |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "CartId": "sample string 1", "LocationId": 2, "SalesRepId": 1, "SendNotifications": true }
application/xml, text/xml
Sample:
<CheckoutCartRequestViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mindbody.Api.Payments.Models"> <CartId>sample string 1</CartId> <LocationId>2</LocationId> <SalesRepId>1</SalesRepId> <SendNotifications>true</SendNotifications> </CheckoutCartRequestViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SubscriberCheckoutResponseName | Description | Type | Additional information |
---|---|---|---|
OrderId | integer |
None. |
|
CartPackageToAccountContract | Dictionary of globally unique identifier [key] and integer [value] |
None. |
|
CartServicePricingOptionToAccountServicePricingOptions | Dictionary of globally unique identifier [key] and Collection of integer [value] |
None. |
Response Formats
application/json, text/json
Sample:
{ "OrderId": 1, "CartPackageToAccountContract": { "d366f7c5-8c4d-4949-92e1-4d858c162e12": 2, "260ae773-c65b-4b8b-b781-72c1a6b7f847": 4 }, "CartServicePricingOptionToAccountServicePricingOptions": { "c3431e4c-d8a0-4661-a6ae-29697d86e6c2": [ 1, 2 ], "70e09f4b-2887-42ed-8c58-5f5ca7310afc": [ 1, 2 ] } }
application/xml, text/xml
Sample:
<SubscriberCheckoutResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Marketplace.Responses"> <CartPackageToAccountContract xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfguidint> <d2p1:Key>d366f7c5-8c4d-4949-92e1-4d858c162e12</d2p1:Key> <d2p1:Value>2</d2p1:Value> </d2p1:KeyValueOfguidint> <d2p1:KeyValueOfguidint> <d2p1:Key>260ae773-c65b-4b8b-b781-72c1a6b7f847</d2p1:Key> <d2p1:Value>4</d2p1:Value> </d2p1:KeyValueOfguidint> </CartPackageToAccountContract> <CartServicePricingOptionToAccountServicePricingOptions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfguidArrayOflongox8ieOcg> <d2p1:Key>c3431e4c-d8a0-4661-a6ae-29697d86e6c2</d2p1:Key> <d2p1:Value> <d2p1:long>1</d2p1:long> <d2p1:long>2</d2p1:long> </d2p1:Value> </d2p1:KeyValueOfguidArrayOflongox8ieOcg> <d2p1:KeyValueOfguidArrayOflongox8ieOcg> <d2p1:Key>70e09f4b-2887-42ed-8c58-5f5ca7310afc</d2p1:Key> <d2p1:Value> <d2p1:long>1</d2p1:long> <d2p1:long>2</d2p1:long> </d2p1:Value> </d2p1:KeyValueOfguidArrayOflongox8ieOcg> </CartServicePricingOptionToAccountServicePricingOptions> <OrderId>1</OrderId> </SubscriberCheckoutResponse>