{
  "opencollection": "1.0.0",
  "info": {
    "name": "Square ApplePay Cards API",
    "version": "2.0"
  },
  "items": [
    {
      "info": {
        "name": "Cards",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Square List Cards",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://connect.squareup.com/v2/cards",
            "params": [
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "A pagination cursor returned by a previous call to this endpoint.\nProvide this to retrieve the next set of results for your original query.\n\nSee [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination) for more information."
              },
              {
                "name": "customer_id",
                "value": "",
                "type": "query",
                "description": "Limit results to cards associated with the customer supplied.\nBy default, all cards owned by the merchant are returned."
              },
              {
                "name": "include_disabled",
                "value": "",
                "type": "query",
                "description": "Includes disabled cards.\nBy default, all enabled cards owned by the merchant are returned."
              },
              {
                "name": "reference_id",
                "value": "",
                "type": "query",
                "description": "Limit results to cards associated with the reference_id supplied."
              },
              {
                "name": "sort_order",
                "value": "",
                "type": "query",
                "description": "Sorts the returned list by when the card was created with the specified order.\nThis field defaults to ASC."
              }
            ],
            "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 list of cards owned by the account making the request.\nA max of 25 cards will be returned."
        },
        {
          "info": {
            "name": "Square Create Card",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://connect.squareup.com/v2/cards",
            "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 card on file to an existing merchant."
        },
        {
          "info": {
            "name": "Square Retrieve Card",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://connect.squareup.com/v2/cards/:card_id",
            "params": [
              {
                "name": "card_id",
                "value": "",
                "type": "path",
                "description": "Unique ID for the desired Card."
              }
            ],
            "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 for a specific Card."
        },
        {
          "info": {
            "name": "Square Disable Card",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://connect.squareup.com/v2/cards/:card_id/disable",
            "params": [
              {
                "name": "card_id",
                "value": "",
                "type": "path",
                "description": "Unique ID for the desired Card."
              }
            ],
            "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": "Disables the card, preventing any further updates or charges.\nDisabling an already disabled card is allowed but has no effect."
        }
      ]
    }
  ],
  "bundled": true
}