{
  "opencollection": "1.0.0",
  "info": {
    "name": "YourMembership Authentication Commerce and Sales API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://ws.yourmembership.com/Ams/Authenticate",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Commerce and Sales",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List store orders",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://ws.yourmembership.com/Ams/Store/Orders",
            "params": [
              {
                "name": "status",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Modeled from the legacy XML API store-order calls. Returns YM Store orders filterable by status (open, processed, shipped, closed, cancelled)."
        },
        {
          "info": {
            "name": "Get a store order",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://ws.yourmembership.com/Ams/Store/Orders/:orderId",
            "params": [
              {
                "name": "orderId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Modeled. Returns details for a single store order."
        },
        {
          "info": {
            "name": "Export transactions and donations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://ws.yourmembership.com/Ams/Exports/Transactions"
          },
          "docs": "Modeled from the legacy XML API system-admin (Sa) export calls, which expose donation and transaction exports for finance reconciliation."
        }
      ]
    }
  ],
  "bundled": true
}