{
  "opencollection": "1.0.0",
  "info": {
    "name": "FastSpring Accounts Sessions API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Sessions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create a checkout session",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.fastspring.com/sessions",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a checkout session"
        },
        {
          "info": {
            "name": "Retrieve a session",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.fastspring.com/sessions/:session_id",
            "params": [
              {
                "name": "session_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Retrieve a session"
        },
        {
          "info": {
            "name": "Update a session",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.fastspring.com/sessions/:session_id",
            "params": [
              {
                "name": "session_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a session"
        },
        {
          "info": {
            "name": "Add items to a session",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.fastspring.com/sessions/:session_id/items",
            "params": [
              {
                "name": "session_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Add items to a session"
        },
        {
          "info": {
            "name": "Update a session item",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.fastspring.com/sessions/:session_id/items/:item_id",
            "params": [
              {
                "name": "session_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "item_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a session item"
        },
        {
          "info": {
            "name": "Delete a session item",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.fastspring.com/sessions/:session_id/items/:item_id",
            "params": [
              {
                "name": "session_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "item_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a session item"
        },
        {
          "info": {
            "name": "Retrieve available payment methods for a session",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.fastspring.com/sessions/:session_id/payment-methods",
            "params": [
              {
                "name": "session_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Retrieve available payment methods for a session"
        }
      ]
    }
  ],
  "bundled": true
}