{
  "opencollection": "1.0.0",
  "info": {
    "name": "Shell Loyalty API",
    "version": "1.0.2"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://api.shell.com/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Accounts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Enroll Loyalty Account",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.shell.com/loyalty/v1/accounts",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new Shell loyalty account for a customer."
        },
        {
          "info": {
            "name": "Get Loyalty Account",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.shell.com/loyalty/v1/accounts/:accountId",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns details for a specific loyalty account."
        },
        {
          "info": {
            "name": "Update Loyalty Account",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.shell.com/loyalty/v1/accounts/:accountId",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates details for a specific loyalty account."
        }
      ]
    },
    {
      "info": {
        "name": "Points",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Points Balance",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.shell.com/loyalty/v1/accounts/:accountId/balance",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns the current points balance for a loyalty account."
        },
        {
          "info": {
            "name": "Redeem Points",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.shell.com/loyalty/v1/accounts/:accountId/redeem",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Redeems loyalty points for a reward or benefit."
        }
      ]
    },
    {
      "info": {
        "name": "Transactions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Loyalty Transactions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.shell.com/loyalty/v1/accounts/:accountId/transactions",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path"
              },
              {
                "name": "fromDate",
                "value": "",
                "type": "query"
              },
              {
                "name": "toDate",
                "value": "",
                "type": "query"
              },
              {
                "name": "transactionType",
                "value": "",
                "type": "query"
              },
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "pageSize",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns the loyalty transaction history for an account."
        }
      ]
    },
    {
      "info": {
        "name": "Catalogue",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Loyalty Catalogue",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.shell.com/loyalty/v1/catalogue",
            "params": [
              {
                "name": "category",
                "value": "",
                "type": "query",
                "description": "Filter by reward category"
              },
              {
                "name": "countryCode",
                "value": "",
                "type": "query",
                "description": "Filter by availability country"
              },
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "pageSize",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns the Shell loyalty rewards catalogue."
        },
        {
          "info": {
            "name": "Get Catalogue Item",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.shell.com/loyalty/v1/catalogue/:rewardId",
            "params": [
              {
                "name": "rewardId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns details for a specific loyalty reward."
        }
      ]
    },
    {
      "info": {
        "name": "Offers",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Account Offers",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.shell.com/loyalty/v1/accounts/:accountId/offers",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns available offers for a loyalty account."
        },
        {
          "info": {
            "name": "Assign Offer",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.shell.com/loyalty/v1/accounts/:accountId/offers/:offerId/assign",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path"
              },
              {
                "name": "offerId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Assigns a specific offer to a loyalty account."
        }
      ]
    }
  ],
  "bundled": true
}