{ "opencollection": "1.0.0", "info": { "name": "Square ApplePay Locations API", "version": "2.0" }, "items": [ { "info": { "name": "Locations", "type": "folder" }, "items": [ { "info": { "name": "Square List Locations", "type": "http" }, "http": { "method": "GET", "url": "https://connect.squareup.com/v2/locations", "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://connect.squareup.com/oauth2/authorize", "accessTokenUrl": "https://connect.squareup.com/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Provides details about all of the seller's [locations](https://developer.squareup.com/docs/locations-api),\nincluding those with an inactive status. Locations are listed alphabetically by `name`." }, { "info": { "name": "Square Create Location", "type": "http" }, "http": { "method": "POST", "url": "https://connect.squareup.com/v2/locations", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://connect.squareup.com/oauth2/authorize", "accessTokenUrl": "https://connect.squareup.com/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Creates a [location](https://developer.squareup.com/docs/locations-api).\nCreating new locations allows for separate configuration of receipt layouts, item prices,\nand sales reports. Developers can use locations to separate sales activity through applications\nthat integrate with Square from sales activity elsewhere in a seller's account.\nLocations created programmatically with the Locations API last forever and\nare visible to the seller for their own management. Therefore, ensure that\neach locati" }, { "info": { "name": "Square Retrieve Location", "type": "http" }, "http": { "method": "GET", "url": "https://connect.squareup.com/v2/locations/:location_id", "params": [ { "name": "location_id", "value": "", "type": "path", "description": "The ID of the location to retrieve. Specify the string\n\"main\" to return the main location." } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://connect.squareup.com/oauth2/authorize", "accessTokenUrl": "https://connect.squareup.com/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Retrieves details of a single location. Specify \"main\"\nas the location ID to retrieve details of the [main location](https://developer.squareup.com/docs/locations-api#about-the-main-location)." }, { "info": { "name": "Square Update Location", "type": "http" }, "http": { "method": "PUT", "url": "https://connect.squareup.com/v2/locations/:location_id", "params": [ { "name": "location_id", "value": "", "type": "path", "description": "The ID of the location to update." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://connect.squareup.com/oauth2/authorize", "accessTokenUrl": "https://connect.squareup.com/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Updates a [location](https://developer.squareup.com/docs/locations-api)." } ] } ], "bundled": true }