Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Latest commit

 

History

History
134 lines (98 loc) · 3.66 KB

V1LocationsApi.md

File metadata and controls

134 lines (98 loc) · 3.66 KB

Square.Connect.Api.V1LocationsApi

All URIs are relative to https://connect.squareup.com

Method HTTP request Description
ListLocations GET /v1/me/locations ListLocations
RetrieveBusiness GET /v1/me RetrieveBusiness

ListLocations

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 - --

Example

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 );
            }
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

List

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

RetrieveBusiness

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 - --

Example

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 );
            }
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

V1Merchant

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]