Skip to content

Latest commit

 

History

History
62 lines (42 loc) · 1.21 KB

v1-locations.md

File metadata and controls

62 lines (42 loc) · 1.21 KB

V1 Locations

V1LocationsApi v1LocationsApi = client.getV1LocationsApi();

Class Name

V1LocationsApi

Methods

Retrieve Business

Get the general information for a business.

CompletableFuture<V1Merchant> retrieveBusinessAsync()

Response Type

V1Merchant

Example Usage

v1LocationsApi.retrieveBusinessAsync().thenAccept(result -> {
    // TODO success callback handler
}).exceptionally(exception -> {
    // TODO failure callback handler
    return null;
});

List Locations

Provides details for all business locations associated with a Square account, including the Square-assigned object ID for the location.

CompletableFuture<List<V1Merchant>> listLocationsAsync()

Response Type

List<V1Merchant>

Example Usage

v1LocationsApi.listLocationsAsync().thenAccept(result -> {
    // TODO success callback handler
}).exceptionally(exception -> {
    // TODO failure callback handler
    return null;
});