{ "opencollection": "1.0.0", "info": { "name": "Square ApplePay Merchants API", "version": "2.0" }, "items": [ { "info": { "name": "Merchants", "type": "folder" }, "items": [ { "info": { "name": "Square List Merchants", "type": "http" }, "http": { "method": "GET", "url": "https://connect.squareup.com/v2/merchants", "params": [ { "name": "cursor", "value": "", "type": "query", "description": "The cursor generated by the previous response." } ], "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 the merchant associated with a given access token.\n\nThe access token used to connect your application to a Square seller is associated\nwith a single merchant. That means that `ListMerchants` returns a list\nwith a single `Merchant` object. You can specify your personal access token\nto get your own merchant information or specify an OAuth token to get the\ninformation for the merchant that granted your application access.\n\nIf you know the merchant ID, you can also use the [Re" }, { "info": { "name": "Square Retrieve Merchant", "type": "http" }, "http": { "method": "GET", "url": "https://connect.squareup.com/v2/merchants/:merchant_id", "params": [ { "name": "merchant_id", "value": "", "type": "path", "description": "The ID of the merchant to retrieve. If the string \"me\" is supplied as the ID,\nthen retrieve the merchant that is currently accessible to this call." } ], "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 the `Merchant` object for the given `merchant_id`." } ] } ], "bundled": true }