{
  "opencollection": "1.0.0",
  "info": {
    "name": "Oracle Retail Order Management Suite 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": "Orders",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List orders",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{host}/oms/api/v1/orders",
            "params": [
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Filter by order status"
              },
              {
                "name": "channelId",
                "value": "",
                "type": "query",
                "description": "Filter by sales channel"
              },
              {
                "name": "customerId",
                "value": "",
                "type": "query",
                "description": "Filter by customer ID"
              },
              {
                "name": "fromDate",
                "value": "",
                "type": "query"
              },
              {
                "name": "toDate",
                "value": "",
                "type": "query"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns customer orders with status, line items, and fulfillment details."
        },
        {
          "info": {
            "name": "Create an order",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{host}/oms/api/v1/orders",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new customer order for fulfillment."
        },
        {
          "info": {
            "name": "Get an order",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{host}/oms/api/v1/orders/:orderId",
            "params": [
              {
                "name": "orderId",
                "value": "",
                "type": "path",
                "description": "Order identifier"
              }
            ]
          },
          "docs": "Returns full order details including lines, fulfillment nodes, and payment."
        },
        {
          "info": {
            "name": "Update an order",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{host}/oms/api/v1/orders/:orderId",
            "params": [
              {
                "name": "orderId",
                "value": "",
                "type": "path",
                "description": "Order identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates mutable fields on an order such as shipping address or contact info."
        },
        {
          "info": {
            "name": "Cancel an order",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{host}/oms/api/v1/orders/:orderId/cancel",
            "params": [
              {
                "name": "orderId",
                "value": "",
                "type": "path",
                "description": "Order identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Cancels an order or selected line items if order is in a cancellable state."
        }
      ]
    },
    {
      "info": {
        "name": "Fulfillment",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Record a shipment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{host}/oms/api/v1/fulfillment/ship-order",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Records a shipment event for fulfillment nodes, advancing order status."
        }
      ]
    },
    {
      "info": {
        "name": "Returns",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create a return",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{host}/oms/api/v1/returns",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Initiates a customer return authorization for one or more order lines."
        }
      ]
    }
  ],
  "bundled": true
}