{
  "opencollection": "1.0.0",
  "info": {
    "name": "Oracle Retail Merchandising Foundation Cloud Service Fulfillment PurchaseOrders 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": "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."
        }
      ]
    }
  ],
  "bundled": true
}