GET MerchantAccounts?page={page}&pageSize={pageSize}

Gets all terminal merchant accounts, ordered by terminal external id, subscriber name and location id.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
page

integer

Required

pageSize

integer

Required

Body Parameters

None.

Response Information

Resource Description

FindMerchantAccountsResponse
NameDescriptionTypeAdditional information
TerminalMerchantAccounts

Collection of TerminalMerchantAccount

None.

PageIndex

integer

None.

PageSize

integer

None.

TotalMerchantAccounts

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "TerminalMerchantAccounts": [
    {
      "TerminalMerchantAccountId": 1,
      "Terminal": {
        "TerminalId": 1,
        "TerminalType": "sample string 2",
        "TerminalTypeId": 3,
        "ExternalId": "sample string 4",
        "TerminalName": "sample string 5"
      },
      "Location": {
        "MasterLocationId": 1,
        "SubscriberId": 2,
        "SubscriberName": "sample string 3",
        "LocationId": 4,
        "LocationName": "sample string 5"
      },
      "MerchantAccount": {
        "MerchantAccountId": 1,
        "PaymentServiceId": 2,
        "MerchantId": "sample string 3",
        "MerchantTerminalId": "sample string 4"
      }
    },
    {
      "TerminalMerchantAccountId": 1,
      "Terminal": {
        "TerminalId": 1,
        "TerminalType": "sample string 2",
        "TerminalTypeId": 3,
        "ExternalId": "sample string 4",
        "TerminalName": "sample string 5"
      },
      "Location": {
        "MasterLocationId": 1,
        "SubscriberId": 2,
        "SubscriberName": "sample string 3",
        "LocationId": 4,
        "LocationName": "sample string 5"
      },
      "MerchantAccount": {
        "MerchantAccountId": 1,
        "PaymentServiceId": 2,
        "MerchantId": "sample string 3",
        "MerchantTerminalId": "sample string 4"
      }
    }
  ],
  "PageIndex": 1,
  "PageSize": 2,
  "TotalMerchantAccounts": 3
}

application/xml, text/xml

Sample:
<FindMerchantAccountsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Subscriber.Responses">
  <PageIndex>1</PageIndex>
  <PageSize>2</PageSize>
  <TerminalMerchantAccounts xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Subscriber.Models.Subscriber">
    <d2p1:TerminalMerchantAccount>
      <d2p1:Location>
        <d2p1:LocationId>4</d2p1:LocationId>
        <d2p1:LocationName>sample string 5</d2p1:LocationName>
        <d2p1:MasterLocationId>1</d2p1:MasterLocationId>
        <d2p1:SubscriberId>2</d2p1:SubscriberId>
        <d2p1:SubscriberName>sample string 3</d2p1:SubscriberName>
      </d2p1:Location>
      <d2p1:MerchantAccount>
        <d2p1:MerchantAccountId>1</d2p1:MerchantAccountId>
        <d2p1:MerchantId>sample string 3</d2p1:MerchantId>
        <d2p1:MerchantTerminalId>sample string 4</d2p1:MerchantTerminalId>
        <d2p1:PaymentServiceId>2</d2p1:PaymentServiceId>
      </d2p1:MerchantAccount>
      <d2p1:Terminal>
        <d2p1:ExternalId>sample string 4</d2p1:ExternalId>
        <d2p1:TerminalId>1</d2p1:TerminalId>
        <d2p1:TerminalName>sample string 5</d2p1:TerminalName>
        <d2p1:TerminalType>sample string 2</d2p1:TerminalType>
        <d2p1:TerminalTypeId>3</d2p1:TerminalTypeId>
      </d2p1:Terminal>
      <d2p1:TerminalMerchantAccountId>1</d2p1:TerminalMerchantAccountId>
    </d2p1:TerminalMerchantAccount>
    <d2p1:TerminalMerchantAccount>
      <d2p1:Location>
        <d2p1:LocationId>4</d2p1:LocationId>
        <d2p1:LocationName>sample string 5</d2p1:LocationName>
        <d2p1:MasterLocationId>1</d2p1:MasterLocationId>
        <d2p1:SubscriberId>2</d2p1:SubscriberId>
        <d2p1:SubscriberName>sample string 3</d2p1:SubscriberName>
      </d2p1:Location>
      <d2p1:MerchantAccount>
        <d2p1:MerchantAccountId>1</d2p1:MerchantAccountId>
        <d2p1:MerchantId>sample string 3</d2p1:MerchantId>
        <d2p1:MerchantTerminalId>sample string 4</d2p1:MerchantTerminalId>
        <d2p1:PaymentServiceId>2</d2p1:PaymentServiceId>
      </d2p1:MerchantAccount>
      <d2p1:Terminal>
        <d2p1:ExternalId>sample string 4</d2p1:ExternalId>
        <d2p1:TerminalId>1</d2p1:TerminalId>
        <d2p1:TerminalName>sample string 5</d2p1:TerminalName>
        <d2p1:TerminalType>sample string 2</d2p1:TerminalType>
        <d2p1:TerminalTypeId>3</d2p1:TerminalTypeId>
      </d2p1:Terminal>
      <d2p1:TerminalMerchantAccountId>1</d2p1:TerminalMerchantAccountId>
    </d2p1:TerminalMerchantAccount>
  </TerminalMerchantAccounts>
  <TotalMerchantAccounts>3</TotalMerchantAccounts>
</FindMerchantAccountsResponse>