POST Subscriber/{subscriberId}/Location/{locationId}/Carts/{cartId}/ChangeLocation

Attempts to change the location context of a cart

Request Information

URI Parameters

NameDescriptionTypeAdditional information
subscriberId

string

None.

locationId

string

None.

cartId

string

None.

Body Parameters

ChangeCartLocationRequest
NameDescriptionTypeAdditional information
LocationId

integer

None.

ForceChange

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "LocationId": 1,
  "ForceChange": true
}

application/xml, text/xml

Sample:
<ChangeCartLocationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Marketplace.Requests">
  <ForceChange>true</ForceChange>
  <LocationId>1</LocationId>
</ChangeCartLocationRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ChangeCartLocationResponse
NameDescriptionTypeAdditional information
Success

boolean

None.

ValidationErrors

Collection of ChangeCartLocationResponseValidationError

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "ValidationErrors": [
    {
      "Id": "d0493eba-2137-453a-9cb4-488334912103",
      "Type": "sample string 2",
      "Message": "sample string 3"
    },
    {
      "Id": "d0493eba-2137-453a-9cb4-488334912103",
      "Type": "sample string 2",
      "Message": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<ChangeCartLocationResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Marketplace.Responses">
  <Success>true</Success>
  <ValidationErrors>
    <ChangeCartLocationResponseValidationError>
      <Id>d0493eba-2137-453a-9cb4-488334912103</Id>
      <Message>sample string 3</Message>
      <Type>sample string 2</Type>
    </ChangeCartLocationResponseValidationError>
    <ChangeCartLocationResponseValidationError>
      <Id>d0493eba-2137-453a-9cb4-488334912103</Id>
      <Message>sample string 3</Message>
      <Type>sample string 2</Type>
    </ChangeCartLocationResponseValidationError>
  </ValidationErrors>
</ChangeCartLocationResponse>