{ "opencollection": "1.0.0", "info": { "name": "Square ApplePay CustomerSegments API", "version": "2.0" }, "items": [ { "info": { "name": "CustomerSegments", "type": "folder" }, "items": [ { "info": { "name": "Square List Customer Segments", "type": "http" }, "http": { "method": "GET", "url": "https://connect.squareup.com/v2/customers/segments", "params": [ { "name": "cursor", "value": "", "type": "query", "description": "A pagination cursor returned by previous calls to `ListCustomerSegments`.\nThis cursor is used to retrieve the next set of query results.\n\nFor more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination)." }, { "name": "limit", "value": "", "type": "query", "description": "The maximum number of results to return in a single page. This limit is advisory. The response might contain more or fewer results.\nIf the specified limit is less than 1 or greater than 50, Square returns a `400 VALUE_TOO_LOW` or `400 VALUE_TOO_HIGH` error. The default value is 50.\n\nFor more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination)." } ], "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 list of customer segments of a business." }, { "info": { "name": "Square Retrieve Customer Segment", "type": "http" }, "http": { "method": "GET", "url": "https://connect.squareup.com/v2/customers/segments/:segment_id", "params": [ { "name": "segment_id", "value": "", "type": "path", "description": "The Square-issued ID of the customer segment." } ], "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 a specific customer segment as identified by the `segment_id` value." } ] } ], "bundled": true }