{
  "opencollection": "1.0.0",
  "info": {
    "name": "SAP Sales and Distribution (SD) SAP Sales Order API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Sales Order Header",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve a list of sales orders",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_SALES_ORDER_SRV/A_SalesOrder",
            "params": [
              {
                "name": "$top",
                "value": "",
                "type": "query",
                "description": "Maximum number of records to return"
              },
              {
                "name": "$skip",
                "value": "",
                "type": "query",
                "description": "Number of records to skip"
              },
              {
                "name": "$filter",
                "value": "",
                "type": "query",
                "description": "OData filter expression"
              },
              {
                "name": "$orderby",
                "value": "",
                "type": "query",
                "description": "Sort order for the result set"
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to include in the response"
              },
              {
                "name": "$expand",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of navigation properties to expand"
              },
              {
                "name": "$inlinecount",
                "value": "",
                "type": "query",
                "description": "Include total count of matching resources"
              }
            ]
          },
          "docs": "Returns a collection of sales order headers with support for OData query options including $filter, $select, $expand, $top, $skip, $orderby, and $inlinecount. Use $expand to include related items, partners, pricing elements, and other sub-entities."
        },
        {
          "info": {
            "name": "Create a new sales order",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_SALES_ORDER_SRV/A_SalesOrder",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new sales order using a deep insert request. The request body can include header data along with related items, partners, pricing elements, schedule lines, billing plans, and text elements in a single POST operation."
        },
        {
          "info": {
            "name": "Retrieve a single sales order",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_SALES_ORDER_SRV/A_SalesOrder(':SalesOrder')",
            "params": [
              {
                "name": "SalesOrder",
                "value": "",
                "type": "path",
                "description": "Sales order number (10 characters)"
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to include in the response"
              },
              {
                "name": "$expand",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of navigation properties to expand"
              }
            ]
          },
          "docs": "Returns a single sales order header by its key. Use $expand to include related entities such as items, partners, pricing elements, schedule lines, billing plans, and text elements."
        },
        {
          "info": {
            "name": "Update a sales order",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_SALES_ORDER_SRV/A_SalesOrder(':SalesOrder')",
            "headers": [
              {
                "name": "If-Match",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "SalesOrder",
                "value": "",
                "type": "path",
                "description": "Sales order number (10 characters)"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an existing sales order header. Only the fields included in the request body are updated. Requires an If-Match header with the ETag value for optimistic concurrency control."
        },
        {
          "info": {
            "name": "Delete a sales order",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_SALES_ORDER_SRV/A_SalesOrder(':SalesOrder')",
            "headers": [
              {
                "name": "If-Match",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "SalesOrder",
                "value": "",
                "type": "path",
                "description": "Sales order number (10 characters)"
              }
            ]
          },
          "docs": "Deletes an existing sales order. Requires an If-Match header with the ETag value for optimistic concurrency control."
        }
      ]
    },
    {
      "info": {
        "name": "Sales Order Item",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve items for a sales order",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_SALES_ORDER_SRV/A_SalesOrder(':SalesOrder')/to_Item",
            "params": [
              {
                "name": "SalesOrder",
                "value": "",
                "type": "path",
                "description": "Sales order number"
              },
              {
                "name": "$top",
                "value": "",
                "type": "query",
                "description": "Maximum number of records to return"
              },
              {
                "name": "$skip",
                "value": "",
                "type": "query",
                "description": "Number of records to skip"
              },
              {
                "name": "$filter",
                "value": "",
                "type": "query",
                "description": "OData filter expression"
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to include in the response"
              }
            ]
          },
          "docs": "Returns a collection of line items for the specified sales order. Supports OData query options for filtering, sorting, and pagination."
        },
        {
          "info": {
            "name": "Retrieve a single sales order item",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_SALES_ORDER_SRV/A_SalesOrderItem(SalesOrder=':SalesOrder',SalesOrderItem=':SalesOrderItem')",
            "params": [
              {
                "name": "SalesOrder",
                "value": "",
                "type": "path",
                "description": "Sales order number"
              },
              {
                "name": "SalesOrderItem",
                "value": "",
                "type": "path",
                "description": "Sales order item number (6 characters)"
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to include in the response"
              },
              {
                "name": "$expand",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of navigation properties to expand"
              }
            ]
          },
          "docs": "Returns a single sales order item by its composite key (SalesOrder and SalesOrderItem number)."
        },
        {
          "info": {
            "name": "Update a sales order item",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_SALES_ORDER_SRV/A_SalesOrderItem(SalesOrder=':SalesOrder',SalesOrderItem=':SalesOrderItem')",
            "headers": [
              {
                "name": "If-Match",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "SalesOrder",
                "value": "",
                "type": "path",
                "description": "Sales order number"
              },
              {
                "name": "SalesOrderItem",
                "value": "",
                "type": "path",
                "description": "Sales order item number"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an existing sales order item. Only the fields included in the request body are updated."
        },
        {
          "info": {
            "name": "Delete a sales order item",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_SALES_ORDER_SRV/A_SalesOrderItem(SalesOrder=':SalesOrder',SalesOrderItem=':SalesOrderItem')",
            "headers": [
              {
                "name": "If-Match",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "SalesOrder",
                "value": "",
                "type": "path",
                "description": "Sales order number"
              },
              {
                "name": "SalesOrderItem",
                "value": "",
                "type": "path",
                "description": "Sales order item number"
              }
            ]
          },
          "docs": "Deletes an existing sales order item from the specified sales order."
        }
      ]
    },
    {
      "info": {
        "name": "Sales Order Partner",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve partners for a sales order",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_SALES_ORDER_SRV/A_SalesOrder(':SalesOrder')/to_Partner",
            "params": [
              {
                "name": "SalesOrder",
                "value": "",
                "type": "path",
                "description": "Sales order number"
              },
              {
                "name": "$top",
                "value": "",
                "type": "query",
                "description": "Maximum number of records to return"
              },
              {
                "name": "$skip",
                "value": "",
                "type": "query",
                "description": "Number of records to skip"
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to include in the response"
              }
            ]
          },
          "docs": "Returns a collection of business partners associated with the specified sales order header, including sold-to party, ship-to party, bill-to party, and payer."
        }
      ]
    },
    {
      "info": {
        "name": "Sales Order Pricing Element",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve pricing elements for a sales order",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_SALES_ORDER_SRV/A_SalesOrder(':SalesOrder')/to_PricingElement",
            "params": [
              {
                "name": "SalesOrder",
                "value": "",
                "type": "path",
                "description": "Sales order number"
              },
              {
                "name": "$top",
                "value": "",
                "type": "query",
                "description": "Maximum number of records to return"
              },
              {
                "name": "$skip",
                "value": "",
                "type": "query",
                "description": "Number of records to skip"
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to include in the response"
              }
            ]
          },
          "docs": "Returns a collection of header-level pricing elements (condition records) for the specified sales order."
        }
      ]
    },
    {
      "info": {
        "name": "Sales Order Schedule Line",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve a schedule line",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_SALES_ORDER_SRV/A_SalesOrderScheduleLine(SalesOrder=':SalesOrder',SalesOrderItem=':SalesOrderItem',ScheduleLine=':ScheduleLine')",
            "params": [
              {
                "name": "SalesOrder",
                "value": "",
                "type": "path",
                "description": "Sales order number"
              },
              {
                "name": "SalesOrderItem",
                "value": "",
                "type": "path",
                "description": "Sales order item number"
              },
              {
                "name": "ScheduleLine",
                "value": "",
                "type": "path",
                "description": "Schedule line number"
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to include in the response"
              }
            ]
          },
          "docs": "Returns a single schedule line for a sales order item, identified by its composite key of sales order, item, and schedule line number."
        }
      ]
    },
    {
      "info": {
        "name": "Sales Order Text",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve texts for a sales order",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_SALES_ORDER_SRV/A_SalesOrder(':SalesOrder')/to_Text",
            "params": [
              {
                "name": "SalesOrder",
                "value": "",
                "type": "path",
                "description": "Sales order number"
              },
              {
                "name": "$top",
                "value": "",
                "type": "query",
                "description": "Maximum number of records to return"
              },
              {
                "name": "$skip",
                "value": "",
                "type": "query",
                "description": "Number of records to skip"
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of properties to include in the response"
              }
            ]
          },
          "docs": "Returns a collection of text elements associated with the specified sales order header."
        }
      ]
    }
  ],
  "bundled": true
}