POST Subscriber/{subscriberId}/Location/{locationId}/Cart/{cartId}/AccountScheduleItemPayments
Adds account schedule item payment to cart. Returns 409 if already in cart.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
subscriberId | string |
None. |
|
locationId | string |
None. |
|
cartId | string |
None. |
Body Parameters
AddCartAccountScheduleItemPaymentRequestName | Description | Type | Additional information |
---|---|---|---|
AccountScheduleItemPayment | AccountScheduleItemPayment |
None. |
Request Formats
application/json, text/json
Sample:
{ "AccountScheduleItemPayment": { "Id": 1, "Type": "sample string 2", "Name": "sample string 3", "ProductId": 4, "ConsumerId": 5, "Templates": [ { "Name": "sample string 1", "TemplateType": "sample string 2", "Metadata": [ { "Key": "sample string 1", "Value": "sample string 2", "Type": "sample string 3", "Label": "sample string 4", "Rules": [ { "Rule": "sample string 1", "Value": "sample string 2" }, { "Rule": "sample string 1", "Value": "sample string 2" } ] }, { "Key": "sample string 1", "Value": "sample string 2", "Type": "sample string 3", "Label": "sample string 4", "Rules": [ { "Rule": "sample string 1", "Value": "sample string 2" }, { "Rule": "sample string 1", "Value": "sample string 2" } ] } ] }, { "Name": "sample string 1", "TemplateType": "sample string 2", "Metadata": [ { "Key": "sample string 1", "Value": "sample string 2", "Type": "sample string 3", "Label": "sample string 4", "Rules": [ { "Rule": "sample string 1", "Value": "sample string 2" }, { "Rule": "sample string 1", "Value": "sample string 2" } ] }, { "Key": "sample string 1", "Value": "sample string 2", "Type": "sample string 3", "Label": "sample string 4", "Rules": [ { "Rule": "sample string 1", "Value": "sample string 2" }, { "Rule": "sample string 1", "Value": "sample string 2" } ] } ] } ], "Options": [ { "MetadataType": "sample string 1", "Items": [ { "Name": "sample string 1", "Value": "sample string 2", "Properties": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" } }, { "Name": "sample string 1", "Value": "sample string 2", "Properties": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" } } ] }, { "MetadataType": "sample string 1", "Items": [ { "Name": "sample string 1", "Value": "sample string 2", "Properties": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" } }, { "Name": "sample string 1", "Value": "sample string 2", "Properties": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" } } ] } ], "Rules": [ { "Rule": "sample string 1", "Values": [ "sample string 1", "sample string 2" ], "Key": "sample string 2", "Operation": "sample string 3" }, { "Rule": "sample string 1", "Values": [ "sample string 1", "sample string 2" ], "Key": "sample string 2", "Operation": "sample string 3" } ] } }
application/xml, text/xml
Sample:
<AddCartAccountScheduleItemPaymentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Marketplace.Requests.Catalog"> <AccountScheduleItemPayment xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Marketplace.Models.Payments"> <d2p1:ConsumerId>5</d2p1:ConsumerId> <d2p1:Id>1</d2p1:Id> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:Options xmlns:d3p1="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Marketplace.Models.Catalog.Item"> <d3p1:ItemOption> <d3p1:Items> <d3p1:ItemOptionItem> <d3p1:Name>sample string 1</d3p1:Name> <d3p1:Properties xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d7p1:KeyValueOfstringstring> <d7p1:Key>sample string 1</d7p1:Key> <d7p1:Value>sample string 2</d7p1:Value> </d7p1:KeyValueOfstringstring> <d7p1:KeyValueOfstringstring> <d7p1:Key>sample string 3</d7p1:Key> <d7p1:Value>sample string 4</d7p1:Value> </d7p1:KeyValueOfstringstring> </d3p1:Properties> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemOptionItem> <d3p1:ItemOptionItem> <d3p1:Name>sample string 1</d3p1:Name> <d3p1:Properties xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d7p1:KeyValueOfstringstring> <d7p1:Key>sample string 1</d7p1:Key> <d7p1:Value>sample string 2</d7p1:Value> </d7p1:KeyValueOfstringstring> <d7p1:KeyValueOfstringstring> <d7p1:Key>sample string 3</d7p1:Key> <d7p1:Value>sample string 4</d7p1:Value> </d7p1:KeyValueOfstringstring> </d3p1:Properties> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemOptionItem> </d3p1:Items> <d3p1:MetadataType>sample string 1</d3p1:MetadataType> </d3p1:ItemOption> <d3p1:ItemOption> <d3p1:Items> <d3p1:ItemOptionItem> <d3p1:Name>sample string 1</d3p1:Name> <d3p1:Properties xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d7p1:KeyValueOfstringstring> <d7p1:Key>sample string 1</d7p1:Key> <d7p1:Value>sample string 2</d7p1:Value> </d7p1:KeyValueOfstringstring> <d7p1:KeyValueOfstringstring> <d7p1:Key>sample string 3</d7p1:Key> <d7p1:Value>sample string 4</d7p1:Value> </d7p1:KeyValueOfstringstring> </d3p1:Properties> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemOptionItem> <d3p1:ItemOptionItem> <d3p1:Name>sample string 1</d3p1:Name> <d3p1:Properties xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d7p1:KeyValueOfstringstring> <d7p1:Key>sample string 1</d7p1:Key> <d7p1:Value>sample string 2</d7p1:Value> </d7p1:KeyValueOfstringstring> <d7p1:KeyValueOfstringstring> <d7p1:Key>sample string 3</d7p1:Key> <d7p1:Value>sample string 4</d7p1:Value> </d7p1:KeyValueOfstringstring> </d3p1:Properties> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemOptionItem> </d3p1:Items> <d3p1:MetadataType>sample string 1</d3p1:MetadataType> </d3p1:ItemOption> </d2p1:Options> <d2p1:ProductId>4</d2p1:ProductId> <d2p1:Rules xmlns:d3p1="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Marketplace.Models.Catalog.Item"> <d3p1:ItemRule> <d3p1:Key>sample string 2</d3p1:Key> <d3p1:Operation>sample string 3</d3p1:Operation> <d3p1:Rule>sample string 1</d3p1:Rule> <d3p1:Values xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </d3p1:Values> </d3p1:ItemRule> <d3p1:ItemRule> <d3p1:Key>sample string 2</d3p1:Key> <d3p1:Operation>sample string 3</d3p1:Operation> <d3p1:Rule>sample string 1</d3p1:Rule> <d3p1:Values xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </d3p1:Values> </d3p1:ItemRule> </d2p1:Rules> <d2p1:Templates xmlns:d3p1="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Marketplace.Models.Catalog.Item.Metadata"> <d3p1:ItemMetadataTemplate> <d3p1:Metadata> <d3p1:ItemMetadata> <d3p1:Key>sample string 1</d3p1:Key> <d3p1:Label>sample string 4</d3p1:Label> <d3p1:Rules> <d3p1:ItemMetadataRule> <d3p1:Rule>sample string 1</d3p1:Rule> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemMetadataRule> <d3p1:ItemMetadataRule> <d3p1:Rule>sample string 1</d3p1:Rule> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemMetadataRule> </d3p1:Rules> <d3p1:Type>sample string 3</d3p1:Type> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemMetadata> <d3p1:ItemMetadata> <d3p1:Key>sample string 1</d3p1:Key> <d3p1:Label>sample string 4</d3p1:Label> <d3p1:Rules> <d3p1:ItemMetadataRule> <d3p1:Rule>sample string 1</d3p1:Rule> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemMetadataRule> <d3p1:ItemMetadataRule> <d3p1:Rule>sample string 1</d3p1:Rule> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemMetadataRule> </d3p1:Rules> <d3p1:Type>sample string 3</d3p1:Type> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemMetadata> </d3p1:Metadata> <d3p1:Name>sample string 1</d3p1:Name> <d3p1:TemplateType>sample string 2</d3p1:TemplateType> </d3p1:ItemMetadataTemplate> <d3p1:ItemMetadataTemplate> <d3p1:Metadata> <d3p1:ItemMetadata> <d3p1:Key>sample string 1</d3p1:Key> <d3p1:Label>sample string 4</d3p1:Label> <d3p1:Rules> <d3p1:ItemMetadataRule> <d3p1:Rule>sample string 1</d3p1:Rule> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemMetadataRule> <d3p1:ItemMetadataRule> <d3p1:Rule>sample string 1</d3p1:Rule> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemMetadataRule> </d3p1:Rules> <d3p1:Type>sample string 3</d3p1:Type> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemMetadata> <d3p1:ItemMetadata> <d3p1:Key>sample string 1</d3p1:Key> <d3p1:Label>sample string 4</d3p1:Label> <d3p1:Rules> <d3p1:ItemMetadataRule> <d3p1:Rule>sample string 1</d3p1:Rule> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemMetadataRule> <d3p1:ItemMetadataRule> <d3p1:Rule>sample string 1</d3p1:Rule> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemMetadataRule> </d3p1:Rules> <d3p1:Type>sample string 3</d3p1:Type> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemMetadata> </d3p1:Metadata> <d3p1:Name>sample string 1</d3p1:Name> <d3p1:TemplateType>sample string 2</d3p1:TemplateType> </d3p1:ItemMetadataTemplate> </d2p1:Templates> <d2p1:Type>sample string 2</d2p1:Type> </AccountScheduleItemPayment> </AddCartAccountScheduleItemPaymentRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CartAccountScheduleItemPaymentName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
AccountScheduleItemPayment | AccountScheduleItemPayment |
None. |
|
Created | date |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": "0500cc16-e1b7-42cf-9d3b-b29114b3289f", "AccountScheduleItemPayment": { "Id": 1, "Type": "sample string 2", "Name": "sample string 3", "ProductId": 4, "ConsumerId": 5, "Templates": [ { "Name": "sample string 1", "TemplateType": "sample string 2", "Metadata": [ { "Key": "sample string 1", "Value": "sample string 2", "Type": "sample string 3", "Label": "sample string 4", "Rules": [ { "Rule": "sample string 1", "Value": "sample string 2" }, { "Rule": "sample string 1", "Value": "sample string 2" } ] }, { "Key": "sample string 1", "Value": "sample string 2", "Type": "sample string 3", "Label": "sample string 4", "Rules": [ { "Rule": "sample string 1", "Value": "sample string 2" }, { "Rule": "sample string 1", "Value": "sample string 2" } ] } ] }, { "Name": "sample string 1", "TemplateType": "sample string 2", "Metadata": [ { "Key": "sample string 1", "Value": "sample string 2", "Type": "sample string 3", "Label": "sample string 4", "Rules": [ { "Rule": "sample string 1", "Value": "sample string 2" }, { "Rule": "sample string 1", "Value": "sample string 2" } ] }, { "Key": "sample string 1", "Value": "sample string 2", "Type": "sample string 3", "Label": "sample string 4", "Rules": [ { "Rule": "sample string 1", "Value": "sample string 2" }, { "Rule": "sample string 1", "Value": "sample string 2" } ] } ] } ], "Options": [ { "MetadataType": "sample string 1", "Items": [ { "Name": "sample string 1", "Value": "sample string 2", "Properties": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" } }, { "Name": "sample string 1", "Value": "sample string 2", "Properties": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" } } ] }, { "MetadataType": "sample string 1", "Items": [ { "Name": "sample string 1", "Value": "sample string 2", "Properties": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" } }, { "Name": "sample string 1", "Value": "sample string 2", "Properties": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" } } ] } ], "Rules": [ { "Rule": "sample string 1", "Values": [ "sample string 1", "sample string 2" ], "Key": "sample string 2", "Operation": "sample string 3" }, { "Rule": "sample string 1", "Values": [ "sample string 1", "sample string 2" ], "Key": "sample string 2", "Operation": "sample string 3" } ] }, "Created": "2024-11-22T23:58:46.6659707-08:00" }
application/xml, text/xml
Sample:
<CartAccountScheduleItemPayment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Marketplace.Models.Carts"> <AccountScheduleItemPayment xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Marketplace.Models.Payments"> <d2p1:ConsumerId>5</d2p1:ConsumerId> <d2p1:Id>1</d2p1:Id> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:Options xmlns:d3p1="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Marketplace.Models.Catalog.Item"> <d3p1:ItemOption> <d3p1:Items> <d3p1:ItemOptionItem> <d3p1:Name>sample string 1</d3p1:Name> <d3p1:Properties xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d7p1:KeyValueOfstringstring> <d7p1:Key>sample string 1</d7p1:Key> <d7p1:Value>sample string 2</d7p1:Value> </d7p1:KeyValueOfstringstring> <d7p1:KeyValueOfstringstring> <d7p1:Key>sample string 3</d7p1:Key> <d7p1:Value>sample string 4</d7p1:Value> </d7p1:KeyValueOfstringstring> </d3p1:Properties> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemOptionItem> <d3p1:ItemOptionItem> <d3p1:Name>sample string 1</d3p1:Name> <d3p1:Properties xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d7p1:KeyValueOfstringstring> <d7p1:Key>sample string 1</d7p1:Key> <d7p1:Value>sample string 2</d7p1:Value> </d7p1:KeyValueOfstringstring> <d7p1:KeyValueOfstringstring> <d7p1:Key>sample string 3</d7p1:Key> <d7p1:Value>sample string 4</d7p1:Value> </d7p1:KeyValueOfstringstring> </d3p1:Properties> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemOptionItem> </d3p1:Items> <d3p1:MetadataType>sample string 1</d3p1:MetadataType> </d3p1:ItemOption> <d3p1:ItemOption> <d3p1:Items> <d3p1:ItemOptionItem> <d3p1:Name>sample string 1</d3p1:Name> <d3p1:Properties xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d7p1:KeyValueOfstringstring> <d7p1:Key>sample string 1</d7p1:Key> <d7p1:Value>sample string 2</d7p1:Value> </d7p1:KeyValueOfstringstring> <d7p1:KeyValueOfstringstring> <d7p1:Key>sample string 3</d7p1:Key> <d7p1:Value>sample string 4</d7p1:Value> </d7p1:KeyValueOfstringstring> </d3p1:Properties> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemOptionItem> <d3p1:ItemOptionItem> <d3p1:Name>sample string 1</d3p1:Name> <d3p1:Properties xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d7p1:KeyValueOfstringstring> <d7p1:Key>sample string 1</d7p1:Key> <d7p1:Value>sample string 2</d7p1:Value> </d7p1:KeyValueOfstringstring> <d7p1:KeyValueOfstringstring> <d7p1:Key>sample string 3</d7p1:Key> <d7p1:Value>sample string 4</d7p1:Value> </d7p1:KeyValueOfstringstring> </d3p1:Properties> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemOptionItem> </d3p1:Items> <d3p1:MetadataType>sample string 1</d3p1:MetadataType> </d3p1:ItemOption> </d2p1:Options> <d2p1:ProductId>4</d2p1:ProductId> <d2p1:Rules xmlns:d3p1="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Marketplace.Models.Catalog.Item"> <d3p1:ItemRule> <d3p1:Key>sample string 2</d3p1:Key> <d3p1:Operation>sample string 3</d3p1:Operation> <d3p1:Rule>sample string 1</d3p1:Rule> <d3p1:Values xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </d3p1:Values> </d3p1:ItemRule> <d3p1:ItemRule> <d3p1:Key>sample string 2</d3p1:Key> <d3p1:Operation>sample string 3</d3p1:Operation> <d3p1:Rule>sample string 1</d3p1:Rule> <d3p1:Values xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </d3p1:Values> </d3p1:ItemRule> </d2p1:Rules> <d2p1:Templates xmlns:d3p1="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Marketplace.Models.Catalog.Item.Metadata"> <d3p1:ItemMetadataTemplate> <d3p1:Metadata> <d3p1:ItemMetadata> <d3p1:Key>sample string 1</d3p1:Key> <d3p1:Label>sample string 4</d3p1:Label> <d3p1:Rules> <d3p1:ItemMetadataRule> <d3p1:Rule>sample string 1</d3p1:Rule> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemMetadataRule> <d3p1:ItemMetadataRule> <d3p1:Rule>sample string 1</d3p1:Rule> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemMetadataRule> </d3p1:Rules> <d3p1:Type>sample string 3</d3p1:Type> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemMetadata> <d3p1:ItemMetadata> <d3p1:Key>sample string 1</d3p1:Key> <d3p1:Label>sample string 4</d3p1:Label> <d3p1:Rules> <d3p1:ItemMetadataRule> <d3p1:Rule>sample string 1</d3p1:Rule> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemMetadataRule> <d3p1:ItemMetadataRule> <d3p1:Rule>sample string 1</d3p1:Rule> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemMetadataRule> </d3p1:Rules> <d3p1:Type>sample string 3</d3p1:Type> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemMetadata> </d3p1:Metadata> <d3p1:Name>sample string 1</d3p1:Name> <d3p1:TemplateType>sample string 2</d3p1:TemplateType> </d3p1:ItemMetadataTemplate> <d3p1:ItemMetadataTemplate> <d3p1:Metadata> <d3p1:ItemMetadata> <d3p1:Key>sample string 1</d3p1:Key> <d3p1:Label>sample string 4</d3p1:Label> <d3p1:Rules> <d3p1:ItemMetadataRule> <d3p1:Rule>sample string 1</d3p1:Rule> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemMetadataRule> <d3p1:ItemMetadataRule> <d3p1:Rule>sample string 1</d3p1:Rule> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemMetadataRule> </d3p1:Rules> <d3p1:Type>sample string 3</d3p1:Type> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemMetadata> <d3p1:ItemMetadata> <d3p1:Key>sample string 1</d3p1:Key> <d3p1:Label>sample string 4</d3p1:Label> <d3p1:Rules> <d3p1:ItemMetadataRule> <d3p1:Rule>sample string 1</d3p1:Rule> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemMetadataRule> <d3p1:ItemMetadataRule> <d3p1:Rule>sample string 1</d3p1:Rule> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemMetadataRule> </d3p1:Rules> <d3p1:Type>sample string 3</d3p1:Type> <d3p1:Value>sample string 2</d3p1:Value> </d3p1:ItemMetadata> </d3p1:Metadata> <d3p1:Name>sample string 1</d3p1:Name> <d3p1:TemplateType>sample string 2</d3p1:TemplateType> </d3p1:ItemMetadataTemplate> </d2p1:Templates> <d2p1:Type>sample string 2</d2p1:Type> </AccountScheduleItemPayment> <Created>2024-11-22T23:58:46.6659707-08:00</Created> <Id>0500cc16-e1b7-42cf-9d3b-b29114b3289f</Id> </CartAccountScheduleItemPayment>