{ "opencollection": "1.0.0", "info": { "name": "Square ApplePay Snippets API", "version": "2.0" }, "items": [ { "info": { "name": "Snippets", "type": "folder" }, "items": [ { "info": { "name": "Square Retrieve Snippet", "type": "http" }, "http": { "method": "GET", "url": "https://connect.squareup.com/v2/sites/:site_id/snippet", "params": [ { "name": "site_id", "value": "", "type": "path", "description": "The ID of the site that contains the snippet." } ], "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 your snippet from a Square Online site. A site can contain snippets from multiple snippet applications, but you can retrieve only the snippet that was added by your application.\n\nYou can call [ListSites](api-endpoint:Sites-ListSites) to get the IDs of the sites that belong to a seller.\n\n\n__Note:__ Square Online APIs are publicly available as part of an early access program. For more information, see [Early access program for Square Online APIs](https://developer.squareup.com/docs/onlin" }, { "info": { "name": "Square Upsert Snippet", "type": "http" }, "http": { "method": "POST", "url": "https://connect.squareup.com/v2/sites/:site_id/snippet", "params": [ { "name": "site_id", "value": "", "type": "path", "description": "The ID of the site where you want to add or update the snippet." } ], "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": "Adds a snippet to a Square Online site or updates the existing snippet on the site. \nThe snippet code is appended to the end of the `head` element on every page of the site, except checkout pages. A snippet application can add one snippet to a given site. \n\nYou can call [ListSites](api-endpoint:Sites-ListSites) to get the IDs of the sites that belong to a seller.\n\n\n__Note:__ Square Online APIs are publicly available as part of an early access program. For more information, see [Early access prog" }, { "info": { "name": "Square Delete Snippet", "type": "http" }, "http": { "method": "DELETE", "url": "https://connect.squareup.com/v2/sites/:site_id/snippet", "params": [ { "name": "site_id", "value": "", "type": "path", "description": "The ID of the site that contains the snippet." } ], "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": "Removes your snippet from a Square Online site.\n\nYou can call [ListSites](api-endpoint:Sites-ListSites) to get the IDs of the sites that belong to a seller.\n\n\n__Note:__ Square Online APIs are publicly available as part of an early access program. For more information, see [Early access program for Square Online APIs](https://developer.squareup.com/docs/online-api#early-access-program-for-square-online-apis)." } ] } ], "bundled": true }