{
  "opencollection": "1.0.0",
  "info": {
    "name": "Oracle Retail Merchandising Foundation Cloud Service API",
    "version": "26.1.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://identity.oraclecloud.com/oauth2/v1/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Items",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List items",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{host}/MerchServices/MerchRes/v1/items",
            "params": [
              {
                "name": "department",
                "value": "",
                "type": "query",
                "description": "Filter by department number"
              },
              {
                "name": "class",
                "value": "",
                "type": "query",
                "description": "Filter by class number"
              },
              {
                "name": "subclass",
                "value": "",
                "type": "query",
                "description": "Filter by subclass number"
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Filter by item status"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns a paginated list of merchandise items with optional filters."
        },
        {
          "info": {
            "name": "Create an item",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{host}/MerchServices/MerchRes/v1/items",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new merchandise item record."
        },
        {
          "info": {
            "name": "Get an item",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{host}/MerchServices/MerchRes/v1/items/:item",
            "params": [
              {
                "name": "item",
                "value": "",
                "type": "path",
                "description": "Item number (up to 25 chars)"
              }
            ]
          },
          "docs": "Returns item details including description, supplier, and hierarchy."
        },
        {
          "info": {
            "name": "Update an item",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{host}/MerchServices/MerchRes/v1/items/:item",
            "params": [
              {
                "name": "item",
                "value": "",
                "type": "path",
                "description": "Item number (up to 25 chars)"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates item attributes such as description, status, or hierarchy assignment."
        }
      ]
    },
    {
      "info": {
        "name": "PurchaseOrders",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List purchase orders",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{host}/MerchServices/MerchRes/v1/purchaseorders",
            "params": [
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Filter by order status"
              },
              {
                "name": "supplier",
                "value": "",
                "type": "query",
                "description": "Filter by supplier number"
              },
              {
                "name": "fromDate",
                "value": "",
                "type": "query",
                "description": "Filter orders not before this date (YYYY-MM-DD)"
              },
              {
                "name": "toDate",
                "value": "",
                "type": "query",
                "description": "Filter orders not after this date (YYYY-MM-DD)"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns purchase orders with status and shipment information."
        },
        {
          "info": {
            "name": "Create a purchase order",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{host}/MerchServices/MerchRes/v1/purchaseorders",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new purchase order for a supplier."
        },
        {
          "info": {
            "name": "Get a purchase order",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{host}/MerchServices/MerchRes/v1/purchaseorders/:orderId",
            "params": [
              {
                "name": "orderId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns purchase order header and detail lines."
        }
      ]
    },
    {
      "info": {
        "name": "Suppliers",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List suppliers",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{host}/MerchServices/MerchRes/v1/suppliers",
            "params": [
              {
                "name": "status",
                "value": "",
                "type": "query"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns supplier master data including contact and payment terms."
        }
      ]
    },
    {
      "info": {
        "name": "Inventory",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Query inventory positions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{host}/MerchServices/MerchRes/v1/inventory",
            "params": [
              {
                "name": "item",
                "value": "",
                "type": "query",
                "description": "Item number"
              },
              {
                "name": "location",
                "value": "",
                "type": "query",
                "description": "Store or warehouse number"
              },
              {
                "name": "locationType",
                "value": "",
                "type": "query",
                "description": "Location type (S=Store, W=Warehouse)"
              }
            ]
          },
          "docs": "Returns stock on hand, on order, and available to sell by item and location."
        }
      ]
    }
  ],
  "bundled": true
}