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": { "25204927-bb36-4fd6-a6fb-c71431c13bbf": 2, "a892952c-2938-4ea3-b064-d2f7b0439f5e": 4 }, "CartServicePricingOptionToAccountServicePricingOptions": { "2dca0dcf-b4a5-456d-a3e5-265de8b3ee24": [ 1, 2 ], "dd959140-1ddd-4b49-85d2-199961a32803": [ 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>25204927-bb36-4fd6-a6fb-c71431c13bbf</d2p1:Key> <d2p1:Value>2</d2p1:Value> </d2p1:KeyValueOfguidint> <d2p1:KeyValueOfguidint> <d2p1:Key>a892952c-2938-4ea3-b064-d2f7b0439f5e</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>2dca0dcf-b4a5-456d-a3e5-265de8b3ee24</d2p1:Key> <d2p1:Value> <d2p1:long>1</d2p1:long> <d2p1:long>2</d2p1:long> </d2p1:Value> </d2p1:KeyValueOfguidArrayOflongox8ieOcg> <d2p1:KeyValueOfguidArrayOflongox8ieOcg> <d2p1:Key>dd959140-1ddd-4b49-85d2-199961a32803</d2p1:Key> <d2p1:Value> <d2p1:long>1</d2p1:long> <d2p1:long>2</d2p1:long> </d2p1:Value> </d2p1:KeyValueOfguidArrayOflongox8ieOcg> </CartServicePricingOptionToAccountServicePricingOptions> <OrderId>1</OrderId> </SubscriberCheckoutResponse>