All URIs are relative to https://connect.squareup.com
Method | HTTP request | Description |
---|---|---|
ListLocations | GET /v1/me/locations | ListLocations |
RetrieveBusiness | GET /v1/me | RetrieveBusiness |
Note: This endpoint is deprecated.
List ListLocations ()
ListLocations
Provides details for all business locations associated with a Square account, including the Square-assigned object ID for the location. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class ListLocationsExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1LocationsApi();
try
{
// ListLocations
List<V1Merchant> result = apiInstance.ListLocations();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1LocationsApi.ListLocations: " + e.Message );
}
}
}
}
This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Note: This endpoint is deprecated.
V1Merchant RetrieveBusiness ()
RetrieveBusiness
Get the general information for a business. - -- - Deprecation date: 2019-11-20 - Retirement date: 2020-11-18 - Migration guide - --
using System;
using System.Diagnostics;
using Square.Connect.Api;
using Square.Connect.Client;
using Square.Connect.Model;
namespace Example
{
public class RetrieveBusinessExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new V1LocationsApi();
try
{
// RetrieveBusiness
V1Merchant result = apiInstance.RetrieveBusiness();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling V1LocationsApi.RetrieveBusiness: " + e.Message );
}
}
}
}
This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]