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": { "f457bb0d-44c1-4aaf-92c5-c844ec2b977c": 2, "34affe3a-1be0-4575-b435-fa02bb882dc3": 4 }, "CartServicePricingOptionToAccountServicePricingOptions": { "f53c3a05-f08b-47cc-ab52-bc721e76e2dd": [ 1, 2 ], "6602e139-47e3-4269-91c8-467f5f9bbe9c": [ 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>f457bb0d-44c1-4aaf-92c5-c844ec2b977c</d2p1:Key> <d2p1:Value>2</d2p1:Value> </d2p1:KeyValueOfguidint> <d2p1:KeyValueOfguidint> <d2p1:Key>34affe3a-1be0-4575-b435-fa02bb882dc3</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>f53c3a05-f08b-47cc-ab52-bc721e76e2dd</d2p1:Key> <d2p1:Value> <d2p1:long>1</d2p1:long> <d2p1:long>2</d2p1:long> </d2p1:Value> </d2p1:KeyValueOfguidArrayOflongox8ieOcg> <d2p1:KeyValueOfguidArrayOflongox8ieOcg> <d2p1:Key>6602e139-47e3-4269-91c8-467f5f9bbe9c</d2p1:Key> <d2p1:Value> <d2p1:long>1</d2p1:long> <d2p1:long>2</d2p1:long> </d2p1:Value> </d2p1:KeyValueOfguidArrayOflongox8ieOcg> </CartServicePricingOptionToAccountServicePricingOptions> <OrderId>1</OrderId> </SubscriberCheckoutResponse>