POST {scope}/AccountingIntegration/{accountingType}/Map
Stores an AccountingMap for the provided subscriber Can be used to save a single map or a collection
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
scope | string |
Required |
|
accountingType | string |
Required |
Body Parameters
Collection of AccountingMapName | Description | Type | Additional information |
---|---|---|---|
MapType |
The type of the mapping |
EAccountingMapType |
None. |
MapItems |
The list of map items |
Collection of AccountingMapItem |
None. |
Request Formats
text/json, application/json
Sample:
[ { "MapType":0, "MapItems":[ { "MindbodyId":"01:01", "IntegrationId":"abcdef1", "ModifiedBy":{"UserName":"uname","UserId":"5000"}, "LastModifiedTime":"2016-01-01T10:30:00.000+00:00", "ErrorFlag":false } ] } }
text/xml, application/xml
Sample:
<ArrayOfAccountingMap xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="subscriber.mindbodyonline.com"> <AccountingMap> <MapType>TaxRateMap</MapType> <MapItems> <AccountingMapItem> <MindbodyId>01:01</MindbodyId> <IntegrationId>abcdef1</IntegrationId> <ModifiedBy><UserId>5000</UserId><UserName>uname</UserName></ModifiedBy> <LastModifiedTime xmlns:d6p1="http://schemas.datacontract.org/2004/07/System"><d6p1:DateTime>2016-01-01T10:30:00.000Z</d6p1:DateTime><d6p1:OffsetMinutes>0</d6p1:OffsetMinutes></LastModifiedTime> <ErrorFlag>false</ErrorFlag> </AccountingMapItem> </MapItems> </AccountingMap> </ArrayOfAccountingMap>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AccountingIntegrationName | Description | Type | Additional information |
---|---|---|---|
Id |
Unique identifier for the integration |
string |
None. |
Status |
The status of the integration |
EIntegrationStatus |
None. |
SubscriberId |
The subscriber id to whom this integration applies |
string |
None. |
Maps |
The configured mapping between Mindbody's accounting configuration and the integration API's accounting configuration |
Collection of AccountingMap |
None. |
SynchronizationPreferences |
The SynchronizationPreferences for this integration |
SynchronizationPreferences |
None. |
MindbodyConfiguration |
Mindbody's accounting configuration |
AccountingConfiguration |
None. |
IntegrationConfiguration |
The integration API's accounting configuration |
IntegrationConfiguration |
None. |
UnavailableReasons |
The integration API's accounting configuration |
Collection of EUnavailableReason |
None. |
LastModifiedTime |
The time this integration was last modified in UTC |
date |
None. |
Response Formats
text/json, application/json
Sample:
{ "Id":"1234", "Status":3, "SubscriberId":"1234", "Maps":[ { "MapType":0, "MapItems":[ { "MindbodyId":"01:01", "IntegrationId":"abcdef1", "ModifiedBy":{"UserName":"uname","UserId":"5000"}, "LastModifiedTime":"2016-01-01T10:30:00.000+00:00", "ErrorFlag":false }, { "MindbodyId":"01:02", "IntegrationId":"abcdef2", "ModifiedBy":{"UserName":"uname","UserId":"5000"}, "LastModifiedTime":"2016-01-01T10:30:00.000+00:00", "ErrorFlag":false } ] }, { "MapType":1, "MapItems":[ { "MindbodyId":"1", "IntegrationId":"abcdef4", "ModifiedBy":{"UserName":"uname","UserId":"5000"}, "LastModifiedTime":"2016-01-01T10:30:00.000+00:00", "ErrorFlag":false }, { "MindbodyId":"2", "IntegrationId":"abcdef5", "ModifiedBy":{"UserName":"uname","UserId":"5000"}, "LastModifiedTime":"2016-01-01T10:30:00.000+00:00", "ErrorFlag":false }, { "MindbodyId":"3", "IntegrationId":"abcdef6", "ModifiedBy":{"UserName":"uname","UserId":"5000"}, "LastModifiedTime":"2016-01-01T10:30:00.000+00:00", "ErrorFlag":false } ] }, { "MapType":2, "MapItems":[ { "MindbodyId":"1", "IntegrationId":"abcdef7", "ModifiedBy":{"UserName":"uname","UserId":"5000"}, "LastModifiedTime":"2016-01-01T10:30:00.000+00:00", "ErrorFlag":false }, { "MindbodyId":"2", "IntegrationId":"abcdef8", "ModifiedBy":{"UserName":"uname","UserId":"5000"}, "LastModifiedTime":"2016-01-01T10:30:00.000+00:00", "ErrorFlag":false }, { "MindbodyId":"3", "IntegrationId":"abcdef9", "ModifiedBy":{"UserName":"uname","UserId":"5000"}, "LastModifiedTime":"2016-01-01T10:30:00.000+00:00", "ErrorFlag":false } ] } ], "SynchronizationPreferences":{"SummarizeData":false}, "MindbodyConfiguration": { "Id":"1234", "TaxRates":[ { "Id":"01:01", "Name":"Sales", "Value":0.08, "LocationId":"1", "LastModifiedTime":"2016-01-01T10:30:00.000+00:00" { "Id":"01:02", "Name":"Exempt", "Value":0, "LocationId":"1", "LastModifiedTime":"2016-01-01T10:30:00.000+00:00" } ], "RevenueCategories":[ { "Id":"1", "Name":"Services", "LastModifiedTime":"2016-01-01T10:30:00.000+00:00", "Status":"Active" }, { "Id":"2", "Name":"Products", "LastModifiedTime":"2016-01-01T10:30:00.000+00:00", "Status":"Active" }, { "Id":"3", "Name":"Gift Cards", "LastModifiedTime":"2016-01-01T10:30:00.000+00:00", "Status":"Active" } ], "PaymentMethods":[ { "Id":"1", "Name":"Cash", "Type":null, "LastModifiedTime":"2016-01-01T10:30:00.000+00:00", "Status":"Active" }, { "Id":"2", "Name":"Credit", "Type":null, "LastModifiedTime":"2016-01-01T10:30:00.000+00:00", "Status":"Active" }, { "Id":"3", "Name":"Gift Card", "Type":null, "LastModifiedTime":"2016-01-01T10:30:00.000+00:00", "Status":"Active" } ], "Products":[ { "Id":"1", "Name":"Single Class", "Type":1, "Pricing":{"RevenueCategoryId":"1","AskingPrice":10.0000,"Taxes":["1"]} }, { "Id":"2", "Name":"Class Pass", "Type":1, "Pricing":{"RevenueCategoryId":"1","AskingPrice":50.0000,"Taxes":["1"]} }, { "Id":"3", "Name":"Water", "Type":3, "Pricing":{"RevenueCategoryId":"2","AskingPrice":1.0000,"Taxes":["2"]} }, { "Id":"4", "Name":"Gift Card", "Type":5, "Pricing":{"RevenueCategoryId":"3","AskingPrice":10.0000,"Taxes":[]} } ] }, "IntegrationConfiguration": { "IntegrationType":0, "InspectionTimes":[ "2016-01-15T14:45:00.000+00:00", ] }, "UnavailableReasons":[], "LastModifiedTime":"2016-01-15T14:45:00.000+00:00" }
text/xml, application/xml
Sample:
<AccountingIntegration xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="subscriber.mindbodyonline.com"> <Id>1234</Id> <Status>Configured</Status> <SubscriberId>1234</SubscriberId> <Maps> <AccountingMap> <MapType>TaxRateMap</MapType> <MapItems> <AccountingMapItem> <MindbodyId>01:01</MindbodyId> <IntegrationId>abcdef1</IntegrationId> <ModifiedBy><UserId>5000</UserId><UserName>uname</UserName></ModifiedBy> <LastModifiedTime xmlns:d6p1="http://schemas.datacontract.org/2004/07/System"><d6p1:DateTime>2016-01-01T10:30:00.000Z</d6p1:DateTime><d6p1:OffsetMinutes>0</d6p1:OffsetMinutes></LastModifiedTime> <ErrorFlag>false</ErrorFlag> </AccountingMapItem> <AccountingMapItem> <MindbodyId>01:02</MindbodyId> <IntegrationId>abcdef2</IntegrationId> <ModifiedBy><UserId>5000</UserId><UserName>uname</UserName></ModifiedBy> <LastModifiedTime xmlns:d6p1="http://schemas.datacontract.org/2004/07/System"><d6p1:DateTime>2016-01-01T10:30:00.000Z</d6p1:DateTime><d6p1:OffsetMinutes>0</d6p1:OffsetMinutes></LastModifiedTime> <ErrorFlag>false</ErrorFlag> </AccountingMapItem> </MapItems> </AccountingMap> <AccountingMap> <MapType>RevenueCategoryMap</MapType> <MapItems> <AccountingMapItem> <MindbodyId>1</MindbodyId> <IntegrationId>abcdef4</IntegrationId> <ModifiedBy><UserId>5000</UserId><UserName>uname</UserName></ModifiedBy> <LastModifiedTime xmlns:d6p1="http://schemas.datacontract.org/2004/07/System"><d6p1:DateTime>2016-01-01T10:30:00.000Z</d6p1:DateTime><d6p1:OffsetMinutes>0</d6p1:OffsetMinutes></LastModifiedTime> <ErrorFlag>false</ErrorFlag> </AccountingMapItem> <AccountingMapItem> <MindbodyId>2</MindbodyId> <IntegrationId>abcdef5</IntegrationId> <ModifiedBy><UserId>5000</UserId><UserName>uname</UserName></ModifiedBy> <LastModifiedTime xmlns:d6p1="http://schemas.datacontract.org/2004/07/System"><d6p1:DateTime>2016-01-01T10:30:00.000Z</d6p1:DateTime><d6p1:OffsetMinutes>0</d6p1:OffsetMinutes></LastModifiedTime> <ErrorFlag>false</ErrorFlag> </AccountingMapItem> <AccountingMapItem> <MindbodyId>3</MindbodyId> <IntegrationId>abcdef6</IntegrationId> <ModifiedBy><UserId>5000</UserId><UserName>uname</UserName></ModifiedBy> <LastModifiedTime xmlns:d6p1="http://schemas.datacontract.org/2004/07/System"><d6p1:DateTime>2016-01-01T10:30:00.000Z</d6p1:DateTime><d6p1:OffsetMinutes>0</d6p1:OffsetMinutes></LastModifiedTime> <ErrorFlag>false</ErrorFlag> </AccountingMapItem> </MapItems> </AccountingMap> <AccountingMap> <MapType>PaymentMethodMap</MapType> <MapItems> <AccountingMapItem> <MindbodyId>1</MindbodyId> <IntegrationId>abcdef7</IntegrationId> <ModifiedBy><UserId>5000</UserId><UserName>uname</UserName></ModifiedBy> <LastModifiedTime xmlns:d6p1="http://schemas.datacontract.org/2004/07/System"><d6p1:DateTime>2016-01-01T10:30:00.000Z</d6p1:DateTime><d6p1:OffsetMinutes>0</d6p1:OffsetMinutes></LastModifiedTime> <ErrorFlag>false</ErrorFlag> </AccountingMapItem> <AccountingMapItem> <MindbodyId>2</MindbodyId> <IntegrationId>abcdef8</IntegrationId> <ModifiedBy><UserId>5000</UserId><UserName>uname</UserName></ModifiedBy> <LastModifiedTime xmlns:d6p1="http://schemas.datacontract.org/2004/07/System"><d6p1:DateTime>2016-01-01T10:30:00.000Z</d6p1:DateTime><d6p1:OffsetMinutes>0</d6p1:OffsetMinutes></LastModifiedTime> <ErrorFlag>false</ErrorFlag> </AccountingMapItem> <AccountingMapItem> <MindbodyId>3</MindbodyId> <IntegrationId>abcdef9</IntegrationId> <ModifiedBy><UserId>5000</UserId><UserName>uname</UserName></ModifiedBy> <LastModifiedTime xmlns:d6p1="http://schemas.datacontract.org/2004/07/System"><d6p1:DateTime>2016-01-01T10:30:00.000Z</d6p1:DateTime><d6p1:OffsetMinutes>0</d6p1:OffsetMinutes></LastModifiedTime> <ErrorFlag>false</ErrorFlag> </AccountingMapItem> </MapItems> </AccountingMap> </Maps> <SynchronizationPreferences xmlns:d2p1="subscriber.mindbodyonline.com/Areas/Accounting/Models"> <d2p1:SummarizeData>false</d2p1:SummarizeData> </SynchronizationPreferences> <MindbodyConfiguration> <Id>1234</Id> <TaxRates> <TaxRate> <Id>01:01</Id> <Name>Sales</Name> <Value>0.08</Value> <LocationId>1</LocationId> <LastModifiedTime xmlns:d5p1="http://schemas.datacontract.org/2004/07/System"><d5p1:DateTime>2016-01-01T10:30:00.000Z</d5p1:DateTime><d5p1:OffsetMinutes>0</d5p1:OffsetMinutes></LastModifiedTime> </TaxRate> <TaxRate> <Id>01:02</Id> <Name>Exempt</Name> <Value>0</Value> <LocationId>1</LocationId> <LastModifiedTime xmlns:d5p1="http://schemas.datacontract.org/2004/07/System"><d5p1:DateTime>2016-01-01T10:30:00.000Z</d5p1:DateTime><d5p1:OffsetMinutes>0</d5p1:OffsetMinutes></LastModifiedTime> </TaxRate> </TaxRates> <RevenueCategories> <RevenueCategory> <Id>1</Id> <Name>Services</Name> <LastModifiedTime xmlns:d5p1="http://schemas.datacontract.org/2004/07/System"><d5p1:DateTime>2016-01-01T10:30:00Z</d5p1:DateTime><d5p1:OffsetMinutes>0</d5p1:OffsetMinutes></LastModifiedTime> <Status>Active</Status> </RevenueCategory> <RevenueCategory> <Id>2</Id> <Name>Products</Name> <LastModifiedTime xmlns:d5p1="http://schemas.datacontract.org/2004/07/System"><d5p1:DateTime>2016-01-01T10:30:00Z</d5p1:DateTime><d5p1:OffsetMinutes>0</d5p1:OffsetMinutes></LastModifiedTime> <Status>Active</Status> </RevenueCategory> <RevenueCategory> <Id>3</Id> <Name>Gift Cards</Name> <LastModifiedTime xmlns:d5p1="http://schemas.datacontract.org/2004/07/System"><d5p1:DateTime>2016-01-01T10:30:00Z</d5p1:DateTime><d5p1:OffsetMinutes>0</d5p1:OffsetMinutes></LastModifiedTime> <Status>Active</Status> </RevenueCategory> </RevenueCategories> <PaymentMethods> <AccountingPaymentMethod> <Id>1</Id> <Name>Cash</Name> <Type i:nil="true" /> <LastModifiedTime xmlns:d5p1="http://schemas.datacontract.org/2004/07/System"><d5p1:DateTime>2015-01-01T10:30:00Z</d5p1:DateTime><d5p1:OffsetMinutes>0</d5p1:OffsetMinutes></LastModifiedTime> <Status>Active</Status> </AccountingPaymentMethod> <AccountingPaymentMethod> <Id>2</Id> <Name>Credit</Name> <Type i:nil="true" /> <LastModifiedTime xmlns:d5p1="http://schemas.datacontract.org/2004/07/System"><d5p1:DateTime>2015-01-01T10:30:00Z</d5p1:DateTime><d5p1:OffsetMinutes>0</d5p1:OffsetMinutes></LastModifiedTime> <Status>Active</Status> </AccountingPaymentMethod> <AccountingPaymentMethod> <Id>3</Id> <Name>Gift Card</Name> <Type i:nil="true" /> <LastModifiedTime xmlns:d5p1="http://schemas.datacontract.org/2004/07/System"><d5p1:DateTime>2015-01-01T10:30:00Z</d5p1:DateTime><d5p1:OffsetMinutes>0</d5p1:OffsetMinutes></LastModifiedTime> <Status>Active</Status> </AccountingPaymentMethod> </PaymentMethods> <Products> <Product> <Id>1</Id> <Name>Single Class</Name> <Type>CustomServicePricingOption</Type> <Pricing> <RevenueCategoryId>1</RevenueCategoryId> <AskingPrice>10.0000</AskingPrice> <Taxes xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:string>1</d6p1:string> </Taxes> </Pricing> </Product> <Product> <Id>2</Id> <Name>Class Pass</Name> <Type>CustomServicePricingOption</Type> <Pricing> <RevenueCategoryId>1</RevenueCategoryId> <AskingPrice>50.0000</AskingPrice> <Taxes xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:string>1</d6p1:string> </Taxes> </Pricing> </Product> <Product> <Id>3</Id> <Name>Water</Name> <Type>Retail</Type> <Pricing> <RevenueCategoryId>2</RevenueCategoryId> <AskingPrice>1.0000</AskingPrice> <Taxes xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:string>2</d6p1:string> </Taxes> </Pricing> </Product> <Product> <Id>4</Id> <Name>Gift Card</Name> <Type>GiftCard</Type> <Pricing> <RevenueCategoryId>3</RevenueCategoryId> <AskingPrice>10.0000</AskingPrice> <Taxes xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" /> </Pricing> </Product> </Products> </MindbodyConfiguration> <IntegrationConfiguration i:type="XeroConfiguration"> <IntegrationType>Xero</IntegrationType> <InspectionTimes xmlns:d3p1="http://schemas.datacontract.org/2004/07/System"> <d3p1:DateTimeOffset> <d3p1:DateTime>2016-01-15T14:45:00.000Z</d3p1:DateTime> <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes> </d3p1:DateTimeOffset> </InspectionTimes> </IntegrationConfiguration> <UnavailableReasons xmlns:d2p1="subscriber.mindbodyonline.com/Areas/Accounting/Models" /> <LastModifiedTime xmlns:d2p1="http://schemas.datacontract.org/2004/07/System"><d2p1:DateTime>2016-01-15T14:45:00.000Z</d2p1:DateTime><d2p1:OffsetMinutes>0</d2p1:OffsetMinutes></LastModifiedTime> </AccountingIntegration>